ncdfvdfcreate - Generate a VDF metadata file for a NetCDF data set
ncdfvdfcreate [options] ncdf_files... vdffile
ncdfvdfcreate generates a .vdf metafile that defines a VAPOR Data Collection (VDC) suitable for containing a collection of data contained in one or more NetCDF files. The command expects that data contained in the list of NetCDF input files to be the result of a single simulation. I.e. the same coordinates and dimensions are used by all files.
Thus, the command treats a collection of NetCDF files as a single, time-varying data set containing 2D and 3D spatial variables defined at a specified timestep, independent of which netCDF file contains the data.
The netCDF variables may be "explicitly" time-varying: the slowest varying dimension may correspond to time, while the remaining dimensions correspond to space. Or the variables may be implicitly time-varying, possessing no explicit time dimension, in which case the time index of a variable is determined by file ordering. For example, if the variable "v" is found in the files "a.nc" and "b.nc" and nowhere else, and "a.nc" preceeds "b.nc" in the list of files provided to the class constructor, then a.nc is assumed to contain "v" at time step 0, and "b.nc" contains "v" at time step 1.
The command understands the Arakawa C-Grid ("staggered" variables), and can interpolate them onto a common (unstaggered) grid.
Turn on debugging
Specifies the spatial dimensions of all 3D variables to be considered. The default is to use the dimensions of the first 3D variable encountered in the NetCDF files. The format of dimensions is NXxNYxNZ, where NX is the fastest varying dimension, NY the next fastest, and NZ the slowest.
A colon-delimited list of names of 2D and 3D (spatial) data variables to include in the .vdf file. In general, the list of variables should be a subset of the data variables found in the MOM/POP input files. If this option is not present the default behavior is to generate the list of variables from all of the 2D and 3D (spatial) variables found in any of the MOM/POP netCDF input files.
Colon delimited list of 3D variable names to be included in the VDF
Colon delimited list of 2D XY-plane variable names to be included in the vdf
Colon delimited list of 2D XZ-plane variable names to be included in the vdf
Colon delimited list of 2D YZ-plane variable names to be included in the vdf
Generate a VDC Type 2 .vdf file (default is VDC type 1)
Name of netCDF attribute specifying missing value, if any.
Use this option if missing data locations may vary between time steps and/or variables. If this is unknown it is safest to use this option at the expense of increased storage requirements.
Missing data value. If 0.0, there are no missing data.
Number of wavelet filter coefficients (VDC1 only)
Number of wavelet lifting coefficients (VDC1 only)
Number of timesteps in the data set.
Colon delimited 3-element vector specifying permutation ordering of raw data on disk.
Colon delimited 3-element boolean (0=>nonperiodic, 1=>periodic) vector specifying periodicity of X,Y,Z coordinate axes (X:Y:Z)
Name of netCDF variable containing X dimension grid coordinates. This option is ignored if the grid type (-gridtype) is not layered or stretched
Name of netCDF variable containing Y dimension grid coordinates. This option is ignored if the grid type (-gridtype) is not layered or stretched
Name of netCDF variable containing Z dimension grid coordinates. This option is ignored if the grid type (-gridtype) is not layered or stretched
Data grid type (regular|layered|stretched|block_amr)
A whitespace delineated, quoted list of PROJ key/value pairs of the form '+paramname=paramvalue'. ncdfvdfcreate does not validate the string for correctness.
Operate quietly.
A colon-delimited list specifying the names of any staggered dimensions. A "staggered" dimension has dimension one greater than an unstaggered dimension. Variables defined on staggered grids are interpolated to unstaggered grids.
Integer offset of first time step in NetCDF files to be converted
Path to a file containing a whitespace delineated list of user times. If present, -numts option is ignored.
Colon delimited list of time dimension variable names. Any dimension names listed with this option are considered time dimensions. Data variables whose slowest varying dimension is named by this option are considered time varying.
Colon delimited list of time coordinate variables. If this 1D variable is present, it specfies the time in user-defined units for each time step.
See vdfcreate.
See vdfcreate.
See vdfcreate.
This option is for VDC2 only, see vdfcreate.
This option is for VDC2 only, see vdfcreate.
Data coordinate system (cartesian|spherical)
Increment between time steps expressed in user time coordinates.
Colon delimited 6-element vector specifying domain extents in user coordinates.
Path to a file containing a whitespace delineated list of X-axis user coordinates. Ingnored unless gridtype is stretched.
Path to a file containing a whitespace delineated list of Y-axis user coordinates. Ingnored unless gridtype is stretched.
Path to a file containing a whitespace delineated list of Z-axis user coordinates. Ingnored unless gridtype is stretched.
Print a usage statement and then exit.
The command
ncdfvdfcreate -vars u:v:temp file1.nc file2.nc file3.nc mydata.vdf
will construct a VDF file, mydata.vdf that will contain the u, v, and temp variable names for all time steps found in the NetCDF files file1.nc, file2.nc, and file3.nc. Because no time dimension is specified the variables are assumed to be implicitly time varying (have no time dimension).
The command
ncdfvdfcreate -timedims times -vars u:v:temp file1.nc file2.nc file3.nc mydata.vdf
is identical to the previous example, except that here the variables are expected to be explicitly time varying, having their slowest varying dimension named "times".
vdfcreate, ncdf2vdf.
Conversion of NetCDF datafiles to a VAPOR VDC
Last updated on $Date$