Package ucar.nc2.dataset.transform
Class AbstractTransformBuilder
- java.lang.Object
-
- ucar.nc2.dataset.transform.AbstractTransformBuilder
-
- Direct Known Subclasses:
AlbersEqualArea,AzimuthalEquidistant,CFHybridHeight,CFHybridSigmaPressure,CFLnPressure,CFOceanS,CFOceanSigma,CFSigma,CsmSigma,CsmSigma.HybridSigmaPressureBuilder,FlatEarth,Geostationary,LambertAzimuthal,LambertConformalConic,LambertCylindricalEqualArea,LatLon,Mercator,MSGnavigation,Orthographic,PolarStereographic,PolyconicProjection,RotatedLatLon,RotatedPole,Sinusoidal,Stereographic,TransverseMercator,UTM,VerticalPerspective,VExplicitField,VOceanSG1,VOceanSG2,WRFEtaTransformBuilder
public abstract class AbstractTransformBuilder extends Object
Abstract superclass for implementations of HorizTransformBuilderIF and VertTransformBuilderIF
-
-
Field Summary
Fields Modifier and Type Field Description protected Earthearthprotected doubleearth_radiusprotected doublefalse_eastingprotected doublefalse_northingprotected doublelat0protected doublelon0
-
Constructor Summary
Constructors Constructor Description AbstractTransformBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanaddParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped)Add a Parameter to a CoordinateTransform.static doublegetFalseEastingScaleFactor(String geoCoordinateUnits)static doublegetFalseEastingScaleFactor(NetcdfDataset ds, AttributeContainer ctv)static StringgetGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv)abstract StringgetTransformName()protected doublereadAttributeDouble(AttributeContainer atts, String attname, double defValue)Read an attribute as a double.voidsetErrorBuffer(Formatter errBuffer)
-
-
-
Field Detail
-
lat0
protected double lat0
-
lon0
protected double lon0
-
false_easting
protected double false_easting
-
false_northing
protected double false_northing
-
earth_radius
protected double earth_radius
-
earth
protected Earth earth
-
-
Method Detail
-
getFalseEastingScaleFactor
public static double getFalseEastingScaleFactor(NetcdfDataset ds, AttributeContainer ctv)
-
getGeoCoordinateUnits
public static String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv)
-
getFalseEastingScaleFactor
public static double getFalseEastingScaleFactor(String geoCoordinateUnits)
-
setErrorBuffer
public void setErrorBuffer(Formatter errBuffer)
-
getTransformName
public abstract String getTransformName()
-
readAttributeDouble
protected double readAttributeDouble(AttributeContainer atts, String attname, double defValue)
Read an attribute as a double.- Parameters:
atts- the attribute containerattname- name of variabledefValue- default value if attribute is not found- Returns:
- attribute value as a double, else NaN if not found
-
addParameter
protected boolean addParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped)
Add a Parameter to a CoordinateTransform. Make sure that the variable exists.- Parameters:
rs- the CoordinateTransformparamName- the parameter nameds- datasetvarNameEscaped- escaped variable name- Returns:
- true if success, false is failed
-
-