ucar.nc2.dataset.conv
Class CSMConvention

java.lang.Object
  extended by ucar.nc2.dataset.CoordSysBuilder
      extended by ucar.nc2.dataset.conv.COARDSConvention
          extended by ucar.nc2.dataset.conv.CSMConvention
All Implemented Interfaces:
CoordSysBuilderIF
Direct Known Subclasses:
CF1Convention, GDVConvention

public class CSMConvention
extends COARDSConvention

CSM-1 Convention. Deprecated: use CF

Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordSysBuilder
CoordSysBuilder.ConventionNameOk, CoordSysBuilder.VarProcess
 
Field Summary
 
Fields inherited from class ucar.nc2.dataset.conv.COARDSConvention
checkForMeter
 
Fields inherited from class ucar.nc2.dataset.CoordSysBuilder
conventionName, coordVarMap, debug, log, parseInfo, resourcesDir, showRejects, userAdvice, varList
 
Constructor Summary
CSMConvention()
           
 
Method Summary
protected  boolean addParameter2(CoordinateTransform rs, String paramName, NetcdfFile ds, Variable v, String attName, boolean readData)
          Add a Parameter to a CoordinateTransform.
 void augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
          Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.
protected  void findCoordinateAxes(NetcdfDataset ds)
          The attribute "coordinates" is an alias for _CoordinateAxes.
protected  AxisType getAxisType(NetcdfDataset ncd, VariableEnhanced v)
          Identify what kind of AxisType the named variable is.
protected  CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv)
           
 
Methods inherited from class ucar.nc2.dataset.CoordSysBuilder
addCoordinateVariable, addUserAdvice, assignCoordinateSystemsExplicit, assignCoordinateTransforms, buildCoordinateSystems, factory, findCoordinateAxis, findCoordinateSystems, findCoordinateTransforms, findVarProcess, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, hasXY, isCoordinateAxisForVariable, makeCoordinateAxes, makeCoordinateSystems, makeCoordinateSystemsImplicit, makeCoordinateSystemsMaximal, makeCoordinateTransforms, makeCoordinateTransformVariable, makeDummyTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSMConvention

public CSMConvention()
Method Detail

augmentDataset

public void augmentDataset(NetcdfDataset ds,
                           CancelTask cancelTask)
                    throws IOException
Description copied from interface: CoordSysBuilderIF
Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.

Specified by:
augmentDataset in interface CoordSysBuilderIF
Overrides:
augmentDataset in class CoordSysBuilder
Parameters:
ds - modify this dataset
cancelTask - give user a chance to bail out
Throws:
IOException - on error

findCoordinateAxes

protected void findCoordinateAxes(NetcdfDataset ds)
The attribute "coordinates" is an alias for _CoordinateAxes.

Overrides:
findCoordinateAxes in class CoordSysBuilder
Parameters:
ds - why

getAxisType

protected AxisType getAxisType(NetcdfDataset ncd,
                               VariableEnhanced v)
Description copied from class: CoordSysBuilder
Identify what kind of AxisType the named variable is. Only called for variables already identified as Coordinate Axes. Default null - subclasses can override.

Overrides:
getAxisType in class COARDSConvention
Parameters:
ncd - for this dataset
v - a variable alreaddy identified as a Coodinate Axis
Returns:
AxisType or null if unknown.

makeCoordinateTransform

protected CoordinateTransform makeCoordinateTransform(NetcdfDataset ds,
                                                      Variable ctv)
Overrides:
makeCoordinateTransform in class CoordSysBuilder

addParameter2

protected boolean addParameter2(CoordinateTransform rs,
                                String paramName,
                                NetcdfFile ds,
                                Variable v,
                                String attName,
                                boolean readData)
Add a Parameter to a CoordinateTransform. The variable attribute points to a another variable that has the data in it. Make sure that atrribute and variable exist. Id readData is true, read the data and use it as the value of the parameter, otherwise use the name as the value of the parameter.

Parameters:
rs - the CoordinateTransform
paramName - the parameter name
ds - dataset
v - variable
attName - variable attribute name
readData - if true, read data and use a s parameter value
Returns:
true if success, false is failed


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.