NetCDF: Difference between revisions

Jump to navigation Jump to search
Line 156: Line 156:


== NetCDF utilities ==
== NetCDF utilities ==
There are several very helpful utilities that read/write file in different formats. Here are some of them:
There are several utilities that read or write files in different formats.
* ncdump
* ncdump
It reads metcdf file in the format called CDL and can be used to show the content of the netcdf file. Usually, ncdump gives us  the description of the file which can be fed into ncgen utility in order  to create the data file.
: "The ncdump tool generates the CDL text representation of a netCDF dataset on standard output, optionally excluding some or all of the variable data in the output. The output from ncdump is intended to be acceptable as input to ncgen. Thus ncdump and ncgen can be used as inverses to transform data representation between binary and text representation." See [https://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf/ncdump.html ncdump] on the UCAR site for more.  
* ncgem
* ncgen
This utility takes an input file in CDL format and creates a binary netCDF file. It is the reverse of ncdump.
: This utility takes an input file in CDL format and creates a binary netCDF file. It is the reverse of ncdump. See [https://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf/ncgen.html#ncgen ncgen] for more.
*nccopy
*nccopy
The nccopy copies a netCDF file and can change binary format, chunk sizes, compression, and other storage settings.
: Copies a netCDF file and can change binary format, chunk sizes, compression, and other storage settings. See [https://www.unidata.ucar.edu/software/netcdf/workshops/2011/utilities/Nccopy.html nccopy] for more.
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits

Navigation menu