gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class DataProducts

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.output.hdf5.DataProducts

public class DataProducts
extends java.lang.Object

Creates the Data_Products (/Data_Products) area of the HDF data structure in the HDF/RDR file, once created this class has a factory method for creating specific RDRProduct instances.


Field Summary
private  int dataProductGroup
           
private  int hdfFile
           
 
Constructor Summary
DataProducts(int hdfFile)
          Create the /Data_Products area of the HDF/RDR file.
 
Method Summary
 void close()
          Close the HDF /Data_Products group handle
 RDRProduct createRDRProduct(RDRName rdrName, Sensor sensor, Collection collection, FixedDomainDescription processingDomain)
          Factory method for making RDRProduct instances once the /Data_Products area has been created.
 int getDataProductsHandle()
          Return the /Data_Products HDF handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hdfFile

private int hdfFile

dataProductGroup

private int dataProductGroup
Constructor Detail

DataProducts

public DataProducts(int hdfFile)
             throws RtStpsException
Create the /Data_Products area of the HDF/RDR file.

Parameters:
hdfFile - the input handle for the HDF file
Throws:
RtStpsException - wraps any HDF library exceptions
Method Detail

createRDRProduct

public RDRProduct createRDRProduct(RDRName rdrName,
                                   Sensor sensor,
                                   Collection collection,
                                   FixedDomainDescription processingDomain)
                            throws RtStpsException
Factory method for making RDRProduct instances once the /Data_Products area has been created. This then allows the creation of Sensor-XXX-RDR constructs: aggregates and granules.

Parameters:
rdrName - the RDR name
sensor - the sensor
collection - the collection
processingDomain - the processing domain (DRL)
Returns:
an RDRProduct instance
Throws:
RtStpsException - wraps any HDF library exceptions

getDataProductsHandle

public int getDataProductsHandle()
Return the /Data_Products HDF handle

Returns:
the handle as an int

close

public void close()
           throws RtStpsException
Close the HDF /Data_Products group handle

Throws:
RtStpsException - wraps any HDF library exceptions