public class CoordSystemBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordSystemBuilder.Factory |
protected class |
CoordSystemBuilder.VarProcess
Classifications of Variables into axis, systems and transforms
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
conventionName |
protected CoordinatesHelper.Builder |
coords |
protected com.google.common.collect.Multimap<ucar.nc2.internal.dataset.CoordSystemBuilder.DimensionWithGroup,CoordSystemBuilder.VarProcess> |
coordVarsForDimension |
protected NetcdfDataset.Builder<?> |
datasetBuilder |
protected boolean |
debug |
protected static org.slf4j.Logger |
log |
protected Formatter |
parseInfo |
protected Group.Builder |
rootGroup |
protected List<StructureDS.Builder<?>> |
structList |
protected Formatter |
userAdvice |
protected List<CoordSystemBuilder.VarProcess> |
varList |
| Modifier | Constructor and Description |
|---|---|
protected |
CoordSystemBuilder(NetcdfDataset.Builder<?> datasetBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUserAdvice(String advice) |
protected void |
assignCoordinateSystemsExplicit()
Assign explicit CoordinateSystem objects to variables.
|
protected void |
assignCoordinateTransforms()
Assign CoordinateTransform objects to Variables and Coordinate Systems.
|
protected void |
augmentDataset(CancelTask cancelTask) |
protected void |
buildCoordinateSystems() |
static int |
countDomainSize(Variable.Builder<?>... axes) |
protected CoordSystemBuilder.VarProcess |
findCoordinateAxis(String name) |
protected CoordSystemBuilder.VarProcess |
findVarProcess(String name,
CoordSystemBuilder.VarProcess from) |
protected AxisType |
getAxisType(VariableDS.Builder<?> vb)
Identify what kind of AxisType the named variable is.
|
String |
getConventionUsed() |
String |
getParseInfo() |
String |
getUserAdvice() |
protected void |
identifyCoordinateAxes()
Everything named in the coordinateAxes or coordinates attribute are Coordinate axes.
|
protected void |
identifyCoordinateSystems()
Identify coordinate systems, using _Coordinate.Systems attribute.
|
protected void |
identifyCoordinateTransforms()
Identify coordinate transforms, using _CoordinateTransforms attribute.
|
protected boolean |
isCoordinateAxisForVariable(CoordinateAxis.Builder<?> axis,
VariableDS.Builder<?> vb)
Does this axis "fit" this variable.
|
static boolean |
isCoordinateVariable(Variable.Builder<?> vb)
Calculate if this is a classic coordinate variable: has same name as its first dimension.
|
protected void |
makeCoordinateAxes()
Take previously identified Coordinate Axis and Coordinate Variables and make them into a
CoordinateAxis.
|
protected void |
makeCoordinateSystems() |
protected void |
makeCoordinateSystemsImplicit()
Make implicit CoordinateSystem objects for variables that dont already have one, by using the
variables' list of coordinate axes, and any coordinateVariables for it.
|
protected void |
makeCoordinateTransforms()
Take all previously identified Coordinate Transforms and create a CoordinateTransform object by
calling CoordTransBuilder.makeCoordinateTransform().
|
VariableDS.Builder<?> |
makeCoordinateTransformVariable(CoordinateTransform ct)
Create a "dummy" Coordinate Transform Variable based on the given CoordinateTransform.
|
protected TransformBuilder |
makeTransformBuilder(Variable.Builder<?> vb) |
protected void |
setConventionUsed(String convName) |
protected static final org.slf4j.Logger log
protected NetcdfDataset.Builder<?> datasetBuilder
protected Group.Builder rootGroup
protected CoordinatesHelper.Builder coords
protected List<CoordSystemBuilder.VarProcess> varList
protected List<StructureDS.Builder<?>> structList
protected com.google.common.collect.Multimap<ucar.nc2.internal.dataset.CoordSystemBuilder.DimensionWithGroup,CoordSystemBuilder.VarProcess> coordVarsForDimension
protected String conventionName
protected Formatter parseInfo
protected Formatter userAdvice
protected boolean debug
protected CoordSystemBuilder(NetcdfDataset.Builder<?> datasetBuilder)
public static boolean isCoordinateVariable(Variable.Builder<?> vb)
public static int countDomainSize(Variable.Builder<?>... axes)
protected boolean isCoordinateAxisForVariable(CoordinateAxis.Builder<?> axis, VariableDS.Builder<?> vb)
axis - check if this axis is ok for the given variablevb - the given variable builderprotected void setConventionUsed(String convName)
public String getConventionUsed()
protected void addUserAdvice(String advice)
public String getParseInfo()
public String getUserAdvice()
protected void augmentDataset(CancelTask cancelTask) throws IOException
IOExceptionprotected void buildCoordinateSystems()
protected void identifyCoordinateAxes()
protected void identifyCoordinateSystems()
protected void identifyCoordinateTransforms()
@Nullable protected AxisType getAxisType(VariableDS.Builder<?> vb)
vb - a variable already identified as a Coordinate Axisprotected void makeCoordinateAxes()
protected void makeCoordinateSystems()
protected void assignCoordinateSystemsExplicit()
protected void makeCoordinateSystemsImplicit()
protected void makeCoordinateTransforms()
protected TransformBuilder makeTransformBuilder(Variable.Builder<?> vb)
protected void assignCoordinateTransforms()
protected CoordSystemBuilder.VarProcess findVarProcess(String name, CoordSystemBuilder.VarProcess from)
protected CoordSystemBuilder.VarProcess findCoordinateAxis(String name)
public VariableDS.Builder<?> makeCoordinateTransformVariable(CoordinateTransform ct)
ct - based on the CoordinateTransform