ucar.nc2.dataset.conv
Class CF1Convention
java.lang.Object
ucar.nc2.dataset.CoordSysBuilder
ucar.nc2.dataset.conv.COARDSConvention
ucar.nc2.dataset.conv.CSMConvention
ucar.nc2.dataset.conv.CF1Convention
- All Implemented Interfaces:
- CoordSysBuilderIF
- Direct Known Subclasses:
- CEDRICRadarConvention
public class CF1Convention
- extends CSMConvention
CF-1 Convention.
see http://www.cgd.ucar.edu/cms/eaton/cf-metadata/index.html
"The CF conventions for climate and forecast metadata are designed to promote the
processing and sharing of files created with the netCDF API. The conventions define
metadata that provide a definitive description of what the data in each variable
represents, and of the spatial and temporal properties of the data.
This enables users of data from different sources to decide which quantities are
comparable, and facilitates building applications with powerful extraction, regridding,
and display capabilities."
- 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 |
CF1Convention
public CF1Convention()
getZisPositive
public static String getZisPositive(String zaxisName,
String vertCoordUnits)
- Guess the value of ZisPositive based on z axis name and units
- Parameters:
zaxisName
- z coordinate axis namevertCoordUnits
- z coordinate axis name
- Returns:
- CF.POSITIVE_UP or CF.POSITIVE_DOWN
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 CSMConvention
- Parameters:
ds
- modify this datasetcancelTask
- give user a chance to bail out
- Throws:
IOException
- on error
getAxisType
protected AxisType getAxisType(NetcdfDataset ncDataset,
VariableEnhanced v)
- Augment CSM axis type identification with "projection_x_coordinate", "projection_y_coordinate"
and the various dimensionless vertical coordinates
- Overrides:
getAxisType
in class CSMConvention
- Parameters:
ncDataset
- for this datasetv
- a variable alreaddy identified as a Coodinate Axis
- Returns:
- AxisType or null if unknown.
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.