Class CoordSysEvaluator


  • public class CoordSysEvaluator
    extends Object
    CoordinateSystem Evaluation utilities.
    Since:
    Dec 16, 2008
    • Constructor Detail

      • CoordSysEvaluator

        public CoordSysEvaluator()
    • 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
      • 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
      • 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