Package ucar.nc2.ft.point.standard
Class CoordSysEvaluator
- java.lang.Object
-
- ucar.nc2.ft.point.standard.CoordSysEvaluator
-
public class CoordSysEvaluator extends Object
CoordinateSystem Evaluation utilities.- Since:
- Dec 16, 2008
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CoordSysEvaluator.Predicate
-
Constructor Summary
Constructors Constructor Description CoordSysEvaluator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoordinateAxis
findCoordByType(List<CoordinateAxis> axes, AxisType atype, CoordSysEvaluator.Predicate p)
static CoordinateAxis
findCoordByType(NetcdfDataset ds, AxisType atype)
Search for Axis by Type.static CoordinateAxis
findCoordByType(NetcdfDataset ds, AxisType atype, CoordSysEvaluator.Predicate p)
search for Axis by Type and test against a predicatestatic String
findCoordNameByType(NetcdfDataset ds, AxisType atype)
search for Axis by Type.static void
findCoords(TableConfig nt, NetcdfDataset ds, CoordSysEvaluator.Predicate p)
search for Axis by Type, assign to TableConfig if found.static String
findCoordShortNameByType(NetcdfDataset ds, AxisType atype)
static String
findCoordShortNameByType(NetcdfDataset ds, AxisType atype, CoordSysEvaluator.Predicate p)
static Dimension
findDimensionByType(NetcdfDataset ds, AxisType atype)
search for Dimension used by axis of given by Type.
-
-
-
Method Detail
-
findCoords
public static void findCoords(TableConfig nt, NetcdfDataset ds, CoordSysEvaluator.Predicate p)
search for Axis by Type, assign to TableConfig if found. search for Lat, Lon, Time, Height.- Parameters:
nt
- set coordinates short names in this table.ds
- search in this dataset's "Best" coordinate system. If no CoordSystem, try list of coordinate axes
-
findCoordNameByType
public static String findCoordNameByType(NetcdfDataset ds, AxisType atype)
search for Axis by Type.- Parameters:
ds
- search in this dataset's "Best" coordinate system.atype
- search for this type of CoordinateAxis. takes the first one it finds.- Returns:
- the found CoordinateAxis name, or null if none
-
findCoordShortNameByType
public static String findCoordShortNameByType(NetcdfDataset ds, AxisType atype)
-
findCoordShortNameByType
public static String findCoordShortNameByType(NetcdfDataset ds, AxisType atype, CoordSysEvaluator.Predicate p)
-
findCoordByType
public static CoordinateAxis findCoordByType(NetcdfDataset ds, AxisType atype)
Search for Axis by Type.- Parameters:
ds
- search in this dataset's "Best" coordinate system.atype
- search for this type of CoordinateAxis. takes the first one it finds.- Returns:
- the found CoordinateAxis, or null if none
-
findCoordByType
public static CoordinateAxis findCoordByType(NetcdfDataset ds, AxisType atype, CoordSysEvaluator.Predicate p)
search for Axis by Type and test against a predicate- Parameters:
ds
- search in this dataset's "Best" coordinate system.atype
- search for this type of CoordinateAxis.p
- match this predicate; may be null- Returns:
- the found CoordinateAxis, or null if none
-
findCoordByType
public static CoordinateAxis findCoordByType(List<CoordinateAxis> axes, AxisType atype, CoordSysEvaluator.Predicate p)
-
findDimensionByType
public static Dimension findDimensionByType(NetcdfDataset ds, AxisType atype)
search for Dimension used by axis of given by Type.- Parameters:
ds
- search in this dataset's "Best" coordinate system.atype
- search for this type of CoordinateAxis. takes the first one it finds.- Returns:
- the found CoordinateAxis' first Dimension, or null if none or scalar
-
-