public class HDFGSHHSLineReader extends BinnedGSHHSLineReader
HDFGSHHSLineReader
extends
BinnedGSHHSLineReader
to read data from an HDF binned
data file.BinnedGSHHSLineReader.Bin
binSize, database, dxID, dyID, firstSegment, latBins, lonBins, multiplier, numSegments, sdID, segmentLevelID, segmentPointsID, segmentStart, totalBins, totalPoints, totalSegments
area, featureList
Constructor and Description |
---|
HDFGSHHSLineReader(java.lang.String name)
Creates a new binned GSHHS reader from the database file name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected void |
getGlobalData()
Reads data about the entire file, including binSize,
multiplier, lonBins, latBins, totalBins, firstSegment,
numSegments, and segmentStart.
|
protected int |
openFile(java.lang.String name)
Opens the data file and returns the file ID.
|
protected void |
readData(int sdsid,
int[] start,
int[] count,
java.lang.Object data)
Reads data for the specified variable ID.
|
protected void |
readData(java.lang.String var,
int[] start,
int[] count,
java.lang.Object data)
Reads data for the specified variable name.
|
protected int |
selectData(java.lang.String var)
Gets the variable ID for the specified variable.
|
getBinIndex, getBinIndices, getBins, getDatabase, init, iterator, select, setBinHint, setBinListHint, setLevelRange
render
getArea, getAttributeCount, getAttributeNameMap, getAttributes, getFilter, select, setAttributes, setFilter
public HDFGSHHSLineReader(java.lang.String name) throws java.io.IOException
name
- the database name. Several predefined database
names are available from BinnedGSHHSReaderFactory.getDatabaseName(int, int)
.java.io.IOException
- if an error occurred reading the file.protected void readData(int sdsid, int[] start, int[] count, java.lang.Object data) throws java.io.IOException
BinnedGSHHSLineReader
readData
in class BinnedGSHHSLineReader
sdsid
- the identifier for the variable.start
- the starting data index for reading.count
- the number of data values to read.data
- the data array to fill with values.java.io.IOException
- if an error occurred reading the data.protected void readData(java.lang.String var, int[] start, int[] count, java.lang.Object data) throws java.io.IOException
BinnedGSHHSLineReader
readData
in class BinnedGSHHSLineReader
var
- the name of the variable.start
- the starting data index for reading.count
- the number of data values to read.data
- the data array to fill with values.java.io.IOException
- if an error occurred reading the data.protected int selectData(java.lang.String var) throws java.io.IOException
BinnedGSHHSLineReader
selectData
in class BinnedGSHHSLineReader
var
- the variable name to retrieve an ID.java.io.IOException
- if an error occurred retrieving the ID.protected int openFile(java.lang.String name) throws java.io.IOException
BinnedGSHHSLineReader
openFile
in class BinnedGSHHSLineReader
name
- the data file name.java.io.IOException
- if an error occurred opening the file.protected void getGlobalData() throws java.io.IOException
BinnedGSHHSLineReader
getGlobalData
in class BinnedGSHHSLineReader
java.io.IOException
- if an error occurred reading the data.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable