Package ucar.nc2.ft2.simpgeometry
Class CFSimpleGeometryHelper
- java.lang.Object
-
- ucar.nc2.ft2.simpgeometry.CFSimpleGeometryHelper
-
public class CFSimpleGeometryHelper extends Object
Helpers for various simple geometry tasks relating to the CF standard.
-
-
Constructor Summary
Constructors Constructor Description CFSimpleGeometryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getSubsetString(Variable var, int id)
Gets the subset string to be used in NetCDFFile.read given a variable and an ID.static String
getSubsetString(Variable var, int beginInd, int endInd, int id)
Gets the subset string to be used in NetCDFFile.read given a variable and some indicies.
-
-
-
Method Detail
-
getSubsetString
public static String getSubsetString(Variable var, int beginInd, int endInd, int id)
Gets the subset string to be used in NetCDFFile.read given a variable and some indicies. useful for subsetting timeseries- Parameters:
var
- variable to subsetbeginInd
- beginning index (inclusive)endInd
- end index (exclusive)id
- The SimpleGeometryID to index- Returns:
- subset string
-
getSubsetString
public static String getSubsetString(Variable var, int id)
Gets the subset string to be used in NetCDFFile.read given a variable and an ID. useful for subsetting timeseries. This version will take the whole timeseries. If a time dimension is not present, however, it will default to id first and then subsetter second.- Parameters:
var
- variable to subsetid
- The SimpleGeometryID to index- Returns:
- subset string
-
-