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

Version:
$Revision:63 $ $Date:2006-07-12 21:50:51Z $
Author:
caron

Constructor Summary
GridIndexToNC()
           
 
Method Summary
static java.lang.String makeLevelName(GridRecord gr, GridTableLookup lookup)
          Make the level name
 java.lang.String makeVariableName(GridRecord gr, GridTableLookup lookup)
          Make the variable name
 void open(GridIndex index, 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(GridRecord gr,
                                             GridTableLookup lookup)
Make the level name

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

makeVariableName

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

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

open

public void open(GridIndex index,
                 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

setUseDescriptionForVariableName

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

Parameters:
value - false to use name instead of description