public class CWNCReader extends NCReader
CWNCReader
class reads Java NetCDF accessible
datasets and uses the CoastWatch HDF metadata conventions to parse
the attribute and variable data.dataProjection, info, rawMetadataMap, variables
Constructor and Description |
---|
CWNCReader(java.lang.String name)
Creates a new reader from the specified file.
|
Modifier and Type | Method and Description |
---|---|
protected DataVariable |
getActualVariable(int index)
Gets the actual variable with data.
|
java.lang.String |
getDataFormat()
Gets the data format description.
|
double |
getMetaVersion()
Gets the CoastWatch HDF metadata version for this dataset.
|
protected DataVariable |
getPreviewImpl(int index)
Implementation for the subclass.
|
protected void |
initializeReader()
Performs reader initialization after the dataset has been opened.
|
close, getAttribute, getAttribute, getAttribute, getAttributeAsArray, getAttributeAsArray, getAttributeAsArray, getCoordinateSystems, getDataset, getFilename, getGridSubset, getVariable, getVariablesForSystem, isNetwork
canUpdateNavigation, finalize, getAllGrids, getAllVariables, getIndex, getInfo, getName, getPreview, getPreview, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariables, putStatistics, setDataProjection, setUnitsMap, updateNavigation
public CWNCReader(java.lang.String name) throws java.io.IOException
name
- the file name or URL to read.java.io.IOException
- if an error occurred reading the metadata.public java.lang.String getDataFormat()
getDataFormat
in class EarthDataReader
public double getMetaVersion()
protected void initializeReader() throws java.io.IOException
NCReader
initializeReader
in class NCReader
java.io.IOException
- if an error occurred on initialization.protected DataVariable getPreviewImpl(int index) throws java.io.IOException
EarthDataReader
getPreviewImpl
in class EarthDataReader
java.io.IOException
EarthDataReader.getPreview(int)
protected DataVariable getActualVariable(int index) throws java.io.IOException
NCReader
NCReader.getVariable(int)
for the
required behaviour.getActualVariable
in class NCReader
java.io.IOException