|
|||||||||
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.RawApplicationPackets
gov.nasa.gsfc.drl.rtstps.core.output.hdf5.ATMSRawApplicationPackets2
public class ATMSRawApplicationPackets2
Build the RawApplicationPackets (or read a pre-existing one) for the HDF for ATMS. Due to problems with the ATMS packets in the test data sets, this just collect X seconds worth at a time...
Field Summary | |
---|---|
private static long |
GranuleSizeInSeconds
|
private long |
localCurrentTime
|
private long |
localFirstTime
|
private Stats |
stats
|
private long |
timeSpanInSeconds
|
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
---|
packetPool |
Constructor Summary | |
---|---|
ATMSRawApplicationPackets2(int allRDRId,
int setNum)
Constructor which attempts to read the RawApplicationPacket entry that pre-exists. |
|
ATMSRawApplicationPackets2(int readId,
int setNum,
boolean usedByGranuleOnly)
|
|
ATMSRawApplicationPackets2(SpacecraftId satellite,
int setNum,
int scansPerGranule,
PacketPool packetPool)
Constructor for creating an nth instance of a ATMS raw application data packet area builder. |
|
ATMSRawApplicationPackets2(Stats stats,
SpacecraftId satellite,
int setNum,
int scansPerGranule,
PacketPool packetPool)
|
Method Summary | |
---|---|
private void |
calcTimeSpanInSeconds(Packet p)
|
void |
close()
Close out the RawApplicationPacket which writes the results to the HDF file and cleans up. |
boolean |
notFull(Packet p)
Determine if the RawApplicationPacket is full or not. |
void |
put(Packet p)
Put a packet into the RawApplicationPacket after checking if it is full or not. |
boolean |
write(int hdfFile)
Write the ATMSRawApplication structure to the given HDF file specified by the HDF input handle |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
---|
getAppIdCounts, getData, getDataSet, getDataSpace, getFirstTime, getLastTime, getPacketList, getPacketTypeCounts, getPacketTypes, getStaticHeader, getTimeSpan, getTotalPacketCounts, setFirstTime, setLastTime, updateAppIdCounters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long GranuleSizeInSeconds
private long timeSpanInSeconds
private long localFirstTime
private long localCurrentTime
private Stats stats
Constructor Detail |
---|
public ATMSRawApplicationPackets2(SpacecraftId satellite, int setNum, int scansPerGranule, PacketPool packetPool)
satellite
- the name of the spacecraft as a SpacecraftIdsetNum
- the set numberscansPerGranule
- the number of sensor scans per granulepublic ATMSRawApplicationPackets2(Stats stats, SpacecraftId satellite, int setNum, int scansPerGranule, PacketPool packetPool)
public ATMSRawApplicationPackets2(int allRDRId, int setNum) throws RtStpsException
allRDRId
- the rdrAll Groups idsetNum
- the set number of raw entry
RtStpsException
- Wraps any HDF exceptionpublic ATMSRawApplicationPackets2(int readId, int setNum, boolean usedByGranuleOnly) throws RtStpsException
RtStpsException
Method Detail |
---|
public boolean notFull(Packet p) throws RtStpsException
RawApplicationPackets
notFull
in class RawApplicationPackets
p
- the packet to be added to the RawApplicationPacket
RtStpsException
private void calcTimeSpanInSeconds(Packet p)
public void put(Packet p) throws RtStpsException
RawApplicationPackets
put
in class RawApplicationPackets
p
- packet to be written
RtStpsException
public boolean write(int hdfFile) throws RtStpsException
write
in class RawApplicationPackets
hdfFile
- input handle to a previous opened HDF file
RtStpsException
- Wraps HDF exceptionspublic void close() throws RtStpsException
close
in class RawApplicationPackets
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |