|
|||||||||
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.RDRCreateFile
public class RDRCreateFile
Create an HDF file with basics of the RDR structure. Provide some methods to further build out the RDR.
Field Summary | |
---|---|
private AllData |
allData
|
private DataProducts |
dataProducts
|
private PDSDate |
firstDateTime
|
private int |
hdfFile
|
private PDSDate |
lastDateTime
|
private int |
propertyId
|
private java.util.HashMap<RDRName,RDR> |
rdrs
|
private SpacecraftDiaryRDR2 |
spacecraftDiaryRDR2
|
private Stats |
stats
|
static boolean |
timeBaseCalculation
|
private static int |
xmlSize
|
Constructor Summary | |
---|---|
RDRCreateFile(Stats stats,
java.lang.String destPath,
java.lang.String filename,
int rdrCount)
|
|
RDRCreateFile(java.lang.String destPath,
java.lang.String filename,
int rdrCount)
Open the specified file, wipe out a file of the same name if it exists A user block space is created based on the rdrCount given. |
Method Summary | |
---|---|
void |
close()
Close the HDF file completely, including any open RDRs, AllData and DataProducts |
AllData |
getAllData()
Return the AllData object which is created through this class |
DataProducts |
getDataProducts()
Return the DataProducts object which is created through this class |
PDSDate |
getFirstDateTime()
Get the first time of the first packet with a time stamp given to this class |
PDSDate |
getLastDataTime()
Get the last time of the last packet with a time stamp given to this class |
private RDR |
getRDR(RDRName anRdrName)
Get the RDR from the pool of created RDRs, or create a new one if its new |
java.util.List<RDR> |
getRDRs()
Return a list of the RDRs created by this class |
void |
put(Packet p)
Put a packet into this RDR file |
void |
writeAttributes(java.util.Date creationDateAndTime,
Origin distributor,
MissionName missionName,
Origin datasetSource,
PlatformShortName platformShortname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int hdfFile
private int propertyId
private static final int xmlSize
private AllData allData
private DataProducts dataProducts
private PDSDate firstDateTime
private PDSDate lastDateTime
private SpacecraftDiaryRDR2 spacecraftDiaryRDR2
private java.util.HashMap<RDRName,RDR> rdrs
public static boolean timeBaseCalculation
private Stats stats
Constructor Detail |
---|
public RDRCreateFile(java.lang.String destPath, java.lang.String filename, int rdrCount) throws RtStpsException
destPath
- the path of interestfilename
- the file name of interestrdrCount
- the number of RDRs that will go in this file, used to create the space for the user block
RtStpsException
- wraps any HDF exceptionspublic RDRCreateFile(Stats stats, java.lang.String destPath, java.lang.String filename, int rdrCount) throws RtStpsException
RtStpsException
Method Detail |
---|
private RDR getRDR(RDRName anRdrName) throws RtStpsException
anRdrName
- an RDR name as an RDRName
RDR
RtStpsException
- wraps an any HDF filespublic AllData getAllData()
AllData
object which is created through this class
public DataProducts getDataProducts()
DataProducts
object which is created through this class
public void close() throws RtStpsException
RtStpsException
public java.util.List<RDR> getRDRs()
List
of RDR
spublic PDSDate getFirstDateTime()
PDSDate
from that packetpublic PDSDate getLastDataTime()
PDSDate
from that packetpublic void put(Packet p) throws RtStpsException
p
- a Packet
RtStpsException
- wraps any HDF exceptionpublic void writeAttributes(java.util.Date creationDateAndTime, Origin distributor, MissionName missionName, Origin datasetSource, PlatformShortName platformShortname) throws RtStpsException
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |