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