|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.GranuleId
public class GranuleId
A Granule identifier is a way of calculating a unique identifier for the IDPS system. It is specified as part of RDR attributes for granules in the specifications. This implements the formula. One item the firstAscendingNodeAfterLaunch is currenlty not known.
Field Summary | |
---|---|
static PDSDate |
firstAscendingNodeAfterLaunch
|
private java.lang.String |
name
|
Constructor Summary | |
---|---|
GranuleId(SpacecraftId spacecraftId,
long pktObservationTime,
long firstAscendingNodeAfterLaunch,
long granuleSizeInTime)
Build a granule ID from various inputs, most importantly the times are in 64-bit quantities |
|
GranuleId(SpacecraftId spacecraftId,
PDSDate pktObservationTime,
PDSDate firstAscendingNodeAfterLaunch,
long granuleSizeInTime)
Build a granuleId from various inputs |
|
GranuleId(java.lang.String granuleIdStr)
Use only for the case of reading the ID from the attributes in an HDF file |
Method Summary | |
---|---|
private long |
granuleIDValue(long pktObservationTime,
long firstAscendingNodeAfterLaunch,
long granuleSizeInTime)
This implements the formula, taking from the JPSS documentation |
private long |
granuleIDValue(PDSDate pktObservationTime,
PDSDate firstAscendingNodeAfterLaunch,
long granuleSizeInTime)
This implements the formula, taking from the JPSS documentation but uses PDSDate as inputs |
java.lang.String |
toString()
Return the GranuleId in a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
public static PDSDate firstAscendingNodeAfterLaunch
Constructor Detail |
---|
public GranuleId(java.lang.String granuleIdStr)
granuleIdStr
- public GranuleId(SpacecraftId spacecraftId, PDSDate pktObservationTime, PDSDate firstAscendingNodeAfterLaunch, long granuleSizeInTime)
spacecraftId
- the spacecraft identifierpktObservationTime
- the observation time of the packetfirstAscendingNodeAfterLaunch
- the first ascending now after launch (currently not known)granuleSizeInTime
- the granule size in time, this would be time span from first and last packets in the granule in microsecondspublic GranuleId(SpacecraftId spacecraftId, long pktObservationTime, long firstAscendingNodeAfterLaunch, long granuleSizeInTime)
spacecraftId
- the spacecraft identifierpktObservationTime
- the packet observation time in microsecondsfirstAscendingNodeAfterLaunch
- the first ascending node after launch (currently unknown)granuleSizeInTime
- the granule size in time (microseconds)Method Detail |
---|
private long granuleIDValue(long pktObservationTime, long firstAscendingNodeAfterLaunch, long granuleSizeInTime)
pktObservationTime
- the packet observation time in microsecondsfirstAscendingNodeAfterLaunch
- the first ascending node after launch (currently unknown)granuleSizeInTime
- the first ascending node after launch (currently unknown)
long
private long granuleIDValue(PDSDate pktObservationTime, PDSDate firstAscendingNodeAfterLaunch, long granuleSizeInTime)
PDSDate
as inputs
pktObservationTime
- the packet observation time as a PDSDate
firstAscendingNodeAfterLaunch
- the first ascending node after launch (currently unknown) as a PDSDate
granuleSizeInTime
- the first ascending node after launch (currently unknown)
long
public java.lang.String toString()
String
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |