Package hec.heclib.grid
Class SpecifiedGridInfo
java.lang.Object
hec.heclib.grid.GridInfo
hec.heclib.grid.SpecifiedGridInfo
- All Implemented Interfaces:
Serializable
The SpecifiedGridInfo class inherits from GridInfo, extending the grid metadata to support
any coordinate system, and adding new metadata fields that HEC has determined would
be useful since the original GridInfo was defined in 1994.
The new data fields are:
_srsName (String) The name of the spatial reference system (SRS) for the grid.
_srsDefinition (String) A complete spatial reference identifier in a text
of arbitrary length. For present use, we are populating this field
with a Spatial Reference Identifier in well-known text (WKT) format.
_xCoordOfGridCellZero (float) The x coordinate value, in the SRS, of the
lower left corner (not the center) of cell (0, 0).
_yCoordOfGridCellZero (float) The y coordinate value, in the SRS, of the
lower left corner (not the center) of cell (0, 0).
_nullValue (float) the value used in the grid's data array to represent a "no data"
cell.
_timeZoneID (String) a name for the time zone that applies to the data in the grid.
_timeZoneRawOffset (int) Offset in milliseconds from UTC.
_isTimeStamped (boolean) false for data that is time-invariant (e.g. grids of
stable parameters, like ground elevation).
_isTSElement (boolean) false for data that is time-invariant (e.g. grids of
stable parameters, like ground elevation).
_isInterval (boolean) false for instantaneous values, true for period data.
In addition, the GridInfo version number is explicitly stored in the header of the
DSS record, and the compression method defaults to ZLIB's deflate method
- See Also:
-
Field Summary
Fields inherited from class hec.heclib.grid.GridInfo
DSS7_GRID_STRUCT_VERSION, GRID_NODATA_VALUE, GRID_STRUCT_VERSION_UNDEFINED, NAD_27, NAD_83 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanintflatSize()public int flatSize(){ returns size in bytesfloatfloatvoidset(SpecifiedGridInfo si) voidsetCoordOfGridCellZero(float x, float y) intsetSpatialReference(String srsName, String srsDefinition, float xOrigin, float yOrigin) voidshow(BufferedWriter out) toString()Methods inherited from class hec.heclib.grid.GridInfo
copy, getCellSize, getCompressionBase, getCompressionMethod, getCompressionScaleFactor, getDataType, getDataTypeName, getDataUnits, getEndTime, getEndTimeFromPath, getGridInfoSize, getGridNodataValue, getGridType, getInfoSize, getLowerLeftCellX, getLowerLeftCellY, getMaxDataValue, getMaxValue, getMeanDataValue, getMeanValue, getMinDataValue, getMinValue, getNad27, getNad83, getNumberOfCellsX, getNumberOfCellsY, getNumEqual, getPrecip2Byte, getRange, getRangeLimitTable, getRangeNum, getSizeOfCompressedElements, getStartTime, getStartTimeFromPath, getTimePeriod, getUndefinedCompressionMethod, getUndefinedProjectionDatum, getVersion, getZlibDeflate, loadFlatData, set, setCellInfo, setCompressionInfo, setCompressionMethod, setDataInfo, setDataType, setDataUnits, setGridTimes, setGridTimes, setGridTimes, setGridType, setMaxDataValue, setParameterInfo, setRangeInfo, setVerboseMode, show, show, showRanges
-
Constructor Details
-
SpecifiedGridInfo
public SpecifiedGridInfo()Default constructor -
SpecifiedGridInfo
Copy Constructor. Makes a copy of given GridInfo object.- Parameters:
si-
-
-
Method Details
-
convertToGridInfo
- Overrides:
convertToGridInfoin classGridInfo
-
convertToGridInfo
-
convertToSridInfo
-
show
-
setSpatialReference
-
getSpatialReferenceSystem
- Overrides:
getSpatialReferenceSystemin classGridInfo
-
getXCoordOfGridCellZero
public float getXCoordOfGridCellZero() -
getYCoordOfGridCellZero
public float getYCoordOfGridCellZero() -
setCoordOfGridCellZero
public void setCoordOfGridCellZero(float x, float y) -
flatSize
public int flatSize()public int flatSize(){ returns size in bytes -
makeGridInfoFlat
-
makeGridInfoFlat
-
set
-
equals
-
toString
-