Upendra,
> Thank you! Is there anything in the file itself to tell that it is
> netcdf4? How does ncdump know that it is netcdf4?
> Upendra
The function nc_inq_format, documented here:
http://www.unidata.ucar.edu/netcdf/docs/netcdf-c.html#nc_005finq-Family
returns a value indicating the netCDF format variant of the file.
Also if you use
ncdump -s filename
the output includes a virtual global attribute, "_Format", that
specifies what type the file is. The "-s" option is intended to
... provide performance-related information about the file format and
variable properties for netCDF-4 data. These special virtual
attributes are not actually part of the data, they are merely a
convenient way to display miscellaneous properties of the data in CDL
(and eventually NcML). They include `_ChunkSizes', `_DeflateLevel',
`_Endianness', `_Fletcher32', `_Format', `_NoFill', `_Shuffle', and
`_Storage'.
--Russ
> Ted Mansell wrote:
> > You can try
> >
> > ncdump -k [filename]
> >
> > -- Ted
> >
> > On Oct 22, 2010, at 9:48 AM, Upendra Dadi wrote:
> >
> >> Hi,
> >> How to tell if a given hdf5 file is netcdf 4 other than the file
> >> extension? I opened a netcdf4 file in HDFView looking for metadata
> >> which tells that the file is netcdf 4. I couldn't locate one.
> >>
> >> Related problem, would it be possible to create a netcdf 4 using
> >> HDFView? Any help is appreciated.
> >>
> >> Upendra
> >>
> >> _______________________________________________
> >> netcdfgroup mailing list
> >> netcdfgroup@xxxxxxxxxxxxxxxx
> >> For list information or to unsubscribe, visit:
> >> http://www.unidata.ucar.edu/mailing_lists/
> >
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/m
> ailing_lists/