public class GridArray extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
Array |
data |
Grid data
|
String |
fieldName |
|
double |
missingValue |
|
ProjectionInfo |
projInfo |
Projection information
|
double[] |
xArray |
|
double[] |
yArray |
| 构造器 | 说明 |
|---|---|
GridArray() |
Constructor
|
GridArray(double xStart,
double xDelt,
int xNum,
double yStart,
double yDelt,
int yNum) |
Constructor
|
GridArray(GridArray aGridData) |
Constructor
|
GridArray(Array array,
List<Number> xdata,
List<Number> ydata,
double missingValue,
ProjectionInfo projInfo) |
Constructor
|
GridArray(Array array,
Array xdata,
Array ydata,
Number missingValue) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Object |
clone() |
Clone
|
double |
getBorderXMax() |
Get maximum x of the grid border
|
double |
getBorderXMin() |
Get minimum x of the grid border
|
double |
getBorderYMax() |
Get maximum y of the grid border
|
double |
getBorderYMin() |
Get minimum y of the grid border
|
List<Dimension> |
getDimensions() |
Get dimensions
|
double |
getDoubleValue(int i,
int j) |
Get double value
|
Extent |
getExtent() |
Get Extent
|
GridDataSetting |
getGridDataSetting() |
Get grid data setting
|
int[] |
getIJIndex(double x,
double y) |
Get i/j index of a point in the grid
|
boolean |
getMaxMinValue(double[] maxmin) |
Get maximum and minimum values
|
List<Number> |
getUniqueValues() |
Get unique values
|
Number |
getValue(int i,
int j) |
Get value
|
double |
getXDelt() |
Get xArray delt
|
double |
getXMax() |
Get maximum x
|
double |
getXMin() |
Get minimum x
|
int |
getXNum() |
Get xArray number
|
double |
getYDelt() |
Get yArray delt
|
double |
getYMax() |
Get maximum y
|
double |
getYMin() |
Get minimum y
|
int |
getYNum() |
Get yArray number
|
boolean |
hasNaN() |
Get if has NaN value
|
boolean |
isGlobal() |
Get if the data is global
|
boolean |
isXStagger() |
Get if is x stagger
|
boolean |
isYStagger() |
Get if is y stagger
|
double |
max() |
Maximum
|
double |
min() |
Minimum
|
GridArray |
project(ProjectionInfo toProj) |
Project grid data
|
GridArray |
project(ProjectionInfo fromProj,
ProjectionInfo toProj) |
Project grid data
|
GridArray |
project(ProjectionInfo fromProj,
ProjectionInfo toProj,
ResampleMethods resampleMethod) |
Project grid data
|
void |
saveAsBILFile(String fileName) |
Save as BIL data file
|
void |
saveAsESRIASCIIFile(String aFile) |
Save as ESRI ASCII data file
|
void |
saveAsMICAPS4File(String aFile,
String description,
Date aTime,
int hours,
int level,
float smooth,
float boldValue,
String floatFormat) |
Save as MICAPS 4 data file
|
void |
saveAsMICAPS4File(String aFile,
String description,
Date aTime,
int hours,
int level,
float smooth,
float boldValue,
String floatFormat,
ProjectionInfo projInfo) |
Save as MICAPS 4 data file
|
void |
saveAsSurferASCIIFile(String aFile) |
Save as Surfer ASCII data file
|
void |
setXStagger(boolean value) |
Set if is x stagger
|
void |
setYStagger(boolean value) |
Set if is y stagger
|
boolean |
testUniqueValues() |
Test unique values
|
public Array data
public double[] xArray
public double[] yArray
public double missingValue
public ProjectionInfo projInfo
public String fieldName
public GridArray()
public GridArray(GridArray aGridData)
aGridData - The grid datapublic GridArray(double xStart,
double xDelt,
int xNum,
double yStart,
double yDelt,
int yNum)
xStart - xArray startxDelt - xArray deltxNum - xArray numberyStart - yArray startyDelt - yArray deltyNum - yArray numberpublic GridArray(Array array, List<Number> xdata, List<Number> ydata, double missingValue, ProjectionInfo projInfo)
array - Data arrayxdata - X dataydata - Y datamissingValue - Missing valueprojInfo - Projection infopublic int getXNum()
public int getYNum()
public double getXDelt()
public double getYDelt()
public Extent getExtent()
public boolean isGlobal()
public boolean isXStagger()
public void setXStagger(boolean value)
value - Booleanpublic boolean isYStagger()
public void setYStagger(boolean value)
value - Booleanpublic Number getValue(int i, int j)
i - I indexj - J indexpublic double getDoubleValue(int i,
int j)
i - I indexj - J indexpublic double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public double getBorderXMin()
public double getBorderXMax()
public double getBorderYMin()
public double getBorderYMax()
public int[] getIJIndex(double x,
double y)
x - The x coordinatey - The y coordinatepublic boolean testUniqueValues()
public GridDataSetting getGridDataSetting()
public boolean getMaxMinValue(double[] maxmin)
maxmin - Max/Min arraypublic double min()
public double max()
public boolean hasNaN()
public GridArray project(ProjectionInfo toProj) throws InvalidRangeException
toProj - To projectionInvalidRangeExceptionpublic GridArray project(ProjectionInfo fromProj, ProjectionInfo toProj) throws InvalidRangeException
fromProj - From projectiontoProj - To projectionInvalidRangeExceptionpublic GridArray project(ProjectionInfo fromProj, ProjectionInfo toProj, ResampleMethods resampleMethod) throws InvalidRangeException
fromProj - From projectiontoProj - To projectionresampleMethod - Interpolation methodInvalidRangeExceptionpublic void saveAsSurferASCIIFile(String aFile)
aFile - File pathpublic void saveAsESRIASCIIFile(String aFile)
aFile - File pathpublic void saveAsBILFile(String fileName) throws IOException
fileName - File pathIOExceptionpublic void saveAsMICAPS4File(String aFile, String description, Date aTime, int hours, int level, float smooth, float boldValue, String floatFormat) throws IOException
aFile - File pathdescription - DescriptionaTime - Data timehours - Hourslevel - Levelssmooth - Smooth coefficientboldValue - Bold valuefloatFormat - Float formatIOExceptionpublic void saveAsMICAPS4File(String aFile, String description, Date aTime, int hours, int level, float smooth, float boldValue, String floatFormat, ProjectionInfo projInfo) throws IOException
aFile - File pathdescription - DescriptionaTime - Data timehours - Hourslevel - Levelssmooth - Smooth coefficientboldValue - Bold valuefloatFormat - Float formatprojInfo - Projection infoIOExceptionCopyright © 2019. All rights reserved.