Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: NetCDF error

Hi Marcio,

> I´m  trying to use a Modular Ocean Model (MOM 4) in a Cray Plataform.
> 
> I compiled one module (to generate the grid) with these parameters:
> 
> FC = f90
> LD = f90
> CPPFLAGS = -F
> FFLAGS = -O2 -I/appl/local/unidata/include/
> LDFLAGS = -Wl"-Dpreset=nan $(LIBS)"
> LIBS = -L/appl/local/unidata/lib -lnetcdf -L/appl/local/unidata/lib
> -ludunits
> LIST = -O negmsgs -rs
> 
> The files udunits.inc and netcdf.inc are in the
> /appl/local/unidata/include/  directory and netcdf and udunits librarys are
> in the /appl/local/unidata/   directory.
> 
> I had succes to compile this module, but when I try to use the binary
> program to create a new grid, the following error message is displayed:
> 
> $FMS_BIN_DIR/grid_generator > grid_output
> + /tmp/mom4_beta2/bin/grid_generator
> 
> FATAL: NETCDF ERROR: Numeric conversion not representable
> 
> In the MOM 4.0 users email list I didn´t have any help about this problem.

I'm not familiar with the MOM grid_generator program, but the error
message means a call was made to write a value that wouldn't fit into
the specified netCDF variable because of its type.  For example, if
the program tries to store the integer 100000 into a netCDF variable
of type short, you would get this error, because a 16-bit short can't
hold numbers that big.  Similarly, trying to store a large double
value like 1.0e+40 into a float variable would cause this error.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                      http://my.unidata.ucar.edu


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690