Class CFSimpleGeometryHelper


  • public class CFSimpleGeometryHelper
    extends Object
    Helpers for various simple geometry tasks relating to the CF standard.
    • Constructor Detail

      • CFSimpleGeometryHelper

        public CFSimpleGeometryHelper()
    • 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 subset
        beginInd - 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 subset
        id - The SimpleGeometryID to index
        Returns:
        subset string