Package 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
-
-
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, userAdvice, varList
-
-
Constructor Summary
Constructors Constructor Description CSMConvention()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addParameter2(CoordinateTransform rs, String paramName, NetcdfFile ds, AttributeContainer 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 CoordinateTransform
makeCoordinateTransform(NetcdfDataset ds, Variable ctv)
-
Methods inherited from class ucar.nc2.dataset.conv.COARDSConvention
checkTimeVarForCalendar, getAxisType, isMine
-
Methods inherited from class ucar.nc2.dataset.CoordSysBuilder
addCoordinateVariable, addUserAdvice, assignCoordinateSystemsExplicit, assignCoordinateTransforms, breakupConventionNames, buildConventionAttribute, buildCoordinateSystems, factory, findCoordinateAxis, findCoordinateSystems, findCoordinateTransforms, findVarProcess, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, isCoordinateAxisForVariable, makeCoordinateAxes, makeCoordinateSystems, makeCoordinateSystemsImplicit, makeCoordinateSystemsMaximal, makeCoordinateTransforms, makeCoordinateTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
-
-
-
-
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 interfaceCoordSysBuilderIF
- Overrides:
augmentDataset
in classCOARDSConvention
- 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 classCoordSysBuilder
- Parameters:
ds
- why
-
makeCoordinateTransform
protected CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv)
- Overrides:
makeCoordinateTransform
in classCoordSysBuilder
-
addParameter2
protected boolean addParameter2(CoordinateTransform rs, String paramName, NetcdfFile ds, AttributeContainer 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
-
-