Package ucar.nc2.ft2.coverage
Class TimeHelper
- java.lang.Object
-
- ucar.nc2.ft2.coverage.TimeHelper
-
@Immutable public class TimeHelper extends Object
Helper class for Time coordinate axes- Since:
- 7/11/2015
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TimeHelper
factory(String units, AttributeContainer atts)
Calendar
getCalendar()
CalendarDateUnit
getCalendarDateUnit()
static Calendar
getCalendarFromAttribute(AttributeContainer atts)
List<NamedObject>
getCoordValueNames(CoverageCoordAxis1D axis)
Deprecated.will be moved in ver6CalendarDateRange
getDateRange(double startValue, double endValue)
double
getOffsetInTimeUnits(CalendarDate start, CalendarDate end)
CalendarDate
getRefDate()
String
getUdUnit()
CalendarDate
makeDate(double value)
CalendarDate
makeDateInTimeUnits(CalendarDate start, double addTo)
double
offsetFromRefDate(CalendarDate date)
TimeHelper
setReferenceDate(CalendarDate refDate)
-
-
-
Method Detail
-
factory
public static TimeHelper factory(String units, AttributeContainer atts)
-
setReferenceDate
public TimeHelper setReferenceDate(CalendarDate refDate)
-
getUdUnit
public String getUdUnit()
-
offsetFromRefDate
public double offsetFromRefDate(CalendarDate date)
-
getCoordValueNames
@Deprecated public List<NamedObject> getCoordValueNames(CoverageCoordAxis1D axis)
Deprecated.will be moved in ver6
-
getRefDate
public CalendarDate getRefDate()
-
makeDate
public CalendarDate makeDate(double value)
-
getDateRange
public CalendarDateRange getDateRange(double startValue, double endValue)
-
getOffsetInTimeUnits
public double getOffsetInTimeUnits(CalendarDate start, CalendarDate end)
-
makeDateInTimeUnits
public CalendarDate makeDateInTimeUnits(CalendarDate start, double addTo)
-
getCalendarFromAttribute
public static Calendar getCalendarFromAttribute(AttributeContainer atts)
-
getCalendar
public Calendar getCalendar()
-
getCalendarDateUnit
public CalendarDateUnit getCalendarDateUnit()
-
-