[Thread Prev][Thread Next][Index]
[ferret_users] error message NetCDF: One or more variable sizes violate format constraints (OPeNDAP/netCDF Error code -62)
Hi all,
Here's an error message that I didn't recognize, and which may
come up for people working with large datasets. I thought I'd
write here, so the information is here in the Users List archive.
Somebody asked me about seeing this error message, when trying to
write to a file:
NetCDF: One or more variable sizes violate format
constraints (OPeNDAP/netCDF Error code -62)
could
not change CDF mode
list/format=cdf/file="data/Hi_freq_data/xx_20hz_data.nc.nc"/append
variable_38
Command
file, command group, or REPEAT execution aborted
PyFerret is linked with a version of netCDF which
supports large files. We have the option to write files with
netcdf-4 formatting, and also the 64-bit offset format mentioned
on that page. Because many linux systems come with only older
netCDF-3 libraries, the PyFerret developers decided to write
netCDF files using netcdf-3 formatting by default. That way
things like the ncdump and ncgen utilities on people's systems
will be able to work with the files. But PyFerret also has command
qualifiers available to request netCDF-4 formatted files or 64-bit
offset formatted files. In addition to large-file support,
netCDF-4 offers some other options. The syntax for all of this is
described here:
A solution for the question above was to use
SAVE/NCFORMAT=netcdf4
(Another good solution would be to use Union
Aggregation, writing each variable to its own file and then
aggregating them in the PyFerret session into a virtual dataset.
See "Aggretation" in the documentation for how to do that.)
Cheers!
Ansley Manke
The contents of this message aremine personally. I am not
affiliated with the National Oceanicand Atmospheric
Administration.
[Thread Prev][Thread Next][Index]