public abstract class AbstractCoordTransBuilder extends Object implements CoordTransBuilderIF
| Modifier and Type | Field and Description |
|---|---|
protected Earth |
earth |
protected double |
earth_radius |
protected Formatter |
errBuffer |
protected double |
false_easting |
protected double |
false_northing |
protected double |
lat0 |
protected double |
lon0 |
| Constructor and Description |
|---|
AbstractCoordTransBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addParameter(CoordinateTransform rs,
String paramName,
NetcdfFile ds,
String varNameEscaped)
Add a Parameter to a CoordinateTransform.
|
protected double |
getEarthRadiusInKm(Variable ctv)
Get the earth radius in km from the attribute "earth_radius".
|
static double |
getFalseEastingScaleFactor(NetcdfDataset ds,
Variable ctv) |
protected String |
getFormula(NetcdfDataset ds,
Variable ctv) |
VerticalTransform |
makeMathTransform(NetcdfDataset ds,
Dimension timeDim,
VerticalCT vCT)
Make a VerticalTransform.
|
String[] |
parseFormula(String formula_terms,
String termString) |
protected double |
readAttributeDouble(Variable v,
String attname,
double defValue)
Read a variable attribute as a double.
|
protected double[] |
readAttributeDouble2(Attribute att)
Read an attribute as double[2].
|
protected void |
readStandardParams(NetcdfDataset ds,
Variable ctv) |
void |
setErrorBuffer(Formatter errBuffer)
Pass in a Formatter where error messages can be appended.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransformName, getTransformType, makeCoordinateTransformprotected Formatter errBuffer
protected double lat0
protected double lon0
protected double false_easting
protected double false_northing
protected double earth_radius
protected Earth earth
public void setErrorBuffer(Formatter errBuffer)
CoordTransBuilderIFsetErrorBuffer in interface CoordTransBuilderIFerrBuffer - use this Formatter to record parse and error infopublic VerticalTransform makeMathTransform(NetcdfDataset ds, Dimension timeDim, VerticalCT vCT)
CoordTransBuilderIFmakeMathTransform in interface CoordTransBuilderIFds - the datasettimeDim - the time dimensionvCT - the vertical coordinate transformprotected void readStandardParams(NetcdfDataset ds, Variable ctv)
protected double readAttributeDouble(Variable v, String attname, double defValue)
v - the variableattname - name of variabledefValue - default value if attribute is not foundprotected double[] readAttributeDouble2(Attribute att)
att - the attribute. May be numeric or String.protected boolean addParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped)
rs - the CoordinateTransformparamName - the parameter nameds - datasetvarNameEscaped - escaped variable nameprotected String getFormula(NetcdfDataset ds, Variable ctv)
public static double getFalseEastingScaleFactor(NetcdfDataset ds, Variable ctv)
protected double getEarthRadiusInKm(Variable ctv)
ctv - coord transform variableCopyright © 1999–2013 UCAR/Unidata. All rights reserved.