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 intstatic final floatstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic GridInfobooleanintflatSize()returns flattened size in bytesfloatfloatintfloatintstatic voidgetEndTimeFromPath(String gridPath, HecTime time) get the end time from the dssPath's e partintstatic floatintintintintfloatfloatfloatfloatfloatfloatstatic intgetNad27()static intgetNad83()intintint[]static intvoidgetRange()float[]intintstatic voidgetStartTimeFromPath(String gridPath, HecTime time) get the start time from the dssPath's d partstatic intstatic intintstatic intintvoidintsetCellInfo(int lowerLeftCellX, int lowerLeftCellY, int numberOfCellsX, int numberOfCellsY, float cellSize) intsetCompressionInfo(int compressionMethod, int sizeofCompressedElements, float compressionScaleFactor, float compressionBase) voidsetCompressionMethod(int compressionMethod) intsetDataInfo(float maxDataValue, float minDataValue, float meanDataValue) voidsetDataType(int type) voidsetDataUnits(String dataUnits) voidsetGridTimes(HecTime start, HecTime end) voidsetGridTimes(String start, String end) voidsetGridTimes(Date start, Date end) voidsetGridType(int gridType) voidsetMaxDataValue(double max) intsetParameterInfo(String dataUnits, int dataType) intsetRangeInfo(int numberOfRanges, float[] rangeLimitTable, int[] numberEqualOrExceedingRangeLimit) voidsetVerboseMode(boolean verbose) voidshow()voidshow(BufferedWriter out) voidshow(PrintStream out) voidshowRanges(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)
-