public class StationData extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
double[][] |
data |
|
Extent |
dataExtent |
|
double |
missingValue |
|
ProjectionInfo |
projInfo |
Projection information
|
List<String> |
stations |
| 构造器 | 说明 |
|---|---|
StationData() |
Constructor
|
StationData(StationData aStData) |
Constructor
|
StationData(ucar.ma2.Array a,
ucar.ma2.Array x,
ucar.ma2.Array y,
Number missingv) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
StationData |
abs() |
Calculate abstract station data
|
StationData |
acos() |
Calculate anti-cosine station data
|
StationData |
add(double value) |
Add operator with a double value
|
StationData |
add(StationData bStData) |
Add operator with another station data
|
void |
addData(String id,
double x,
double y,
double value) |
Add a data
|
StationData |
asin() |
Calculate anti-sine station data
|
StationData |
atan() |
Calculate anti-tangent station data
|
double |
average() |
Calculate average value
|
StationData |
cos() |
Calculate cosine station data
|
List<double[]> |
createGridXY(GridDataSetting gSet) |
Create grid X/Y coordinate
|
StationData |
div(double value) |
Divide operator with a double value
|
StationData |
div(StationData bStData) |
Divide operator with another station data
|
StationData |
exp() |
Calculate e raised specific power value of station data
|
StationData |
filter(List<String> stations) |
Filter station data
|
void |
filterData_Radius(double radius,
Extent aExtent) |
Filte station data by radius and extent
|
boolean |
getMaxMinValue(double[] maxmin) |
Get maximum and minimum values
|
double |
getMaxValue() |
Get maximum value
|
Object[] |
getMaxValueIndex() |
Get maximum value and index
|
double |
getMinValue() |
Get minimum value
|
Object[] |
getMinValueIndex() |
Get minimum value and index
|
String |
getStid(int idx) |
Get station identifer by index
|
int |
getStidIndex(String stid) |
Get station identifer index
|
int |
getStNum() |
Get station number
|
List<Double> |
getValidValues() |
Get valid values
|
double |
getValue(int idx) |
Get data value by index
|
List<Double> |
getValues() |
Get values
|
double[] |
getX() |
Get X coordinates array
|
double |
getX(int idx) |
Get x coordinate by index
|
List<Double> |
getXList() |
Get X coordinates array
|
double[] |
getY() |
Get Y coordinates array
|
double |
getY(int idx) |
Get y coordinate by index
|
List<Double> |
getYList() |
Get Y coordinates array
|
int |
indexOf(int stid) |
Index of - by station identifer
|
GridData |
interpolate_Assign(double[][] S,
double[] X,
double[] Y,
double missingValue) |
Interpolation by assign method
|
GridData |
interpolate_Assign(List<Number> X,
List<Number> Y,
double missingValue) |
Interpolation by assign method
|
GridData |
interpolate_Cressman(double[][] S,
double[] X,
double[] Y,
List<Double> radList,
double missingValue) |
Interpolation by Cressman method
|
GridData |
interpolate_Cressman(List<Number> X,
List<Number> Y,
List<Number> radList,
double missingValue) |
Interpolation by Cressman method
|
GridData |
interpolate_Neighbor(double[][] S,
double[] X,
double[] Y,
int pNum,
double missingValue) |
Interpolate by IDW_Neighbor method
|
GridData |
interpolate_Neighbor(List<Number> X,
List<Number> Y,
int pNum,
double missingValue) |
Interpolate by IDW_Neighbor method
|
GridData |
interpolate_Radius(double[][] S,
double[] X,
double[] Y,
int minPNum,
double radius,
double missingValue) |
Interpolate by IDW radius method
|
GridData |
interpolate_Radius(List<Number> X,
List<Number> Y,
int minPNum,
double radius,
double missingValue) |
Interpolate by IDW radius method
|
GridData |
interpolateData(InterpolationSetting interSet) |
Interpolate to grid data
|
StationData |
join(StationData indata) |
Join an other station data
|
StationData |
log() |
Calculate logrithm station data
|
StationData |
log10() |
Calculate base 10 logrithm station data
|
StationData |
maskin(List<PolygonShape> polygonShapes) |
Maskin station data
|
StationData |
maskin(VectorLayer maskLayer) |
Maskin station data
|
StationData |
maskin(PolygonShape polygonShape) |
Maskin station data
|
StationData |
maskout(List<PolygonShape> polygonShapes) |
Maskout station data
|
StationData |
maskout(VectorLayer maskLayer) |
Maskout station data
|
StationData |
maskout(PolygonShape polygonShape) |
Maskout station data
|
StationData |
mul(double value) |
Multiply operator with a double value
|
StationData |
mul(StationData bStData) |
multiply operator with another station data
|
StationData |
pow(double p) |
Calculate power station data
|
StationData |
project(ProjectionInfo fromProj,
ProjectionInfo toProj) |
Project station data
|
void |
saveAsCSVFile(String fileName,
String fieldName) |
Save station data to a CVS file
|
void |
saveAsCSVFile(String fileName,
String fieldName,
boolean saveMissingData) |
Save station data to a CVS file
|
void |
setData(double[][] value) |
Set data array
|
void |
setStid(int idx,
String value) |
Set station identifer by index
|
void |
setValue(int idx,
double value) |
Set data value by index
|
StationData |
sin() |
Calculate sine station data
|
StationData |
sqrt() |
Calculate square root station data
|
StationData |
sub(double value) |
Subtract operator with a double value
|
StationData |
sub(StationData bStData) |
Subtract operator with another station data
|
double |
sum() |
Calculate summary value
|
StationData |
tan() |
Calculate tangent station data
|
void |
updateExtent() |
Update data extent
|
public double[][] data
public Extent dataExtent
public double missingValue
public ProjectionInfo projInfo
public StationData()
public StationData(ucar.ma2.Array a,
ucar.ma2.Array x,
ucar.ma2.Array y,
Number missingv)
a - Array datax - Array xy - Array ymissingv - Missing valuepublic StationData(StationData aStData)
aStData - Station datapublic int getStNum()
public double[] getX()
public double[] getY()
public void setData(double[][] value)
value - Data arraypublic StationData add(StationData bStData)
bStData - Station datapublic StationData add(double value)
value - The valuepublic StationData sub(StationData bStData)
bStData - Station datapublic StationData sub(double value)
value - The valuepublic StationData mul(StationData bStData)
bStData - Station datapublic StationData mul(double value)
value - The valuepublic StationData div(StationData bStData)
bStData - Station datapublic StationData div(double value)
value - The valuepublic StationData abs()
public StationData acos()
public StationData asin()
public StationData atan()
public StationData cos()
public StationData sin()
public StationData tan()
public StationData exp()
public StationData pow(double p)
p - Power valuepublic StationData sqrt()
public StationData log()
public StationData log10()
public void addData(String id, double x, double y, double value)
id - Data identiferx - X coordinatey - Y coordinatevalue - Valuepublic String getStid(int idx)
idx - Indexpublic void setStid(int idx,
String value)
idx - Indexvalue - Station identiferpublic double getX(int idx)
idx - Indexpublic double getY(int idx)
idx - Indexpublic double getValue(int idx)
idx - Indexpublic void setValue(int idx,
double value)
idx - Indexvalue - Data valuepublic int indexOf(int stid)
stid - Station identiferpublic void saveAsCSVFile(String fileName, String fieldName)
fileName - File namefieldName - Field namepublic void saveAsCSVFile(String fileName, String fieldName, boolean saveMissingData)
fileName - File namefieldName - Field namesaveMissingData - If save missing datapublic StationData maskout(PolygonShape polygonShape)
polygonShape - Mask polygon shapepublic StationData maskout(List<PolygonShape> polygonShapes)
polygonShapes - Mask polygon shapespublic StationData maskout(VectorLayer maskLayer)
maskLayer - Mask layerpublic StationData maskin(PolygonShape polygonShape)
polygonShape - Mask polygon shapepublic StationData maskin(List<PolygonShape> polygonShapes)
polygonShapes - Mask polygon shapespublic StationData maskin(VectorLayer maskLayer)
maskLayer - Mask layerpublic StationData filter(List<String> stations)
stations - Station identifer listpublic StationData join(StationData indata)
indata - Other station datapublic StationData project(ProjectionInfo fromProj, ProjectionInfo toProj)
fromProj - From projection infotoProj - To projection infopublic int getStidIndex(String stid)
stid - Station identiferpublic void updateExtent()
public GridData interpolateData(InterpolationSetting interSet)
interSet - Interpolation settingpublic GridData interpolate_Radius(double[][] S, double[] X, double[] Y, int minPNum, double radius, double missingValue)
S - Station data arrayX - X coordinate arrayY - Y coordinate arrayminPNum - Minimum point numberradius - RadiusmissingValue - Missing valuepublic GridData interpolate_Radius(List<Number> X, List<Number> Y, int minPNum, double radius, double missingValue)
X - X coordinate arrayY - Y coordinate arrayminPNum - Minimum point numberradius - RadiusmissingValue - Missing valuepublic GridData interpolate_Neighbor(double[][] S, double[] X, double[] Y, int pNum, double missingValue)
S - Station data arrayX - X coordinate arrayY - Y coordinate arraypNum - Point numbermissingValue - Missing valuepublic GridData interpolate_Neighbor(List<Number> X, List<Number> Y, int pNum, double missingValue)
X - X coordinate arrayY - Y coordinate arraypNum - Point numbermissingValue - Missing valuepublic GridData interpolate_Cressman(double[][] S, double[] X, double[] Y, List<Double> radList, double missingValue)
S - Station data arrayX - X coordinate arrayY - Y coordinate arrayradList - Radius listmissingValue - Missing valuepublic GridData interpolate_Cressman(List<Number> X, List<Number> Y, List<Number> radList, double missingValue)
X - X coordinate arrayY - Y coordinate arrayradList - Radius listmissingValue - Missing valuepublic GridData interpolate_Assign(double[][] S, double[] X, double[] Y, double missingValue)
S - Station data arrayX - X coordinate arrayY - Y coordinate arraymissingValue - Missing valuepublic GridData interpolate_Assign(List<Number> X, List<Number> Y, double missingValue)
X - X coordinate arrayY - Y coordinate arraymissingValue - Missing valuepublic List<double[]> createGridXY(GridDataSetting gSet)
gSet - public void filterData_Radius(double radius,
Extent aExtent)
radius - RadiusaExtent - Data extentpublic double getMinValue()
public double getMaxValue()
public Object[] getMinValueIndex()
public Object[] getMaxValueIndex()
public boolean getMaxMinValue(double[] maxmin)
maxmin - Maximum and minimum value arraypublic double average()
public double sum()
Copyright © 2019. All rights reserved.