public abstract class AbstractTransformBuilder
extends java.lang.Object
| 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 |
|---|
AbstractTransformBuilder() |
| 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(AttributeContainer ctv)
Get the earth radius in km from the attribute "earth_radius".
|
static double |
getFalseEastingScaleFactor(NetcdfDataset ds,
AttributeContainer ctv) |
static double |
getFalseEastingScaleFactor(java.lang.String geoCoordinateUnits) |
protected java.lang.String |
getFormula(AttributeContainer ctv) |
static java.lang.String |
getGeoCoordinateUnits(NetcdfDataset ds,
AttributeContainer ctv) |
abstract java.lang.String |
getTransformName() |
java.lang.String[] |
parseFormula(java.lang.String formula_terms,
java.lang.String termString) |
protected double |
readAttributeDouble(AttributeContainer 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(AttributeContainer ctv,
java.lang.String units) |
void |
setErrorBuffer(java.util.Formatter errBuffer) |
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 static double getFalseEastingScaleFactor(NetcdfDataset ds, AttributeContainer ctv)
public static java.lang.String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv)
public static double getFalseEastingScaleFactor(java.lang.String geoCoordinateUnits)
public void setErrorBuffer(java.util.Formatter errBuffer)
public abstract java.lang.String getTransformName()
protected void readStandardParams(AttributeContainer ctv, java.lang.String units)
protected double readAttributeDouble(AttributeContainer 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(AttributeContainer ctv)
public java.lang.String[] parseFormula(java.lang.String formula_terms,
java.lang.String termString)
protected double getEarthRadiusInKm(AttributeContainer ctv)
ctv - coord transform variable