Package ucar.nc2.dataset.conv
Class WRFConvention
- java.lang.Object
-
- ucar.nc2.dataset.CoordSysBuilder
-
- ucar.nc2.dataset.conv.WRFConvention
-
- All Implemented Interfaces:
CoordSysBuilderIF
public class WRFConvention extends CoordSysBuilder
WRF netcdf output files. Note: Apparently WRF netcdf files before version 2 didnt output the projection origin, so we cant properly georeference them. This Convention currently only supports ARW output, identified as DYN_OPT=2 or GRIDTYPE=C
-
-
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.CoordSysBuilder
conventionName, coordVarMap, debug, log, parseInfo, resourcesDir, userAdvice, varList
-
-
Constructor Summary
Constructors Constructor Description WRFConvention()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignCoordinateTransforms(NetcdfDataset ncDataset)
Assign CoordinateTransform objects to Coordinate Systems.void
augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.protected AxisType
getAxisType(NetcdfDataset ds, VariableEnhanced ve)
Identify what kind of AxisType the named variable is.String
getZisPositive(CoordinateAxis v)
Does increasing values of Z go vertical up?static boolean
isMine(NetcdfFile ncfile)
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, breakupConventionNames, buildConventionAttribute, buildCoordinateSystems, factory, findCoordinateAxes, findCoordinateAxis, findCoordinateSystems, findCoordinateTransforms, findVarProcess, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, isCoordinateAxisForVariable, makeCoordinateAxes, makeCoordinateSystems, makeCoordinateSystemsImplicit, makeCoordinateSystemsMaximal, makeCoordinateTransform, makeCoordinateTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
-
-
-
-
Method Detail
-
isMine
public static boolean isMine(NetcdfFile ncfile)
-
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
-
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.
-
getZisPositive
public String getZisPositive(CoordinateAxis v)
Does increasing values of Z go vertical up?- Parameters:
v
- for thsi axis- Returns:
- "up" if this is a Vertical (z) coordinate axis which goes up as coords get bigger, else return "down"
-
assignCoordinateTransforms
protected void assignCoordinateTransforms(NetcdfDataset ncDataset)
Assign CoordinateTransform objects to Coordinate Systems.- Overrides:
assignCoordinateTransforms
in classCoordSysBuilder
- Parameters:
ncDataset
- why
-
-