Previous: ncdump Next: ncgen Table of contents Frames 2012 Unidata NetCDF Workshop > NetCDF Utilities

6.2 Examples of ncdump use
Common uses for ncdump include:
  1. Showing just the header (also known as "metadata" or "schema"):

    $ ncdump -h mslp.nc
    output Show popup
  2. To look at header and coordinate information, but not the data:

    $ ncdump -c mslp.nc
    output Show popup
  3. To look at all the data in the file, in addition to the metadata:

    $ ncdump mslp.nc
    output Show popup
  4. To look at a subset of the data by specifying one or more variables:

    $ ncdump -v lat,time mslp.nc
    output Show popup
  5. To see times in human-readable form:

    $ ncdump -t -v lat,time mslp.nc
    output Show popup
  6. To look at what kind of netCDF data is in the file (classic, 64-bit offset, netCDF-4, or netCDF-4 classic model):

    $ ncdump -k mslp.nc
    
    classic
    
    

 


Previous: ncdump Next: ncgen Table of contents Frames 2012 Unidata NetCDF Workshop > NetCDF Utilities