[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[IDV #OOS-641584]: reading a .nc file that is really HDF-5
- Subject: [IDV #OOS-641584]: reading a .nc file that is really HDF-5
- Date: Wed, 05 Dec 2012 06:13:15 -0700
Greetings Brian,
I just saw your reply - sorry about that! When you tried to load the ncml
file, was the file in the same directory as the original prmsl_1878.nc
file? You will see this kind of error when the original file referenced
in the NcML file does not exist. If you are using a different file, you will
need to make sure to update the location attribute in this line:
<netcdf xmlns="http://www.unidata.ucar.edu/..." location="./CAM5_onetime.nc">
with the *full* path to the original file. I used "./<filename>", which assumes
the netCDF file is in the same directory as the NcML file.
Cheers,
Sean
> I was unable to open your attached .ncml file from the data chooser Sean.
>
> "There was an error loading the data:
> Error creating data source:file.grid with: /Users/bem/prmsl_1878.ncml
> Unable to open grid:
> /Users/bem/prmsl_1878.ncml"
>
>
> I tried making NcML of my own to fix a Levels (or pressure)
> units problem in CAM data, and have the same error.
>
>
> Even a do-nothing NcML file based on workshop cookbook gives me the same
> error:
> <?xml version="1.0" encoding="UTF-8"?>
> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"
> location="./CAM5_onetime.nc">
> </netcdf>
>
>
> I tried other choices besided Im Feeling Lucky, to no avail.
>
> IDV3.1u on Mac
>
>
>
>
>
> On Nov 8, 2012, at 10:55 AM, Unidata IDV Support wrote:
>
> > Greetings Brian,
> >
> > The problem is that the netCDF file is not following metadata standards
> > closely
> > enough, and so the IDV isn't sure exactly what is going on inside the file.
> > I've
> > created some NcML that adds enough information that will allow the IDV to
> > read
> > the file (see attached). Again, just place this file inside the same
> > directory as the
> > data file you wish to open, and then open the NcML file with the IDV.
> >
> > Cheers!
> >
> > Sean
> >
> >> Hello again.
> >>
> >> I downloaded a model grid file that IDV can't read.
> >> file prmsl_1878.nc
> >> tells me it is "Hierarchical Data Format (version 5) data."
> >>
> >> Will IDV read this format someday?
> >>
> >> It is actually given with a .nc filename:
> >> http://portal.nersc.gov/pydap/20C_Reanalysis_ensemble/analysis/prmsl/prmsl_1878.nc
> >> IDV says no gridded data is found (can't read the format).
> >>
> >> The information for the file is at
> >> http://portal.nersc.gov/pydap/20C_Reanalysis_ensemble/analysis/prmsl/prmsl_1878.nc.html
> >>
> >> Thanks!
> >> Brian
> >>
> >> Brian Mapes
> >> address@hidden or address@hidden
> >>
> >>
> >>
> >>
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: OOS-641584
> > Department: Support IDV
> > Priority: Normal
> > Status: Open<prmsl_1878.ncml>
>
> Brian Mapes
> address@hidden
>
>
>
>
Ticket Details
===================
Ticket ID: OOS-641584
Department: Support IDV
Priority: Normal
Status: Open