ucar.nc2.iosp.grid
Class GridIndexToNC

java.lang.Object
  extended by ucar.nc2.iosp.grid.GridIndexToNC

public class GridIndexToNC
extends java.lang.Object

Create a Netcdf File from a GridIndex

Author:
caron

Constructor Summary
GridIndexToNC()
           
 
Method Summary
 GridHorizCoordSys getHorizCoordSys(ucar.grid.GridRecord gribRecord)
           
 java.util.Map<java.lang.String,GridHorizCoordSys> getHorizCoordSystems()
           
static java.lang.String makeLevelName(ucar.grid.GridRecord gr, ucar.grid.GridTableLookup lookup)
          Make the level name
static java.lang.String makeSuffixName(ucar.grid.GridRecord gr, ucar.grid.GridTableLookup lookup)
          Get suffix name of variable if it exists
 java.lang.String makeVariableName(ucar.grid.GridRecord gr, ucar.grid.GridTableLookup lookup)
          Make the variable name
 void open(ucar.grid.GridIndex index, ucar.grid.GridTableLookup lookup, int version, NetcdfFile ncfile, FmrcCoordSys fmrcCoordSys, CancelTask cancelTask)
          Fill in the netCDF file
 void setUseDescriptionForVariableName(boolean value)
          Should use the description for the variable name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridIndexToNC

public GridIndexToNC()
Method Detail

makeLevelName

public static java.lang.String makeLevelName(ucar.grid.GridRecord gr,
                                             ucar.grid.GridTableLookup lookup)
Make the level name

Parameters:
gr - grid record
lookup - lookup table
Returns:
name for the level

makeSuffixName

public static java.lang.String makeSuffixName(ucar.grid.GridRecord gr,
                                              ucar.grid.GridTableLookup lookup)
Get suffix name of variable if it exists

Parameters:
gr - grid record
lookup - lookup table
Returns:
name of the suffix, ensemble or probability

makeVariableName

public java.lang.String makeVariableName(ucar.grid.GridRecord gr,
                                         ucar.grid.GridTableLookup lookup)
Make the variable name

Parameters:
gr - grid record
lookup - lookup table
Returns:
variable name

open

public void open(ucar.grid.GridIndex index,
                 ucar.grid.GridTableLookup lookup,
                 int version,
                 NetcdfFile ncfile,
                 FmrcCoordSys fmrcCoordSys,
                 CancelTask cancelTask)
          throws java.io.IOException
Fill in the netCDF file

Parameters:
index - grid index
lookup - lookup table
version - version of data
ncfile - netCDF file to fill in
fmrcCoordSys - forecast model run CS
cancelTask - cancel task
Throws:
java.io.IOException - Problem reading from the file

getHorizCoordSys

public GridHorizCoordSys getHorizCoordSys(ucar.grid.GridRecord gribRecord)

getHorizCoordSystems

public java.util.Map<java.lang.String,GridHorizCoordSys> getHorizCoordSystems()

setUseDescriptionForVariableName

public void setUseDescriptionForVariableName(boolean value)
Should use the description for the variable name.

Parameters:
value - false to use name instead of description