ucar.nc2.ft.point.standard
Class CoordSysEvaluator

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

public class CoordSysEvaluator
extends Object

CoordinateSystem Evaluation utilities.

Since:
Dec 16, 2008
Author:
caron

Nested Class Summary
static interface CoordSysEvaluator.Predicate
           
 
Constructor Summary
CoordSysEvaluator()
           
 
Method Summary
static CoordinateAxis findCoordByType(NetcdfDataset ds, AxisType atype)
          Look for Axis by Type.
static CoordinateAxis findCoordByType(NetcdfDataset ds, AxisType atype, CoordSysEvaluator.Predicate p)
          Look for Axis by Type and test against a predicate
static String findCoordNameByType(NetcdfDataset ds, AxisType atype)
          Look for Axis by Type.
static void findCoords(TableConfig nt, List<CoordinateAxis> axes)
           
static void findCoords(TableConfig nt, NetcdfDataset ds)
          Look for Axis by Type, assign to TableConfig if found.
static String findCoordShortNameByType(NetcdfDataset ds, AxisType atype)
           
static void findCoordWithDimension(TableConfig nt, NetcdfDataset ds, Dimension outer)
           
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. If no CoordSystem, try list of coordinate axes

findCoords

public static void findCoords(TableConfig nt,
                              List<CoordinateAxis> axes)

findCoordWithDimension

public static void findCoordWithDimension(TableConfig nt,
                                          NetcdfDataset ds,
                                          Dimension outer)

findCoordNameByType

public static 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

findCoordShortNameByType

public static String findCoordShortNameByType(NetcdfDataset ds,
                                              AxisType atype)

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

findCoordByType

public static CoordinateAxis findCoordByType(NetcdfDataset ds,
                                             AxisType atype,
                                             CoordSysEvaluator.Predicate p)
Look for Axis by Type and test against a predicate

Parameters:
ds - look in this dataset's "Best" coordinate system.
atype - look for this type of CoordinateAxis.
p - match this predicate
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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.