public class ArrayMath extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static double |
fill_value |
| 构造器 | 说明 |
|---|---|
ArrayMath() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Array |
abs(Array a) |
Array absolute
|
static Array |
acos(Array a) |
Arc cosine function
|
static Array |
add(Array a,
Number b) |
Array add
|
static Array |
add(Array a,
Array b) |
Array add
|
static Array |
add(Array a,
Complex b) |
Array add
|
static Array |
add(Array a,
org.python.core.PyComplex b) |
Array add
|
static boolean |
all(Array a) |
Test whether all array element evaluates to True.
|
static Array |
all(Array a,
int axis) |
Test whether all array element along a given axis evaluates to True.
|
static boolean |
any(Array a) |
Test whether any array element evaluates to True.
|
static Array |
any(Array a,
int axis) |
Test whether any array element along a given axis evaluates to True.
|
static int |
argMax(Array a) |
Get the index of the maximum value into the flattened array.
|
static Array |
argMax(Array a,
int axis) |
Get the indices of the maximum values along an axis.
|
static int |
argMin(Array a) |
Get the index of the minimum value into the flattened array.
|
static Array |
argMin(Array a,
int axis) |
Get the indices of the minimum values along an axis.
|
static Array |
asin(Array a) |
Arc sine function
|
static List<Object> |
asList(Array a) |
As number list
|
static Array |
atan(Array a) |
Arc tangen function
|
static Array |
atan2(Array a,
Array b) |
Arc tangen function
|
static double |
aveDouble(Array a) |
Average array
|
static double |
aveDouble(Array a,
double missingValue) |
Average array skip missing value
|
static Array |
bitAnd(Array a,
Number b) |
Bit and operation
|
static Array |
bitAnd(Array a,
Array b) |
Bit and operation
|
static Array |
bitInvert(Array a) |
Bit inversion ~ operation
|
static Array |
bitOr(Array a,
Number b) |
Bit or | operation
|
static Array |
bitOr(Array a,
Array b) |
Bit or | operation
|
static Array |
bitXor(Array a,
Number b) |
Bit exclusive or ^ operation
|
static Array |
bitXor(Array a,
Array b) |
Bit exclusive or | operation
|
static int[] |
broadcast(Array a,
Array b) |
Get broadcast shape from two arrays
|
static int |
broadcastCheck(Array a,
Array b) |
Broadcast check for two arrays.
|
static double[] |
cartesianToPolar(double x,
double y) |
Convert cartesian to polar coordinate
|
static Array[] |
cartesianToPolar(Array x,
Array y) |
Convert cartesian to polar coordinate
|
static Array |
cdiff(Array data,
int dimIdx) |
Performs a centered difference operation on a grid data along one
dimension direction
|
static Array |
cdiff_bak(Array data,
boolean isX) |
Performs a centered difference operation on a grid data in the x or y
direction
|
static boolean |
containsNaN(Array a) |
Check if the array contains NaN value
|
static Array |
copy(Array a) |
Copy array
|
static Array |
cos(Array a) |
Cosine function
|
static Array |
cumsum(Array a,
int axis) |
Return the cumulative sum of the elements along a given axis.
|
static List<Double> |
cumsum(Array a,
List<Range> ranges) |
Compute cumulative sum value of an array
|
static Array |
div(Number b,
Array a) |
Array divide
|
static Array |
div(Array a,
Number b) |
Array divide
|
static Array |
div(Array a,
Array b) |
Array divide
|
static Array |
div(Array a,
Complex b) |
Array divide
|
static Array |
div(Array a,
org.python.core.PyComplex b) |
Array divide
|
static Array |
div(Complex b,
Array a) |
Array divide
|
static Array |
div(org.python.core.PyComplex b,
Array a) |
Array divide
|
static Array |
dot(Array a,
Array b) |
Matrix multiplication
|
static double[] |
ds2uv(double windDir,
double windSpeed) |
Get wind U/V components from wind direction and speed
|
static Array[] |
ds2uv(Array windDir,
Array windSpeed) |
Get wind U/V components from wind direction and speed
|
static Array |
equal(Array a,
Number b) |
Array equal
|
static Array |
equal(Array a,
String b) |
Array equal
|
static Array |
equal(Array a,
Array b) |
Array equal
|
static Array |
exp(Array a) |
Exponent function
|
static Array |
flip(Array a,
int idx) |
Flip array
|
static Array |
flip(Array a,
List<Integer> idxs) |
Flip array
|
static Array |
fmax(Array x1,
Array x2) |
Element-wise maximum of array elements, ignores NaNs.
|
static Array |
fmin(Array x1,
Array x2) |
Element-wise minimum of array elements, ignores NaNs.
|
static DataType |
getDataType(Object o) |
Get data type
|
static double |
getMaximum(Array a) |
Get maximum value
|
static double |
getMaximum(Array a,
double missingv) |
Get maximum value
|
static double |
getMinimum(Array a) |
Get minimum value
|
static double |
getMinimum(Array a,
double missingv) |
Get minimum value
|
static float |
getR(List<Number> xData,
List<Number> yData) |
Get correlation coefficient How well did the forecast values correspond
to the observed values?
|
static float |
getR(Array xData,
Array yData) |
Get correlation coefficient How well did the forecast values correspond
to the observed values?
|
static Array |
greaterThan(Array a,
Number b) |
Array greater than
|
static Array |
greaterThan(Array a,
Array b) |
Array greater than
|
static Array |
greaterThanOrEqual(Array a,
Number b) |
Array greater than or equal
|
static Array |
greaterThanOrEqual(Array a,
Array b) |
Array greater than or equal
|
static Array |
hcurl(Array uData,
Array vData,
List<Number> xx,
List<Number> yy) |
Calculates the vertical component of the curl (ie, vorticity)
|
static Array |
hdivg(Array uData,
Array vData,
List<Number> xx,
List<Number> yy) |
Calculates the horizontal divergence using finite differencing
|
static Array |
height2Press(Array height) |
Calculate pressure from height
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
List<Number> x_p,
List<Number> y_p) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
VectorLayer layer) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
PolygonShape ps) |
In polygon function
|
static Array |
inPolygon(Array x,
Array y,
List<PolygonShape> polygons) |
In polygon function
|
static Array |
inPolygon(Array x,
Array y,
Array x_p,
Array y_p) |
In polygon function
|
static Array |
inValues(Array a,
List b) |
Return the array with the value of 1 when the input array element value
in the list b, otherwise set value as 0.
|
static boolean |
isComplex(Array a) |
Check if an array is complex data type
|
static boolean |
isNumeric(Array a) |
Check if an array is numeric array
|
static Array |
join(Array a,
Array b,
int dim) |
Join two arrays by a dimension
|
static double[] |
leastSquareTrend(List<Number> xData,
List<Number> yData) |
Determine the least square trend equation - linear fitting
|
static Array |
leftShift(Array a,
Number b) |
Bit left shift operation
|
static Array |
leftShift(Array a,
Array b) |
Bit left shift operation
|
static Array |
lessThan(Array a,
Number b) |
Array less than
|
static Array |
lessThan(Array a,
Array b) |
Array less than
|
static Array |
lessThanOrEqual(Array a,
Number b) |
Array less than or equal
|
static Array |
lessThanOrEqual(Array a,
Array b) |
Array less than or equal
|
static double[] |
lineRegress(List<Number> xData,
List<Number> yData) |
Linear regress
|
static double[] |
lineRegress(Array xData,
Array yData) |
Linear regress
|
static Array |
log(Array a) |
Log function
|
static Array |
log10(Array a) |
Log10 function
|
static Array |
magnitude(Array uData,
Array vData) |
Take magnitude value from U/V grid data
|
static Array |
maskin(Array a,
Array m) |
Maskin function
|
static Array |
maskin(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskin function
|
static Array[] |
maskin_Remove(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskin function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
VectorLayer layer,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
PolygonShape polygon,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
Array m) |
Maskout function
|
static Array |
maskout(Array a,
Array m,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskout function
|
static Array[] |
maskout_Remove(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskout function
|
static double |
max(Array a) |
Compute maximum value of an array
|
static Array |
max(Array a,
int axis) |
Compute maximum value of an array along an axis (dimension)
|
static double |
max(Array a,
List<Range> ranges) |
Compute maximum value of an array
|
static Array |
maximum(Array x1,
Array x2) |
Element-wise maximum of array elements.
|
static Array |
mean(List<Array> alist) |
Compute the arithmetic mean arry from a list of arrays
|
static double |
mean(Array a) |
Compute mean value of an array
|
static Array |
mean(Array a,
int axis) |
Compute mean value of an array along an axis (dimension)
|
static double |
mean(Array a,
List<Range> ranges) |
Compute mean value of an array
|
static double |
median(Array a) |
Compute median value of an array
|
static Array |
median(Array a,
int axis) |
Compute median value of an array along an axis (dimension)
|
static double |
median(Array a,
List<Range> ranges) |
Compute median value of an array
|
static double |
min(Array a) |
Compute minimum value of an array
|
static Array |
min(Array a,
int axis) |
Compute minimum value of an array along an axis (dimension)
|
static double |
min(Array a,
List<Range> ranges) |
Compute minimum value of an array
|
static Array |
minimum(Array x1,
Array x2) |
Element-wise minimum of array elements.
|
static void |
missingToNaN(Array a,
Number missingv) |
Set missing value to NaN
|
static Array |
mul(Array a,
Number b) |
Array multiply
|
static Array |
mul(Array a,
Array b) |
Array mutiply
|
static Array |
mul(Array a,
Complex b) |
Array multiply
|
static Array |
mul(Array a,
org.python.core.PyComplex b) |
Array multiply
|
static List<Array> |
nonzero(Array a) |
Return the indices of the elements that are non-zero.
|
static Array |
notEqual(Array a,
Number b) |
Array not equal
|
static Array |
notEqual(Array a,
Array b) |
Array not equal
|
static double[] |
polarToCartesian(double B,
double r) |
Convert poar to cartesian coordinate
|
static Array[] |
polarToCartesian(Array B,
Array r) |
Convert poar to cartesian coordinate
|
static Array |
polyVal(List<Number> p,
Array x) |
Evaluate a polynomial at specific values.
|
static Array |
pow(Number a,
Array b) |
Array pow function
|
static Array |
pow(Array a,
Number b) |
Array pow function
|
static Array |
pow(Array a,
Array b) |
Array pow function
|
static Array |
pow(Array a,
Complex b) |
Array pow function
|
static Array |
pow(Array a,
org.python.core.PyComplex b) |
Array pow function
|
static Array |
pow(Complex b,
Array a) |
Array pow function
|
static Array |
pow(org.python.core.PyComplex b,
Array a) |
Array pow function
|
static Array |
press2Height(Array press) |
Calculate height from pressure
|
static double |
prodDouble(Array a) |
Produce array
|
static Array |
qair2rh(Array qair,
Array temp,
double press) |
Calculate relative humidity from specific humidity
|
static Array |
qair2rh(Array qair,
Array temp,
Array press) |
Calculate relative humidity
|
static Array |
removeNaN(Array a) |
Remove NaN values in an array
|
static Array[] |
removeNaN(Array... a) |
Remove NaN values in arrays
|
static Array |
rightShift(Array a,
Number b) |
Bit right shift operation
|
static Array |
rightShift(Array a,
Array b) |
Bit right shift operation
|
static Array |
rolling_mean(Array x,
int window,
boolean center) |
Moving average function
|
static Array |
rot90(Array a,
int k) |
Rotate an array by 90 degrees in counter-clockwise direction.
|
static Array |
section(Array a,
int[] origin,
int[] size,
int[] stride) |
Section array
|
static Array |
section(Array a,
List<Range> ranges) |
Section array
|
static Array |
setSection(Array a,
List<Range> ranges,
Number v) |
Set section
|
static Array |
setSection(Array a,
List<Range> ranges,
Array v) |
Set section
|
static Array |
setSection_List(Array a,
List<List<Integer>> ranges,
Number v) |
Set section
|
static Array |
setSection_List(Array a,
List<List<Integer>> ranges,
Array v) |
Set section
|
static Array |
setSection_Mix(Array a,
List<Object> ranges,
Number v) |
Set section
|
static Array |
setSection_Mix(Array a,
List<Object> ranges,
Array v) |
Set section
|
static void |
setValue(Array a,
Array b,
Number value) |
Set value
|
static void |
setValue(Array a,
Array b,
Array value) |
Set value
|
static Array |
sign(Array x) |
Returns an element-wise indication of the sign of a number.
|
static Array |
sin(Array a) |
Sine function
|
static Array |
sqrt(Array a) |
Sqrt function
|
static double |
std(Array a) |
Compute standard deviation value of an array
|
static Array |
std(Array a,
int axis) |
Compute standard deviation value of an array along an axis (dimension)
|
static double |
std(Array a,
List<Range> ranges) |
Compute standard deviation value of an array
|
static Array |
sub(Number b,
Array a) |
Array subtract
|
static Array |
sub(Array a,
Number b) |
Array subtract
|
static Array |
sub(Array a,
Array b) |
Array subtract
|
static Array |
sub(Array a,
Complex b) |
Array subtract
|
static Array |
sub(Array a,
org.python.core.PyComplex b) |
Array subtract
|
static Array |
sub(Complex b,
Array a) |
Array subtract
|
static Array |
sub(org.python.core.PyComplex b,
Array a) |
Array subtract
|
static Array |
sum(List<Array> alist) |
Compute the sum arry from a list of arrays
|
static double |
sum(Array a) |
Summarize array
|
static double |
sum(Array a,
double missingValue) |
Summarize array skip missing value
|
static Array |
sum(Array a,
int axis) |
Compute sum value of an array along an axis (dimension)
|
static double |
sum(Array a,
List<Range> ranges) |
Compute sum value of an array
|
static Array |
take(Array a,
List<Object> ranges) |
Take elements from an array along an axis.
|
static Array |
takeValues(Array a,
List<List<Integer>> ranges) |
Take elements from an array.
|
static Array |
tan(Array a) |
Tangent function
|
static Array |
tc2tf(Array tc) |
Calculate fahrenheit temperature from celsius temperature
|
static Array |
tf2tc(Array tf) |
Calculate celsius temperature from fahrenheit temperature
|
static Array |
toDegrees(Array a) |
Convert radians to degrees function
|
static Array |
toRadians(Array a) |
Convert radians to degrees function
|
static Array |
transpose(Array a,
int dim1,
int dim2) |
Transpose array
|
static double |
trapz(Array y,
double dx) |
Integrate vector array using the composite trapezoidal rule.
|
static Array |
trapz(Array a,
double dx,
int axis) |
Integrate vector array using the composite trapezoidal rule.
|
static double |
trapz(Array y,
double dx,
List<Range> ranges) |
Integrate vector array using the composite trapezoidal rule.
|
static double |
trapz(Array y,
Array x) |
Integrate vector array using the composite trapezoidal rule.
|
static Array |
trapz(Array a,
Array x,
int axis) |
Integrate vector array using the composite trapezoidal rule.
|
static double |
trapz(Array y,
Array x,
List<Range> ranges) |
Integrate vector array using the composite trapezoidal rule.
|
static short |
typeToNBytes(DataType dataType) |
Return the number of bytes per element for the given typecode.
|
static double[] |
uv2ds(double u,
double v) |
Get wind direction and wind speed from U/V
|
static Array[] |
uv2ds(Array u,
Array v) |
Get wind direction and wind speed from U/V
|
static Array |
var(Array a,
int axis) |
Compute variance value of an array along an axis (dimension)
|
static double |
var(Array a,
List<Range> ranges) |
Compute variance value of an array
|
static double |
vdot(Array a,
Array b) |
Return the dot product of two vectors.
|
public static DataType getDataType(Object o)
o - Objectpublic static short typeToNBytes(DataType dataType)
dataType - Data typepublic static boolean isComplex(Array a)
a - The arraypublic static boolean isNumeric(Array a)
a - The arraypublic static int broadcastCheck(Array a, Array b)
a - Array ab - Array bpublic static int[] broadcast(Array a, Array b)
a - Array ab - Array bpublic static Array add(Array a, Array b)
a - Array ab - Array bpublic static Array add(Array a, Number b)
a - Array ab - Number bpublic static Array add(Array a, Complex b)
a - Array ab - Complex number bpublic static Array add(Array a, org.python.core.PyComplex b)
a - Array ab - Complex number bpublic static Array sub(Array a, Array b)
a - Array ab - Array bpublic static Array sub(Array a, Number b)
a - Array ab - Number bpublic static Array sub(Array a, Complex b)
a - Array ab - Complex number bpublic static Array sub(Array a, org.python.core.PyComplex b)
a - Array ab - Complex number bpublic static Array sub(Number b, Array a)
a - Array ab - Number bpublic static Array sub(Complex b, Array a)
a - Array ab - Complex number bpublic static Array sub(org.python.core.PyComplex b, Array a)
a - Array ab - Complex number bpublic static Array mul(Array a, Array b)
a - Array ab - Array bpublic static Array mul(Array a, Number b)
a - Array ab - Number bpublic static Array mul(Array a, Complex b)
a - Array ab - Complex number bpublic static Array mul(Array a, org.python.core.PyComplex b)
a - Array ab - Complex number bpublic static Array div(Array a, Array b)
a - Array ab - Array bpublic static Array div(Array a, Number b)
a - Array ab - Number bpublic static Array div(Array a, Complex b)
a - Array ab - Complex number bpublic static Array div(Array a, org.python.core.PyComplex b)
a - Array ab - Complex number bpublic static Array div(Number b, Array a)
a - Array ab - Number bpublic static Array div(Complex b, Array a)
a - Array ab - Complex number bpublic static Array div(org.python.core.PyComplex b, Array a)
a - Array ab - Complex number bpublic static Array pow(Array a, Number b)
a - Array ab - Number bpublic static Array pow(Array a, Complex b)
a - Array ab - Complex number bpublic static Array pow(Array a, org.python.core.PyComplex b)
a - Array ab - Complex number bpublic static Array pow(Number a, Array b)
a - Number ab - Array bpublic static Array pow(Complex b, Array a)
a - Array ab - Complex number bpublic static Array pow(org.python.core.PyComplex b, Array a)
a - Array ab - Complex number bpublic static Array pow(Array a, Array b)
a - Number ab - Array bpublic static Array equal(Array a, Array b)
a - Array ab - Array bpublic static Array equal(Array a, Number b)
a - Array ab - Number bpublic static Array equal(Array a, String b)
a - Array ab - String bpublic static Array lessThan(Array a, Array b)
a - Array ab - Array bpublic static Array lessThan(Array a, Number b)
a - Array ab - Number bpublic static Array lessThanOrEqual(Array a, Array b)
a - Array ab - Array bpublic static Array lessThanOrEqual(Array a, Number b)
a - Array ab - Number bpublic static Array greaterThan(Array a, Array b)
a - Array ab - Array bpublic static Array greaterThan(Array a, Number b)
a - Array ab - Number bpublic static Array greaterThanOrEqual(Array a, Array b)
a - Array ab - Array bpublic static Array greaterThanOrEqual(Array a, Number b)
a - Array ab - Number bpublic static Array notEqual(Array a, Array b)
a - Array ab - Array bpublic static Array notEqual(Array a, Number b)
a - Array ab - Number bpublic static boolean any(Array a)
a - The arraypublic static Array any(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static boolean all(Array a)
a - The arraypublic static Array all(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static Array inValues(Array a, List b)
a - Array ab - List bpublic static boolean containsNaN(Array a)
a - Input arraypublic static Array removeNaN(Array a)
a - The arraypublic static Array[] removeNaN(Array... a)
a - The arrayspublic static List<Array> nonzero(Array a)
a - Input arraypublic static Array bitAnd(Array a, Number b)
a - Array ab - Number bpublic static Array bitAnd(Array a, Array b)
a - Array ab - Array bpublic static Array bitOr(Array a, Number b)
a - Array ab - Number bpublic static Array bitOr(Array a, Array b)
a - Array ab - Array bpublic static Array bitXor(Array a, Number b)
a - Array ab - Number bpublic static Array bitXor(Array a, Array b)
a - Array ab - Array bpublic static Array bitInvert(Array a)
a - Array apublic static Array leftShift(Array a, Number b)
a - Array ab - Number bpublic static Array leftShift(Array a, Array b)
a - Array ab - Array bpublic static Array rightShift(Array a, Number b)
a - Array ab - Number bpublic static Array rightShift(Array a, Array b)
a - Array ab - Array bpublic static double trapz(Array y, double dx)
y - Vecotr arraydx - Spacing between all y elementspublic static double trapz(Array y, double dx, List<Range> ranges) throws InvalidRangeException
y - Vecotr arraydx - Spacing between all y elementsranges - InvalidRangeExceptionpublic static double trapz(Array y, Array x)
y - Vecotr arrayx - Spacing array between all y elementspublic static double trapz(Array y, Array x, List<Range> ranges) throws InvalidRangeException
y - Vecotr arrayx - Spacing array between all y elementsranges - RangesInvalidRangeExceptionpublic static Array trapz(Array a, double dx, int axis) throws InvalidRangeException
a - Array adx - axis - AxisInvalidRangeExceptionpublic static Array trapz(Array a, Array x, int axis) throws InvalidRangeException
a - Array ax - Array xaxis - AxisInvalidRangeExceptionpublic static Array sign(Array x)
x - Input arraypublic static Array dot(Array a, Array b)
a - Array ab - Array bpublic static double vdot(Array a, Array b)
a - Vector ab - Vector bpublic static Array toDegrees(Array a)
a - Array apublic static Array toRadians(Array a)
a - Array apublic static Array atan2(Array a, Array b)
a - Array ab - Array bpublic static Array[] cartesianToPolar(Array x, Array y)
x - X arrayy - Y arraypublic static Array[] polarToCartesian(Array B, Array r)
r - RadiusB - Angle in radianspublic static double[] cartesianToPolar(double x,
double y)
x - Xy - Ypublic static double[] polarToCartesian(double B,
double r)
r - RadiusB - Angle in radianspublic static Array section(Array a, int[] origin, int[] size, int[] stride) throws InvalidRangeException
a - Array aorigin - Origin arraysize - Size arraystride - Stride arrayInvalidRangeExceptionpublic static Array section(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - RangesInvalidRangeExceptionpublic static Array take(Array a, List<Object> ranges)
a - The arrayranges - The indices of the values to extract.public static Array takeValues(Array a, List<List<Integer>> ranges)
a - The arrayranges - The indices of the values to extract.public static Array setSection(Array a, List<Range> ranges, Number v) throws InvalidRangeException
a - Array aranges - Rangesv - Number valueInvalidRangeExceptionpublic static Array setSection(Array a, List<Range> ranges, Array v) throws InvalidRangeException
a - Array aranges - Rangesv - Array valueInvalidRangeExceptionpublic static Array setSection_Mix(Array a, List<Object> ranges, Number v)
a - Array aranges - Rangesv - Number valuepublic static Array setSection_Mix(Array a, List<Object> ranges, Array v)
a - Array aranges - Rangesv - Array valuepublic static Array setSection_List(Array a, List<List<Integer>> ranges, Number v)
a - Array aranges - Rangesv - Number valuepublic static Array setSection_List(Array a, List<List<Integer>> ranges, Array v)
a - Array aranges - Rangesv - Array valuepublic static Array flip(Array a, List<Integer> idxs)
a - Array aidxs - Dimension index listpublic static Array flip(Array a, int idx)
a - Array aidx - Dimension idexpublic static Array transpose(Array a, int dim1, int dim2)
a - Array adim1 - Dimension index 1dim2 - Dimension index 2public static Array rot90(Array a, int k)
a - The arrayk - Rotate timespublic static Array join(Array a, Array b, int dim)
a - Array ab - Array bdim - Dimension for joinpublic static double getMinimum(Array a)
a - Array apublic static double getMaximum(Array a)
a - Array apublic static double getMinimum(Array a, double missingv)
a - Array amissingv - Missing valuepublic static double getMaximum(Array a, double missingv)
a - Array amissingv - Missing valuepublic static double min(Array a)
a - Array apublic static Array min(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double min(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static double max(Array a)
a - Array apublic static Array max(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double max(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static Array sum(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double sum(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static Array sum(List<Array> alist)
alist - list of arrayspublic static double sum(Array a)
a - Array apublic static double sum(Array a, double missingValue)
a - Array amissingValue - Missing valuepublic static Array cumsum(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static List<Double> cumsum(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static double prodDouble(Array a)
a - Array apublic static double aveDouble(Array a)
a - Array apublic static double aveDouble(Array a, double missingValue)
a - Array amissingValue - Missing valuepublic static int argMin(Array a) throws InvalidRangeException
a - Array aInvalidRangeExceptionpublic static Array argMin(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static int argMax(Array a) throws InvalidRangeException
a - Array aInvalidRangeExceptionpublic static Array argMax(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static Array mean(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double mean(Array a)
a - Array apublic static Array mean(List<Array> alist)
alist - list of arrayspublic static double mean(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static Array std(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double std(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static double std(Array a) throws InvalidRangeException
a - Array aInvalidRangeExceptionpublic static Array var(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double var(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static Array median(Array a, int axis) throws InvalidRangeException
a - Array aaxis - AxisInvalidRangeExceptionpublic static double median(Array a, List<Range> ranges) throws InvalidRangeException
a - Array aranges - Range listInvalidRangeExceptionpublic static double median(Array a)
a - Array apublic static Array maximum(Array x1, Array x2)
x1 - Array 1x2 - Array 2public static Array fmax(Array x1, Array x2)
x1 - Array 1x2 - Array 2public static Array minimum(Array x1, Array x2)
x1 - Array 1x2 - Array 2public static Array fmin(Array x1, Array x2)
x1 - Array 1x2 - Array 2public static Array rolling_mean(Array x, int window, boolean center)
x - The data arraywindow - Size of moving windowcenter - Set the data in center moving windowpublic static void missingToNaN(Array a, Number missingv)
a - Array amissingv - Missing valuepublic static void setValue(Array a, Array b, Number value)
a - Array ab - Array b - 0/1 datavalue - Valuepublic static void setValue(Array a, Array b, Array value)
a - Array ab - Array b - 0/1 datavalue - Value arraypublic static List<Object> asList(Array a)
a - Array apublic static Array[] uv2ds(Array u, Array v)
u - U componentv - V componentpublic static double[] uv2ds(double u,
double v)
u - U componentv - V componentpublic static Array[] ds2uv(Array windDir, Array windSpeed)
windDir - Wind directionwindSpeed - Wind speedpublic static double[] ds2uv(double windDir,
double windSpeed)
windDir - Wind directionwindSpeed - Wind speedpublic static Array inPolygon(Array a, List<Number> x, List<Number> y, VectorLayer layer)
a - Array ax - X dimension valuesy - Y dimension valueslayer - Polygon vector layerpublic static Array inPolygon(Array a, List<Number> x, List<Number> y, PolygonShape ps)
a - Array ax - X dimension valuesy - Y dimension valuesps - Polygon shapepublic static Array inPolygon(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listpublic static Array inPolygon(Array x, Array y, List<PolygonShape> polygons)
x - X coordinatesy - Y coordinatespolygons - PolygonShape listpublic static Array inPolygon(Array a, List<Number> x, List<Number> y, List<Number> x_p, List<Number> y_p)
a - Array ax - X dimension valuesy - Y dimension valuesx_p - X coordinate of the polygony_p - Y coordinate of the polygonpublic static Array inPolygon(Array x, Array y, Array x_p, Array y_p)
x - X coordinatesy - Y coordinatesx_p - X coordinate of the polygony_p - Y coordinate of the polygonpublic static Array maskout(Array a, List<Number> x, List<Number> y, VectorLayer layer, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valueslayer - VectorLayermissingValue - Missing valuepublic static Array maskout(Array a, List<Number> x, List<Number> y, PolygonShape polygon, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valuespolygon - Polygon shapemissingValue - Missing valuepublic static Array maskout(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskoutpublic static Array maskin(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskinpublic static Array[] maskout_Remove(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskoutpublic static Array[] maskin_Remove(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskinpublic static Array maskout(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listpublic static Array maskout(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listmissingValue - Missing valuepublic static Array maskout(Array a, Array m, Number missingValue)
a - Array am - Array maskmissingValue - Missing valuepublic static Array maskout(Array a, Array m)
a - Array am - Array maskpublic static Array maskin(Array a, Array m)
a - Array am - Array maskpublic static float getR(List<Number> xData, List<Number> yData)
xData - X data arrayyData - Y data arraypublic static float getR(Array xData, Array yData)
xData - X data arrayyData - Y data arraypublic static double[] leastSquareTrend(List<Number> xData, List<Number> yData)
xData - X data arrayyData - Y data arraypublic static double[] lineRegress(List<Number> xData, List<Number> yData)
xData - X data arrayyData - Y data arraypublic static double[] lineRegress(Array xData, Array yData)
xData - X data arrayyData - Y data arraypublic static Array polyVal(List<Number> p, Array x)
p - array_like or poly1d objectx - array_like or poly1d objectpublic static Array cdiff(Array data, int dimIdx)
data - The grid datadimIdx - Direction dimension indexpublic static Array cdiff_bak(Array data, boolean isX)
data - The grid dataisX - If is x directionpublic static Array hcurl(Array uData, Array vData, List<Number> xx, List<Number> yy)
uData - U componentvData - V componentxx - X dimension valueyy - Y dimension valuepublic static Array hdivg(Array uData, Array vData, List<Number> xx, List<Number> yy)
uData - U componentvData - V componentxx - X dimension valueyy - Y dimension valuepublic static Array magnitude(Array uData, Array vData)
uData - U grid datavData - V grid datapublic static Array tc2tf(Array tc)
tc - Celsius temperaturepublic static Array tf2tc(Array tf)
tf - Fahrenheit temperaturepublic static Array qair2rh(Array qair, Array temp, double press)
qair - Specific humidity, dimensionless (e.g. kg/kg) ratio of water
mass / total air masstemp - Temperature - degree cpress - Pressure - hPa (mb)public static Array qair2rh(Array qair, Array temp, Array press)
qair - Specific humidity, dimensionless (e.g. kg/kg) ratio of water
mass / total air masstemp - Temperature - degree cpress - Pressure - hPa (mb)public static Array press2Height(Array press)
press - Pressure - hPaCopyright © 2019. All rights reserved.