NOAA

Geophysical Fluid
Dynamics Laboratory

Skip to: [content] [navigation]
If you are using Navigator 4.x or Internet Explorer 4.x or Omni Web 4.x , this site will not render correctly!

Vis > data > netcdf > grads2nc





SYNOPSIS

     grads2nc infile.ctl outfile.nc [ -n ] [ -r ] [ -v | -q ]



DESCRIPTION

     grads2nc converts a data file in GrADS format to the more portable netCDF
     format.   It  is quite simple to use and handles most structures in GrADS
     files.   However,  grads2nc  currently  does   not   support   multi-file
     templates, station data, GRIB data, and initial file headers.  It assumes
     the control file format for GrADS 1.5.x; older or newer versions  may  or
     may not parse correctly, but they will probably be fine.

     During conversion of a file, the output netCDF file's X and Y  dimensions
     are   given   a   "units"   attribute   of  "degrees_E"  and  "degress_N"
     respectively.  All the Z dimensions are given units of "level".  All  the
     variables  are  given units of "unknown" since there is no consistent way
     of extracting this information from the GrADS control file.   The  actual
     data  values  are  simply copied through to the netCDf file; they are not
     modified in any way.



OPTIONS


     infile.ctl
          The input GrADS control file.  The data file it references must also
          be available.

     outfile.nc
          The output netCDF file.

     -n   Use the shell's setting for "NETCDF_FFIOSPEC", otherwise it will use
          the built-in default of "cachea:896:2" (Cray only).

     -r   Finds the actual  minimum  and  maximum  values  for  each  variable
          instead of using the default "valid_range" of -1e+37 to 1e+37.

     -v   Verbose mode; print extensive progress information.

     -q   Quiet mode; no progress output.



SEE ALSO

     http://www.gfdl.gov/~jps/GFDL_VG_NetCDF_Utils.html#grads2nc
     http://www.gfdl.gov/~jps/GFDL_VG_2DPackages.html#GrADS

     grads2nc uses John Sheldon's NCIR library  to  write  the  netCDF  files:
     http://www.gfdl.gov/~jps/GFDL_VG_NetCDF_Utils.html#NCIR






AUTHORS

     Programming and design by Hans Vahlenkamp (hnv@gfdl.gov), NCIR library by
     John  Sheldon  (jps@gfdl.gov)  -  Geophysical  Fluid Dynamics Lab / NOAA,
     Princeton University Forrestal Campus.















































Man(1) output converted with man2html
smaller bigger reset
last modified: July 14 2004.