Package ucar.nc2.ft.point.standard.plug
Class UnidataPointDatasetHelper
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description UnidataPointDatasetHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 dimensionstatic CalendarDate
getEndDate(NetcdfDataset ds, CalendarDateUnit timeUnit)
static CalendarDate
getStartDate(NetcdfDataset ds, CalendarDateUnit timeUnit)
-
-
-
Method Detail
-
getStartDate
public static CalendarDate getStartDate(NetcdfDataset ds, CalendarDateUnit timeUnit)
-
getEndDate
public static CalendarDate getEndDate(NetcdfDataset ds, CalendarDateUnit 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
- search in this dataseta
- 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
- search in this dataseta
- AxisType.LAT, LON, HEIGHT, or TIMEdim
- 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
- search in this dataseta
- 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)
-
-