ucar.nc2.dataset.conv
Class CSMConvention
java.lang.Object
ucar.nc2.dataset.CoordSysBuilder
ucar.nc2.dataset.conv.COARDSConvention
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
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 |
CSMConvention
public CSMConvention()
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 datasetcancelTask
- 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 datasetv
- 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 CoordinateTransformparamName
- the parameter nameds
- datasetv
- variableattName
- variable attribute namereadData
- 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.