Class NetCDFTimeUtilities


  • public class NetCDFTimeUtilities
    extends Object
    Author:
    User
    • Method Detail

      • checkDateDigits

        public static String checkDateDigits​(String origin)
        Parameters:
        origin -
      • getTimeSubUnitsValue

        public static int getTimeSubUnitsValue​(String units,
                                               Double vd)
      • getTimeUnits

        public static int getTimeUnits​(String units,
                                       Double vd)
        Converts NetCDF time units into opportune Calendar ones.
        Parameters:
        units - String
        Returns:
        int
      • trimFractionalPart

        public static String trimFractionalPart​(String value)
      • addTimeUnit

        public static void addTimeUnit​(Calendar cal,
                                       int unit,
                                       int val)
        Add a quantity of time units to a Calendar
        Parameters:
        cal - Calendar to add to
        unit - Calendar unit to add
        val - Quantity of unit to add
      • addTimeUnit

        public static void addTimeUnit​(Calendar cal,
                                       int unit,
                                       long val)
        Add a quantity of time units to a Calendar
        Parameters:
        cal - Calendar to add to
        unit - Calendar unit to add
        val - Quantity of TimeUnit to add