Modifier and Type | Field and Description |
---|---|
static double |
SWATH_POLY_SIZE
Swath maximum polynomial size in kilometers.
|
dataProjection, info, rawMetadataMap, variables
Constructor and Description |
---|
CWHDFReader(CWHDFWriter writer)
Constructs a CWHDF reader from the specified writer.
|
CWHDFReader(java.lang.String file)
Constructs a CWHDF reader from the specified file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateNavigation()
Determines the ability of the file format to have its navigation
updated.
|
java.lang.String |
getDataFormat()
Gets the data format description.
|
protected EarthDataInfo |
getGlobalInfo()
Reads the earth data info metadata.
|
static double |
getMetaVersion(int sdid)
Gets the CoastWatch HDF metadata version.
|
protected boolean |
readAllMetadata()
Returns true so that the parent is instructed to read all global
and variable attributes.
|
void |
updateNavigation(java.util.List variableNames,
java.awt.geom.AffineTransform affine)
Updates the navigation transform for the specified list of
variables.
|
close, getAttribute, getAttribute, getAttributeAsArray, getAttributeAsArray, getAttributes, getAttributes, getChunkLengths, getClass, getFilename, getPreviewImpl, getSDID, getUnsigned, getVariable, getVariableDimensions, getVariableNames
finalize, getAllGrids, getAllVariables, getCoordinateSystems, getIndex, getInfo, getName, getPreview, getPreview, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariables, getVariablesForSystem, putStatistics, setDataProjection, setUnitsMap
public static final double SWATH_POLY_SIZE
public CWHDFReader(CWHDFWriter writer) throws hdf.hdflib.HDFException, java.io.IOException, java.awt.geom.NoninvertibleTransformException, java.lang.ClassNotFoundException
writer
- the writer to use for reading.hdf.hdflib.HDFException
- if an error occurred in an HDF routine.java.io.IOException
- if an error occurred reading the file metadata.java.awt.geom.NoninvertibleTransformException
- if the earth transform object
could not be initialized.java.lang.ClassNotFoundException
- if the HDF attribute type is unknown.public CWHDFReader(java.lang.String file) throws hdf.hdflib.HDFException, java.io.IOException, java.awt.geom.NoninvertibleTransformException, java.lang.ClassNotFoundException
file
- the file name to read.hdf.hdflib.HDFException
- if an error occurred in an HDF routine.java.io.IOException
- if an error occurred reading the file metadata.java.awt.geom.NoninvertibleTransformException
- if the earth transform object
could not be initialized.java.lang.ClassNotFoundException
- if the HDF attribute type is unknown.public java.lang.String getDataFormat()
getDataFormat
in class EarthDataReader
public static double getMetaVersion(int sdid)
sdid
- the HDF scientific dataset ID.protected boolean readAllMetadata()
readAllMetadata
in class HDFReader
protected EarthDataInfo getGlobalInfo() throws hdf.hdflib.HDFException, java.io.IOException, java.awt.geom.NoninvertibleTransformException, java.lang.ClassNotFoundException
HDFReader
getGlobalInfo
in class HDFReader
hdf.hdflib.HDFException
- if an error occurred in an HDF routine.java.io.IOException
- if an error occurred reading the file metadata.java.awt.geom.NoninvertibleTransformException
- if the earth transform object
could not be initialized.java.lang.ClassNotFoundException
- if the HDF attribute type is unknown.public boolean canUpdateNavigation()
EarthDataReader
EarthDataReader.updateNavigation(java.util.List, java.awt.geom.AffineTransform)
should
also override this method.canUpdateNavigation
in class EarthDataReader
EarthDataReader.updateNavigation(java.util.List, java.awt.geom.AffineTransform)
public void updateNavigation(java.util.List variableNames, java.awt.geom.AffineTransform affine) throws java.io.IOException
updateNavigation
in class EarthDataReader
variableNames
- the list of variable names to update.affine
- the navigation transform to apply. If null, the
navigation is reset to the identity.java.io.IOException
- if an error occurred writing the file metadata.EarthDataReader.canUpdateNavigation()