ucar.nc2.ft.point.standard
Class CoordSysEvaluator

java.lang.Object
  extended by ucar.nc2.ft.point.standard.CoordSysEvaluator

public class CoordSysEvaluator
extends java.lang.Object

CoordinateSystem Evaluation utilities.

Since:
Dec 16, 2008
Author:
caron

Constructor Summary
CoordSysEvaluator()
           
 
Method Summary
static CoordinateAxis findCoordByType(NetcdfDataset ds, AxisType atype)
          Look for Axis by Type.
static java.lang.String findCoordNameByType(NetcdfDataset ds, AxisType atype)
          Look for Axis by Type.
static void findCoords(TableConfig nt, NetcdfDataset ds)
          Look for Axis by Type, assign to TableConfig if found.
static Dimension findDimensionByType(NetcdfDataset ds, AxisType atype)
          Look for Axis by Type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordSysEvaluator

public CoordSysEvaluator()
Method Detail

findCoords

public static void findCoords(TableConfig nt,
                              NetcdfDataset ds)
Look for Axis by Type, assign to TableConfig if found. Looks for Lat, Lon, Time, Height.

Parameters:
nt - assign coordinates to this table.
ds - look in this dataset's "Best" coordinate system.

findCoordNameByType

public static java.lang.String findCoordNameByType(NetcdfDataset ds,
                                                   AxisType atype)
Look for Axis by Type.

Parameters:
ds - look in this dataset's "Best" coordinate system.
atype - look 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)
Look for Axis by Type.

Parameters:
ds - look in this dataset's "Best" coordinate system.
atype - look for this type of CoordinateAxis. takes the first one it finds.
Returns:
the found CoordinateAxis, or null if none

findDimensionByType

public static Dimension findDimensionByType(NetcdfDataset ds,
                                            AxisType atype)
Look for Axis by Type.

Parameters:
ds - look in this dataset's "Best" coordinate system.
atype - look for this type of CoordinateAxis. takes the first one it finds.
Returns:
the found CoordinateAxis' first Dimension, or null if none or scalar