Package hec.heclib.grid
Class GridInfo
java.lang.Object
hec.heclib.grid.GridInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlbersInfo
,HrapInfo
,SpecifiedGridInfo
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final float
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static GridInfo
boolean
int
flatSize()
returns flattened size in bytesfloat
float
int
float
int
static void
getEndTimeFromPath
(String gridPath, HecTime time) get the end time from the dssPath's e partint
static float
int
int
int
int
float
float
float
float
float
float
static int
getNad27()
static int
getNad83()
int
int
int[]
static int
void
getRange()
float[]
int
int
static void
getStartTimeFromPath
(String gridPath, HecTime time) get the start time from the dssPath's d partstatic int
static int
int
static int
int
void
int
setCellInfo
(int lowerLeftCellX, int lowerLeftCellY, int numberOfCellsX, int numberOfCellsY, float cellSize) int
setCompressionInfo
(int compressionMethod, int sizeofCompressedElements, float compressionScaleFactor, float compressionBase) void
setCompressionMethod
(int compressionMethod) int
setDataInfo
(float maxDataValue, float minDataValue, float meanDataValue) void
setDataType
(int type) void
setDataUnits
(String dataUnits) void
setGridTimes
(HecTime start, HecTime end) void
setGridTimes
(String start, String end) void
setGridTimes
(Date start, Date end) void
setGridType
(int gridType) void
setMaxDataValue
(double max) int
setParameterInfo
(String dataUnits, int dataType) int
setRangeInfo
(int numberOfRanges, float[] rangeLimitTable, int[] numberEqualOrExceedingRangeLimit) void
setVerboseMode
(boolean verbose) void
show()
void
show
(BufferedWriter out) void
show
(PrintStream out) void
showRanges
(BufferedWriter out) toString()
-
Field Details
-
NAD_27
public static final int NAD_27- See Also:
-
NAD_83
public static final int NAD_83- See Also:
-
GRID_NODATA_VALUE
public static final float GRID_NODATA_VALUE- See Also:
-
DSS7_GRID_STRUCT_VERSION
public static final int DSS7_GRID_STRUCT_VERSION- See Also:
-
GRID_STRUCT_VERSION_UNDEFINED
public static final int GRID_STRUCT_VERSION_UNDEFINED- See Also:
-
-
Constructor Details
-
GridInfo
public GridInfo() -
GridInfo
Copy Constructor. Makes a copy of given GridInfo object.- Parameters:
gridInfo
-
-
-
Method Details
-
copy
-
show
public void show() -
show
-
show
-
toString
-
showRanges
-
setParameterInfo
-
setCellInfo
public int setCellInfo(int lowerLeftCellX, int lowerLeftCellY, int numberOfCellsX, int numberOfCellsY, float cellSize) -
setCompressionMethod
public void setCompressionMethod(int compressionMethod) -
setCompressionInfo
public int setCompressionInfo(int compressionMethod, int sizeofCompressedElements, float compressionScaleFactor, float compressionBase) -
setDataType
public void setDataType(int type) -
setMaxDataValue
public void setMaxDataValue(double max) -
setDataInfo
public int setDataInfo(float maxDataValue, float minDataValue, float meanDataValue) -
setRangeInfo
public int setRangeInfo(int numberOfRanges, float[] rangeLimitTable, int[] numberEqualOrExceedingRangeLimit) -
flatSize
public int flatSize()returns flattened size in bytes -
loadFlatData
-
convertToGridInfo
-
equals
-
set
-
setGridTimes
-
setGridTimes
-
setGridTimes
-
getUndefinedProjectionDatum
public static int getUndefinedProjectionDatum() -
getGridType
public int getGridType() -
getCompressionMethod
public int getCompressionMethod() -
getLowerLeftCellX
public int getLowerLeftCellX() -
getLowerLeftCellY
public int getLowerLeftCellY() -
getNumberOfCellsX
public int getNumberOfCellsX() -
getNumberOfCellsY
public int getNumberOfCellsY() -
getCellSize
public float getCellSize() -
getSpatialReferenceSystem
-
getNad27
public static int getNad27() -
getNad83
public static int getNad83() -
getUndefinedCompressionMethod
public static int getUndefinedCompressionMethod() -
getPrecip2Byte
public static int getPrecip2Byte() -
getZlibDeflate
public static int getZlibDeflate() -
getGridNodataValue
public static float getGridNodataValue() -
getInfoSize
public int getInfoSize() -
getGridInfoSize
public int getGridInfoSize() -
getVersion
public int getVersion() -
getSizeOfCompressedElements
public int getSizeOfCompressedElements() -
getCompressionScaleFactor
public float getCompressionScaleFactor() -
getCompressionBase
public float getCompressionBase() -
getStartTime
-
getEndTime
-
getTimePeriod
-
getMaxValue
public float getMaxValue() -
getMinValue
public float getMinValue() -
getMeanValue
public float getMeanValue() -
getMaxDataValue
public float getMaxDataValue() -
getMinDataValue
public float getMinDataValue() -
getMeanDataValue
public float getMeanDataValue() -
getRangeNum
public int getRangeNum() -
getRangeLimitTable
public float[] getRangeLimitTable() -
getDataUnits
-
setDataUnits
-
getDataType
public int getDataType() -
getDataTypeName
-
getRange
public void getRange() -
getNumEqual
public int[] getNumEqual() -
getStartTimeFromPath
get the start time from the dssPath's d part -
getEndTimeFromPath
get the end time from the dssPath's e part -
setVerboseMode
public void setVerboseMode(boolean verbose) -
setGridType
public void setGridType(int gridType)
-