LATS4D (LATS for Dummies) is a minimum fuss gs script for writing NetCDF, HDF-SDS or GRIB files from GrADS using the PCMDI LATS interface. This script can serve as a general purpose file conversion and subsetting utility. Any GrADS readable file (GrADS IEEE, GSFC Phoenix, GRIB, NetCDF or HDF-SDS) can be subset and converted to GRIB, NetCDF, HDF-SDS or binary using a single command line. By installing Mike Fiorino's user defined function regrid2() the output file can also be converted to a different horizontal grid resolution. For additional details see the manual page. GMAO users may check this for GMAO specific hints.|
When invoked without arguments this script will create a COARDS compliant NetCDF or HDF-SDS file named "grads.lats.nc", with all the contents of the default file (all variables, levels, times). The file name and several other attributes can be customized at the command line, see the OPTIONS section in the manual page.
NetCDF files are obtained by running this script under the executable "gradsnc". HDF-SDS files can be produced with the "gradshdf" executable. Notice that the classic version of grads, "gradsc", does not include support for LATS and therefore cannot be used with lats4d. This script requires GrADS Version 1.7.beta.9 or later.
[Summary provided by NASA.]