This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Gennady, > When I'm running regriding program from the MOM-5 software package ( > /glade/u/chepurin/restart_test/mom/src/preprocessing/regrid_3d/run_regrid_3d.sh > ), I'm getting error - " NETCDF ERROR: NetCDF: Invalid argument > File=regrid_3d.nc Attribute=_FillValue " > > I'm novice with NetCDF so could you help me, please: - What does it mean > this error and how can I handle it? > > Software which I'm using is not unique and is widely used in GFDL, so I don't > think there is an error in the > code. Sorry, at Unidata we have no experience with the MOM-5 model, and the error message above comes from the "run_regrid_3d.sh" shell script, rather than directtly from the netCDF library. As a guess, it's possible that the "_FillValue" attribute for the variable you are trying to regrid is not of the same type as the variable. For example, if the variable was of type "real", "float", or "double" and the associated "_FillValue" attribute was specified as a character string, such as salinity:_FillValue = "-999.0" ; instead of salinity:_FillValue = -999.0 ; you might get such an error, but that's just a guess ... --Russ > Regards, > > --Gennady > > -- > =================================== > > Dr. Gennady A. Chepurin, > > Department of Atmospheric and Oceanic Science, > University of Maryland, > Computer and Space Science Bldg., > College Park, MD, 20742. Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: RIK-778485 Department: Support netCDF Priority: Normal Status: Closed