public interface AuxiliaryService
extends stream.service.Service
Created by kai on 31.03.15.
Modifier and Type | Method and Description |
---|---|
AuxPoint |
getAuxiliaryData(AuxiliaryServiceName serviceName,
ZonedDateTime eventTimeStamp,
AuxPointStrategy strategy)
An AuxiliaryService needs to implement just one method.
|
static Optional<ZonedDateTime> |
unixTimeUTCToDateTime(stream.Data item)
Takes the int[2] array found in the FITs files under the name UnixTimeUTC from the Data Item and converts it to a DateTime
instance with time zone UTC.
|
static Optional<ZonedDateTime> |
unixTimeUTCToDateTime(int[] eventTime)
Takes the int[2] array found in the FITs files under the name UnixTimeUTC and converts it to a DateTime
instance with time zone UTC.
|
AuxPoint getAuxiliaryData(AuxiliaryServiceName serviceName, ZonedDateTime eventTimeStamp, AuxPointStrategy strategy) throws IOException
serviceName
- the name of the aux data to access. This is written in the filename 20130112.eventTimeStamp
- the DateTime of the event you need the aux data for.strategy
- one of the strategies implemented for fetcvhing aux pointsIOException
- in case something goes wrong while trying to access the aux data. Be it a file or a database.static Optional<ZonedDateTime> unixTimeUTCToDateTime(int[] eventTime)
eventTime
- the UnixTimeUTC array as found in the FITS file.static Optional<ZonedDateTime> unixTimeUTCToDateTime(stream.Data item)
item
- A data item from the stream of raw FACT dataCopyright © 2019. All rights reserved.