ucar.nc2.ft.point.standard.plug
Class UnidataPointDatasetHelper

java.lang.Object
  extended by ucar.nc2.ft.point.standard.plug.UnidataPointDatasetHelper

public class UnidataPointDatasetHelper
extends Object

Helper routines for point feature datasets using Unidata Conventions.

Since:
Feb 29, 2008
Author:
caron

Constructor Summary
UnidataPointDatasetHelper()
           
 
Method Summary
static Dimension findDimension(NetcdfFile ds, String name)
           
static Dimension findObsDimension(NetcdfFile ds)
           
static Variable findVariable(NetcdfFile ds, String name)
           
static String findVariableName(NetcdfFile ds, String name)
           
static LatLonRect getBoundingBox(NetcdfDataset ds)
           
static Variable getCoordinate(NetcdfDataset ds, AxisType a)
          Tries to find the coordinate variable of the specified type.
static String getCoordinateName(NetcdfDataset ds, AxisType a)
          Tries to find the coordinate variable of the specified type.
static String getCoordinateName(NetcdfDataset ds, AxisType a, Dimension dim)
          Tries to find the coordinate variable of the specified type, which has the specified dimension as its firsst dimension
static Date getEndDate(NetcdfDataset ds, DateUnit timeUnit)
           
static Date getStartDate(NetcdfDataset ds, DateUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnidataPointDatasetHelper

public UnidataPointDatasetHelper()
Method Detail

getStartDate

public static Date getStartDate(NetcdfDataset ds,
                                DateUnit timeUnit)

getEndDate

public static Date getEndDate(NetcdfDataset ds,
                              DateUnit timeUnit)

getBoundingBox

public static LatLonRect getBoundingBox(NetcdfDataset ds)

getCoordinateName

public static String getCoordinateName(NetcdfDataset ds,
                                       AxisType a)
Tries to find the coordinate variable of the specified type.

Parameters:
ds - look in this dataset
a - AxisType.LAT, LON, HEIGHT, or TIME
Returns:
coordinate variable, or null if not found.

getCoordinateName

public static String getCoordinateName(NetcdfDataset ds,
                                       AxisType a,
                                       Dimension dim)
Tries to find the coordinate variable of the specified type, which has the specified dimension as its firsst dimension

Parameters:
ds - look in this dataset
a - AxisType.LAT, LON, HEIGHT, or TIME
dim - must use this dimension
Returns:
coordinate variable, or null if not found.

getCoordinate

public static Variable getCoordinate(NetcdfDataset ds,
                                     AxisType a)
Tries to find the coordinate variable of the specified type.

Parameters:
ds - look in this dataset
a - AxisType.LAT, LON, HEIGHT, or TIME
Returns:
coordinate variable, or null if not found.

findVariableName

public static String findVariableName(NetcdfFile ds,
                                      String name)

findVariable

public static Variable findVariable(NetcdfFile ds,
                                    String name)

findDimension

public static Dimension findDimension(NetcdfFile ds,
                                      String name)

findObsDimension

public static Dimension findObsDimension(NetcdfFile ds)


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