public class CoordTransBuilder extends Object
Constructor and Description |
---|
CoordTransBuilder() |
Modifier and Type | Method and Description |
---|---|
static CoordinateTransform |
makeCoordinateTransform(NetcdfDataset ds,
AttributeContainer ctv,
Formatter parseInfo,
Formatter errInfo)
Make a CoordinateTransform object from the parameters in a Coordinate Transform Variable, using an intrinsic or
registered CoordTransBuilder.
|
static VariableDS |
makeDummyTransformVariable(NetcdfDataset ds,
CoordinateTransform ct)
Create a "dummy" Coordinate Transform Variable based on the given CoordinateTransform.
|
static ProjectionImpl |
makeProjection(ucar.nc2.ft2.coverage.CoverageTransform gct,
Formatter errInfo)
Make a CoordinateTransform object from the parameters in a GridCoordTransform, using an intrinsic or
registered CoordTransBuilder.
|
static void |
registerTransform(String transformName,
Class c)
Register a class that implements a Coordinate Transform.
|
static void |
registerTransform(String transformName,
String className)
Register a class that implements a Coordinate Transform.
|
static void |
registerTransformMaybe(String transformName,
String className)
Register a class that implements a Coordinate Transform.
|
public static void registerTransform(String transformName, Class c)
transformName
- name of transform. This name is used in the datasets to identify the transform, eg CF names.c
- class that implements CoordTransBuilderIF.public static void registerTransform(String transformName, String className) throws ClassNotFoundException
transformName
- name of transform. This name is used in the datasets to identify the transform, eg CF names.className
- name of class that implements CoordTransBuilderIF.ClassNotFoundException
- if Class.forName( className) failspublic static void registerTransformMaybe(String transformName, String className)
transformName
- name of transform. This name is used in the datasets to identify the transform, eg CF names.className
- name of class that implements CoordTransBuilderIF.@Nullable public static CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, AttributeContainer ctv, Formatter parseInfo, Formatter errInfo)
ds
- enclosing dataset, only used for vertical transformsctv
- the Coordinate Transform Variable - container for the transform parametersparseInfo
- pass back information about the parsing.errInfo
- pass back error information.public static VariableDS makeDummyTransformVariable(NetcdfDataset ds, CoordinateTransform ct)
ds
- for this datasetct
- based on the CoordinateTransformpublic static ProjectionImpl makeProjection(ucar.nc2.ft2.coverage.CoverageTransform gct, Formatter errInfo)
errInfo
- pass back error information.