Package ucar.nc2.dataset.conv
Class DefaultConvention
- java.lang.Object
-
- ucar.nc2.dataset.CoordSysBuilder
-
- ucar.nc2.dataset.conv.DefaultConvention
-
- All Implemented Interfaces:
CoordSysBuilderIF
- Direct Known Subclasses:
IridlConvention
public class DefaultConvention extends CoordSysBuilder
Default Coordinate Conventions. Split from GDV.- Since:
- Dec 17, 2008
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordSysBuilder
CoordSysBuilder.ConventionNameOk, CoordSysBuilder.VarProcess
-
-
Field Summary
Fields Modifier and Type Field Description protected ProjectionCT
projCT
-
Fields inherited from class ucar.nc2.dataset.CoordSysBuilder
conventionName, coordVarMap, debug, log, parseInfo, resourcesDir, userAdvice, varList
-
-
Constructor Summary
Constructors Constructor Description DefaultConvention()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Identify coordinate axes, set VarProcess.isCoordinateAxis = true.protected AxisType
getAxisType(NetcdfDataset ds, VariableEnhanced ve)
Identify what kind of AxisType the named variable is.protected void
makeCoordinateTransforms(NetcdfDataset ds)
Take all previously identified Coordinate Transforms and create a CoordinateTransform object by calling CoordTransBuilder.makeCoordinateTransform().-
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, makeCoordinateTransform, makeCoordinateTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
-
-
-
-
Field Detail
-
projCT
protected ProjectionCT projCT
-
-
Method Detail
-
augmentDataset
public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
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 classCoordSysBuilder
- Parameters:
ds
- modify this datasetcancelTask
- give user a chance to bail out
-
findCoordinateAxes
protected void findCoordinateAxes(NetcdfDataset ds)
Description copied from class:CoordSysBuilder
Identify coordinate axes, set VarProcess.isCoordinateAxis = true. Default is to look for those referenced by _CoordinateAxes attribute. Note coordinate variables are already identified.- Overrides:
findCoordinateAxes
in classCoordSysBuilder
- Parameters:
ds
- why
-
makeCoordinateTransforms
protected void makeCoordinateTransforms(NetcdfDataset ds)
Description copied from class:CoordSysBuilder
Take all previously identified Coordinate Transforms and create a CoordinateTransform object by calling CoordTransBuilder.makeCoordinateTransform().- Overrides:
makeCoordinateTransforms
in classCoordSysBuilder
- Parameters:
ds
- why
-
getAxisType
protected AxisType getAxisType(NetcdfDataset ds, VariableEnhanced ve)
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 classCoordSysBuilder
- Parameters:
ds
- for this datasetve
- a variable alreaddy identified as a Coodinate Axis- Returns:
- AxisType or null if unknown.
-
-