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
,McIDASAreaTransformBuilder
,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 Earth
earth
protected double
earth_radius
protected double
false_easting
protected double
false_northing
protected double
lat0
protected double
lon0
-
Constructor Summary
Constructors Constructor Description AbstractTransformBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
addParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped)
Add a Parameter to a CoordinateTransform.static double
getFalseEastingScaleFactor(String geoCoordinateUnits)
static double
getFalseEastingScaleFactor(NetcdfDataset ds, AttributeContainer ctv)
static String
getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv)
static String
getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv, com.google.common.collect.ImmutableList<CoordinateAxis> coordAxes)
abstract String
getTransformName()
protected double
readAttributeDouble(AttributeContainer atts, String attname, double defValue)
Read an attribute as a double.void
setErrorBuffer(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)
-
getGeoCoordinateUnits
public static String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv, com.google.common.collect.ImmutableList<CoordinateAxis> coordAxes)
-
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
-
-