This utility reads NetCDF or GRIB files, and converts the grids into individual
ESRI FLT files for use within HEC-MetVue. Data from files are extracted
for each time step and layer. Output files are named based on the following
convention: VariableName_Tttt_Llll.flt, where ttt is the time step index and
lll is the layer number index.
Information about the contents of the file will be printed to the console
The filename to process
variableName: The long name of the variable, or the variable name if long name
isn't specified, for the variable to be selected.
Or
?: Listing of the available variables will be printed to
the console.
If the -variable argument is not specified, then all variables will be read.
The index of the layer to be read. The layer is considered to be the
dimension that is neither the x, y, or time dimension of the variable.
If not specified, all layers will be read.
This argument specifies that any precipitation rate variables will be
converted to depths.
This argument specifies duration for which the precipitation rate applies.
This argument must be used in conjunction with the -rateToDepth argument.
Refer to Command Line Time Specifications for acceptable durations syntax.
The output directory to save the extracted grids into. If not specified,
the files will be saved into a directory within the input file's
directory, where the directory name matches the filename.
Example: "NCGribExtractor -inputFile C:\\MyFile.nc -variable variableName"
would extract the data to to C:\\MyFile\variableName_Tttt_Llll.flt
SAMPLE COMMAND LINE ARGUMENTS
NCGribExtractor -inputfile NLDAS.grb -variable "Soil Moisture Content @ Layer between 2 depths below land surface layer" -layer 4 -outputdirectory NLDAS_SM
NCGribExtractor -inputfile HRRR.grib2 -variable "Precipitation rate @ Ground or water surface" -outputdirectory HRRR_PR
NCGribExtractor -inputfile HRRR.grib2 -variable "Precipitation rate @ Ground or water surface" -rateToDepth -outputdirectory HRRR_PR
This program may utilize a significant amount of memory depending on datasets specified.
For extra intensive data operations, it may be necessary to increase the memory allocated
to the jvm. This can be performed by setting the -Xmx argument, which can be altered
easily in the "memory_setting" variable in the NCGribExtractor.cmd example file provided.