Enum DateTime
- All Implemented Interfaces:
Serializable, Comparable<DateTime>, java.lang.constant.Constable, IFitsHeader
Date-time related keywords defined by the FITS standard.
- Since:
- 1.19
- Author:
- Attila Kovacs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface IFitsHeader
IFitsHeader.HDU, IFitsHeader.SOURCE, IFitsHeader.VALUEModifier and TypeInterfaceDescriptionstatic enumAn enumeration of HDU types in which a header keyword may be used.static enumDocumentation sources for the various known conventions.static enumValues types to which implementing keywords can be restricted to. -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription[yr] Besselian epoch of observationThe date on which the HDU was created, in the format specified in the FITS Standard.The average date of the observation, in the format specified in the FITS Standard.The start date of the observation, in the format specified in the FITS Standard.The end date of the observation, in the format specified in the FITS Standard.The date of the observation, in the format specified in the FITS Standard.The reference date of the observation, in the format specified in the FITS Standard.Avearge date of the observation for the given column index, in the format specified in the FITS Standard.The date of the observation for the given column index, in the format specified in the FITS Standard.[day] Reference Julian Date[yr] Julian epoch of observation[day] Average Modified Julian Date of observation[day] Modified Julian Date of the start of observation[day] Average Modified Julian Date of the end of observation[day] Modified Julian Date of observation[day] Average Modified Julian Date of observation for the given column index[day] Modified Julian Date of observation for the given column index[day] Reference Modified Julian DateSolar system ephemeris used, e.g.Wall clock exposure duration (in specified time units, or else seconds)Time resolution (in specified time units, or else seconds)Precision time offset (in specified time units, or else seconds)Time location within pixel, between 0.0 and 1.0 (default 0.5).Random time error (in specified time units, or else seconds)Systematic time error (in specified time units, or else seconds)Time reference system nameTime unit nameTime reference direction for given column index, e.g.Pointer to time reference directionTime reference locationTime reference location for given column index.The start time of the observation, in the format specified in the FITS Standard, as decimal or in the format HH:MM:SS[.s...]'.The end time of the observation, in the format specified in the FITS Standard, as decimal or in the format HH:MM:SS[.s...]'.Net exposure duration (in specified time units, or else seconds) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSolar System ephemeris value forPLEPHEMfor Standish (1990).static final StringSolar System ephemeris value forPLEPHEMfor Standish (1998).static final StringSolar System ephemeris value forPLEPHEMfor Folkner, et al. (2009).static final StringSolar System ephemeris value forPLEPHEMfor Folkner, et al. (2014).static final StringSolar System ephemeris value forPLEPHEMfor Folkner, et al. (2014).static final StringSolar System ephemeris value forPLEPHEMfor Folkner, et al. (2014).static final StringSolar System ephemeris value forPLEPHEMfor Park, et al. (2021).static final StringSolar System ephemeris value forPLEPHEMfor Park, et al. (2021).static final StringEphemeris Time (ET) timescale value.static final StringDeprecated.static final StringGlobal Positioning System (GPS) time timescale value.static final StringDeprecated.Deprecated by the FITS standard, useTIMESYS_TAIinstead.static final StringLocal time timescale value for free-running clocks.static final StringInternational Atomic Time (TAI) timescale value.static final StringBarycentric Coordinated Time (TCB) timescale value.static final StringGeocentric Coordinated Time (TCG) timescale value.static final StringBarycentric Dynamical Time (TDB) timescale value.static final StringTerrestrial Dynamical Time (TDT) timescale value.static final StringTerrestrial Time (TT) timescale value.static final StringEarth rotation time (UT1) timescale value.static final StringUniversal Coordinated Time (UTC) timescale value.static final StringTime unit value for time measured in Besselian years (essentially the same asTIMEUNIT_TROPICAL_YEAR)static final StringTime unit value for time measured in daysstatic final StringTime unit value for time measured in hoursstatic final StringTime unit value for time measured in seconds (1 cy = 36525 d)static final StringTime unit value for time measured in Julian years (1 a = 365.25 d)static final StringTime unit value for time measured in minutesstatic final StringTime unit value for time measured in secondsstatic final StringTime unit value for time measured in tropical years (1 ta ~ 365.2421988 d)static final StringTime unit value for time measured in Julian years (same asTIMEUNIT_JULIAN_YEAR)static final StringBarycentric (Solar-system) time reference positionstatic final StringTopocentric time reference position that is not the observatory locationstatic final StringEarth-Moon barycenter time reference positionstatic final StringGalactocentric time reference positionstatic final StringGeocentric time reference positionstatic final StringHelioentric time reference positionstatic final StringTime reference position at the center of Jupiterstatic final StringTime reference position at the center of Marsstatic final StringTime reference position at the center of Mercurystatic final StringTime reference position at the center of Neptunestatic final StringRelocatable time reference position (for simulations only)static final StringTime reference position at the center of Saturnstatic final StringTopocentric time reference positionstatic final StringTime reference position at the center of Uranusstatic final StringTime reference position at the center of VenusFields inherited from interface IFitsHeader
MAX_INDEXModifier and TypeFieldDescriptionstatic final intMax numeric index we may use to replace n in the Java name of indexed variables. -
Method Summary
Modifier and TypeMethodDescriptionfinal FitsKeyimpl()(primarily for internal use) Returns the concrete implementation of this header entry, which provides implementation of access methods.static DateTimeReturns the enum constant of this type with the specified name.static DateTime[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface IFitsHeader
comment, extractIndices, hdu, key, n, status, valueTypeModifier and TypeMethodDescriptiondefault Stringcomment()Returns the comment associated to this FITS header entry.default int[]extractIndices(String key) Extracts the indices for this stndardized key from an actual keyword realization.default IFitsHeader.HDUhdu()Returns the type of HDU(s) in which this header entry may be used.default Stringkey()Returns the FITS header keyword (or keyword template) for this header entry.default IFitsHeadern(int... numbers) Constructs an indexed FITS header keyword entry from this stem, replacing index place-holders (indicated by lower-case 'n' in the name) with actual numerical values.default IFitsHeader.SOURCEstatus()Returns the standard convention, which defines this FITS header entrydefault IFitsHeader.VALUEThe type(s) of value(s) this FITS header entry might take.
-
Enum Constant Details
-
DATE
The date on which the HDU was created, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. the new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DATE_OBS
The date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DOBSn
The date of the observation for the given column index, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DATE_AVG
The average date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DAVGn
Avearge date of the observation for the given column index, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DATE_BEG
The start date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DATE_END
The end date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
DATEREF
The reference date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.- Since:
- 1.19
-
MJD_OBS
-
MJDOBn
[day] Modified Julian Date of observation for the given column index- Since:
- 1.19
-
MJD_AVG
-
MJDAn
[day] Average Modified Julian Date of observation for the given column index- Since:
- 1.19
-
MJD_BEG
[day] Modified Julian Date of the start of observation- Since:
- 1.19
-
MJD_END
[day] Average Modified Julian Date of the end of observation- Since:
- 1.19
-
MJDREF
-
JDREF
-
TSTART
The start time of the observation, in the format specified in the FITS Standard, as decimal or in the format HH:MM:SS[.s...]'.- Since:
- 1.19
-
TSTOP
The end time of the observation, in the format specified in the FITS Standard, as decimal or in the format HH:MM:SS[.s...]'.- Since:
- 1.19
-
BEPOCH
-
JEPOCH
-
XPOSURE
Net exposure duration (in specified time units, or else seconds)- Since:
- 1.19
-
TELAPSE
Wall clock exposure duration (in specified time units, or else seconds)- Since:
- 1.19
-
TIMESYS
-
TREFPOS
-
TRPOSn
-
TREFDIR
-
TRDIRn
Time reference direction for given column index, e.g. 'TOPOCENT'- Since:
- 1.19
-
PLEPHEM
-
TIMEUNIT
-
TIMEOFFS
Precision time offset (in specified time units, or else seconds)- Since:
- 1.19
-
TIMESYER
Systematic time error (in specified time units, or else seconds)- Since:
- 1.19
-
TIMERDER
Random time error (in specified time units, or else seconds)- Since:
- 1.19
-
TIMEDEL
Time resolution (in specified time units, or else seconds)- Since:
- 1.19
-
TIMEPIXR
Time location within pixel, between 0.0 and 1.0 (default 0.5).- Since:
- 1.19
-
-
Field Details
-
TIMESYS_TAI
-
TIMESYS_TT
-
TIMESYS_TDT
-
TIMESYS_ET
-
TIMESYS_IAT
Deprecated.Deprecated by the FITS standard, useTIMESYS_TAIinstead.- See Also:
-
TIMESYS_UT1
-
TIMESYS_UTC
-
TIMESYS_GMT
Deprecated.Greenwich Mean time (GMT) timescale value; deprecated by the FITS standard, useTIMESYS_UTCinstead.- See Also:
-
TIMESYS_GPS
Global Positioning System (GPS) time timescale value.- See Also:
-
TIMESYS_TCG
-
TIMESYS_TCB
Barycentric Coordinated Time (TCB) timescale value.- See Also:
-
TIMESYS_TDB
-
TIMESYS_LOCAL
Local time timescale value for free-running clocks.- See Also:
-
TREFPOS_TOPOCENTER
-
TREFPOS_GEOCENTER
-
TREFPOS_BARYCENTER
Barycentric (Solar-system) time reference position- See Also:
-
TREFPOS_RELOCATABLE
Relocatable time reference position (for simulations only)- See Also:
-
TREFPOS_CUSTOM
Topocentric time reference position that is not the observatory location- See Also:
-
TREFPOS_HELIOCENTER
-
TREFPOS_GALACTIC
-
TREFPOS_EMBARYCENTER
Earth-Moon barycenter time reference position- See Also:
-
TREFPOS_MERCURY
Time reference position at the center of Mercury- See Also:
-
TREFPOS_VENUS
-
TREFPOS_MARS
-
TREFPOS_JUPITER
Time reference position at the center of Jupiter- See Also:
-
TREFPOS_SATURN
-
TREFPOS_URANUS
-
TREFPOS_NEPTUNE
Time reference position at the center of Neptune- See Also:
-
PLEPHEM_DE200
-
PLEPHEM_DE405
-
PLEPHEM_DE421
-
PLEPHEM_DE430
-
PLEPHEM_DE431
-
PLEPHEM_DE432
-
PLEPHEM_DE440
-
PLEPHEM_DE441
-
TIMEUNIT_SECOND
-
TIMEUNIT_DAY
-
TIMEUNIT_JULIAN_YEAR
Time unit value for time measured in Julian years (1 a = 365.25 d)- See Also:
-
TIMEUNIT_JULIAN_CENTURY
Time unit value for time measured in seconds (1 cy = 36525 d)- See Also:
-
TIMEUNIT_MINUTE
-
TIMEUNIT_HOUR
-
TIMEUNIT_YEAR
Time unit value for time measured in Julian years (same asTIMEUNIT_JULIAN_YEAR)- See Also:
-
TIMEUNIT_TROPICAL_YEAR
Time unit value for time measured in tropical years (1 ta ~ 365.2421988 d)- See Also:
-
TIMEUNIT_BESSELIAN_YEAR
Time unit value for time measured in Besselian years (essentially the same asTIMEUNIT_TROPICAL_YEAR)- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
impl
Description copied from interface:IFitsHeader(primarily for internal use) Returns the concrete implementation of this header entry, which provides implementation of access methods.- Specified by:
implin interfaceIFitsHeader- Returns:
- the implementation of this keyword, which provides the actual access methods. Implementations of this interface should simply return themselves.
-
TIMESYS_UTCinstead.