public class CoordTransBuilder
extends java.lang.Object
Constructor and Description |
---|
CoordTransBuilder() |
Modifier and Type | Method and Description |
---|---|
static CoordinateTransform |
makeCoordinateTransform(NetcdfDataset ds,
AttributeContainer ctv,
java.util.Formatter parseInfo,
java.util.Formatter errInfo)
Make a CoordinateTransform object from the parameters in a Coordinate Transform Variable, using an intrinsic or
registered CoordTransBuilder.
|
static CoordinateTransform |
makeCoordinateTransform(NetcdfDataset ds,
AttributeContainer ctv,
java.util.Formatter parseInfo,
java.util.Formatter errInfo,
com.google.common.collect.ImmutableList<CoordinateAxis> coordAxes)
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 ucar.unidata.geoloc.ProjectionImpl |
makeProjection(ucar.nc2.ft2.coverage.CoverageTransform gct,
java.util.Formatter errInfo)
Deprecated.
|
static void |
registerTransform(java.lang.String transformName,
java.lang.Class c)
Register a class that implements a Coordinate Transform.
|
static void |
registerTransform(java.lang.String transformName,
java.lang.String className)
Register a class that implements a Coordinate Transform.
|
static void |
registerTransformMaybe(java.lang.String transformName,
java.lang.String className)
Register a class that implements a Coordinate Transform.
|
@Nullable public static CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, AttributeContainer ctv, java.util.Formatter parseInfo, java.util.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.@Nullable public static CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, AttributeContainer ctv, java.util.Formatter parseInfo, java.util.Formatter errInfo, com.google.common.collect.ImmutableList<CoordinateAxis> coordAxes)
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.coordAxes
- any precomputed coordinate axespublic static VariableDS makeDummyTransformVariable(NetcdfDataset ds, CoordinateTransform ct)
ds
- for this datasetct
- based on the CoordinateTransform@Deprecated public static ucar.unidata.geoloc.ProjectionImpl makeProjection(ucar.nc2.ft2.coverage.CoverageTransform gct, java.util.Formatter errInfo)
errInfo
- pass back error information.public static void registerTransform(java.lang.String transformName, java.lang.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(java.lang.String transformName, java.lang.String className) throws java.lang.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.java.lang.ClassNotFoundException
- if Class.forName( className) failspublic static void registerTransformMaybe(java.lang.String transformName, java.lang.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.