public abstract class AbstractCoordTransBuilder extends java.lang.Object implements CoordTransBuilderIF
Modifier and Type | Field and Description |
---|---|
protected Earth |
earth |
protected double |
earth_radius |
protected java.util.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,
java.lang.String paramName,
NetcdfFile ds,
java.lang.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 java.lang.String |
getFormula(NetcdfDataset ds,
Variable ctv) |
VerticalTransform |
makeMathTransform(NetcdfDataset ds,
Dimension timeDim,
VerticalCT vCT)
Make a VerticalTransform.
|
java.lang.String[] |
parseFormula(java.lang.String formula_terms,
java.lang.String termString) |
protected java.lang.String |
readAttribute(Variable v,
java.lang.String attname,
java.lang.String defValue)
Read a variable attribute as a String.
|
protected double |
readAttributeDouble(Variable v,
java.lang.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(java.util.Formatter errBuffer)
Pass in a Formatter where error messages can be appended.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransformName, getTransformType, makeCoordinateTransform
protected java.util.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(java.util.Formatter errBuffer)
CoordTransBuilderIF
setErrorBuffer
in interface CoordTransBuilderIF
errBuffer
- use this Formatter to record parse and error infopublic VerticalTransform makeMathTransform(NetcdfDataset ds, Dimension timeDim, VerticalCT vCT)
CoordTransBuilderIF
makeMathTransform
in interface CoordTransBuilderIF
ds
- the datasettimeDim
- the time dimensionvCT
- the vertical coordinate transformprotected void readStandardParams(NetcdfDataset ds, Variable ctv)
protected java.lang.String readAttribute(Variable v, java.lang.String attname, java.lang.String defValue)
v
- the variableattname
- name of variabledefValue
- default value if attribute is not foundprotected double readAttributeDouble(Variable v, java.lang.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, java.lang.String paramName, NetcdfFile ds, java.lang.String varNameEscaped)
rs
- the CoordinateTransformparamName
- the parameter nameds
- datasetvarNameEscaped
- escaped variable nameprotected java.lang.String getFormula(NetcdfDataset ds, Variable ctv)
public java.lang.String[] parseFormula(java.lang.String formula_terms, java.lang.String termString)
public static double getFalseEastingScaleFactor(NetcdfDataset ds, Variable ctv)
protected double getEarthRadiusInKm(Variable ctv)
ctv
- coord transform variable