Class NetCDFTimeUtilities
- Object
-
- NetCDFTimeUtilities
-
public class NetCDFTimeUtilities extends Object
- Author:
- User
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addTimeUnit(Calendar cal, int unit, int val)
Add a quantity of time units to a Calendarstatic void
addTimeUnit(Calendar cal, int unit, long val)
Add a quantity of time units to a Calendarstatic String
checkDateDigits(String origin)
static GregorianCalendar
fromJulian(double injulian)
static int
getTimeSubUnitsValue(String units, Double vd)
static int
getTimeUnits(String units, Double vd)
Converts NetCDF time units into opportune Calendar ones.static String
trimFractionalPart(String value)
-
-
-
Field Detail
-
JGREG
public static final int JGREG
- See Also:
- Constant Field Values
-
UTC_TIMEZONE
public static final TimeZone UTC_TIMEZONE
-
-
Method Detail
-
fromJulian
public static GregorianCalendar fromJulian(double injulian)
-
getTimeUnits
public static int getTimeUnits(String units, Double vd)
Converts NetCDF time units into opportune Calendar ones.- Parameters:
units
-String
- Returns:
- int
-
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 tounit
- Calendar unit to addval
- 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 tounit
- Calendar unit to addval
- Quantity of TimeUnit to add
-
-