|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.python.JPythonMethods
public abstract class JPythonMethods
A collection of methods for working with VisAD, callable from the JPython editor.
Field Summary | |
---|---|
static Hashtable |
JyVars
Make a Hashtable available for everyone |
Constructor Summary | |
---|---|
JPythonMethods()
|
Method Summary | |
---|---|
static Data |
abs_data(Data data)
return pointwise absolute value of data name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
abs(Data data)
return pointwise absolute value of data |
static double |
abs(double value)
return absolute value of value |
static int |
abs(int value)
return absolute value of value |
static long |
abs(long value)
return absolute value of value |
static Data |
acos(Data data)
return pointwise arccos value of data, in radians |
static Data |
acosDegrees(Data data)
return pointwise arccos value of data, in degrees |
static Data |
asin(Data data)
return pointwise arcsin value of data, in radians |
static Data |
asinDegrees(Data data)
return pointwise arcsin value of data, in degrees |
static Data |
atan(Data data)
return pointwise arctan value of data, in radians |
static Data |
atan2(Data data1,
Data data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2(Data data1,
double data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2(double data1,
Data data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2Degrees(Data data1,
Data data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atan2Degrees(Data data1,
double data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atan2Degrees(double data1,
Data data2)
return pointwise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atanDegrees(Data data)
return pointwise arctan value of data, in degrees |
static Data |
ceil(Data data)
return pointwise ceil value of data (smallest integer not less than) |
static JamaCholeskyDecomposition |
chol(FlatField data)
return matrix Cholesky Decomposition of data, as a 1-Tuple (lower_triangular_factor); data should have either a 1-D or 2-D gridded domain |
static void |
clearplot()
clear the onscreen data display |
static void |
clearplot(String name)
clear the onscreen data display with the given name |
static Field |
combine(Field[] fields)
combines fields |
static double |
cond(FlatField data)
return matrix condition of data (ratio of largest to smallest singular value), which should have either a 1-D or 2-D gridded domain |
static Data |
cos(Data data)
return pointwise cos value of data, assuming input values are in radians unless they have units convertable with radians, in which case those units are converted to radians |
static Data |
cosDegrees(Data data)
return pointwise cos value of data, assuming input values are in degrees unless they have units convertable with degrees, in which case those units are converted to degrees |
static double |
det(FlatField data)
return matrix determinant of data, which should have either a 1-D or 2-D gridded domain |
static int |
domainDimension(Data data)
|
static Field |
domainFactor(Field data,
int comp)
factors out the given domain component (by index) and creates a new data object. |
static Field |
domainFactor(Field data,
RealType factor)
factors out the given MathType from the domain of the data object. |
static RealTupleType |
domainType(Data data)
get the domain Type for the field |
static String |
domainType(Data data,
int comp)
get the name of the given component of the domain RealType. |
static void |
dumpType(Data d)
helper method for dumpMathType() only This just dumps out the MathType of the Data object. |
static void |
dumpTypes(Data d)
helper method for the dump(Data|Math)Type() methods this will list both the MathType and DataType information to stdout. |
static JamaEigenvalueDecomposition |
eig(FlatField data)
return matrix Eigenvalue Decomposition of data, as a 3-Tuple (eigenvector_matrix, real_eigenvalue_components, imaginary_eigenvalue_components); data should have either a 1-D or 2-D gridded domain |
static Data |
evaluate(Field data,
double domain)
|
static Data |
evaluate(Field data,
Real domain)
creates a VisAD Data by evaluating the Field at the point given in the domain. |
static Data |
exp(Data data)
return pointwise exp value of data |
static Field |
extract(Field data,
int comp)
extracts a component of the Field |
static Field |
extract(Field data,
MathType t)
extracts a component of the Field |
static Field |
extract(Field data,
String s)
extracts a component of the Field |
static FlatField |
fft(Field field)
return forward Fourier transform of field, which should have either a 1-D or 2-D gridded domain; uses fft when domain size is a power of two; returns real and imaginary parts |
static FlatField |
field(float[] values)
return a VisAD FlatField with default 1-D domain and with range values given by values array |
static FlatField |
field(float[][] values)
return a VisAD FlatField with default 2-D domain and with range values given by values array |
static FlatField |
field(Set set,
String name,
float[] values)
return a VisAD FlatField with given 1-D domain set, with range values given by values array, and with given range RealType name |
static FlatField |
field(Set set,
String name,
float[][] values)
return a VisAD FlatField with given 2-D domain set, with range values given by values array, and with given range RealType name |
static FlatField |
field(String name,
float[] values)
return a VisAD FlatField with default 1-D domain, with range values given by values array, and with given range RealType name |
static FlatField |
field(String name,
float[][] values)
return a VisAD FlatField with default 2-D domain, with range values given by values array, and with given range RealType name |
static FlatField |
field(String dom0,
String name,
float[] values)
return a VisAD FlatField with default 1-D domain, with range values given by values array, and with given range RealType name |
static FlatField |
field(String dom0,
String dom1,
String rng,
float[][] values)
return a VisAD FlatField with named default 2-D domain, with range values given by values array and with given range RealType name |
static int[] |
find(Data f,
String op,
Data v)
Get a list of points where a comparison is true. |
static int[] |
find(FlatField f,
String op,
double v)
Get a list of points where a comparison is true. |
static Data |
floor(Data data)
return pointwise floor value of data (largest integer not greater than) |
static Set |
getDomain(Data data)
return the sampling set for the domain of the Data object |
static int |
getDomainDimension(Data data)
get the number of domain components of the Data object |
static Set |
getDomainSet(Data data)
return the sampling set for the domain of the Data object |
static int[] |
getDomainSizes(Data data)
return the lengths of the components of the sampling set |
static RealTupleType |
getDomainType(Data data)
get the domain Type for the field |
static RealTupleType |
getDomainType(FunctionType type)
get the domain Type for the FunctionType |
static Data |
getNetcdfData(String filename)
helper method to read netcdf files with possible factor |
static Data |
getNetcdfData(String filename,
String factor)
|
static PointDataAdapter |
getPointDataAdapter(String request)
|
static int |
getRangeDimension(Data data)
get the number of range components of the Data object |
static MathType |
getRangeType(Data data)
get the range Type for the field |
static MathType |
getRangeType(FunctionType type)
get the range Type for the FunctionType |
static RealType |
getRealType(String name)
|
static RealType |
getRealType(String name,
Unit u)
|
static double[][] |
getScale(ScalarMap smap)
helper method for visad.ScalarMap.getScale |
static MathType |
getType(Data data)
get the MathType of the named VisAD data object |
static double |
getValue(Real r)
returns the double value of a Real value. |
static double[][] |
getValues(Field data)
returns the double values of the range |
static FlatField |
hist(Field field,
int[] ranges)
return histogram of range values of field selected by ranges array, with dimension = ranges.length, and 64 equally spaced bins in each dimension |
static FlatField |
hist(Field field,
int[] ranges,
int[] sizes)
return histogram of range values of field selected by ranges array, with dimension = ranges.length, and with number of equally spaced bins in each dimension determined by sizes array |
static FlatField |
hist(Field field,
Set set)
return histogram of range values of field selected by set, with dimension and bin sampling defined by set |
static FlatField |
ifft(Field field)
return backward Fourier transform of field, which should have either a 1-D or 2-D gridded domain; uses fft when domain size is a power of two; returns real and imaginary parts |
static JamaMatrix |
inverse(FlatField data)
return matrix inverse of data, which should have either a 1-D or 2-D gridded domain |
static DataImpl |
load(String location)
Reads in data from the given location (filename or URL). |
static Data |
log(Data data)
return pointwise log value of data |
static JamaLUDecomposition |
lu(FlatField data)
return matrix LU Decomposition of data, as a 3-Tuple (lower_triangular_factor, upper_triangular_factor, pivot_permutation_vector); data should have either a 1-D or 2-D gridded domain |
static Linear1DSet |
makeDomain(double first,
double last,
int length)
create a Linear1DSet for domain samples |
static Linear2DSet |
makeDomain(double first1,
double last1,
int length1,
double first2,
double last2,
int length2)
create a Linear2DSet for domain samples |
static Linear3DSet |
makeDomain(double first1,
double last1,
int length1,
double first2,
double last2,
int length2,
double first3,
double last3,
int length3)
create a Linear3DSet for domain samples |
static Integer1DSet |
makeDomain(int length)
make an Integer1DSet of given length |
static Integer2DSet |
makeDomain(int lengthX,
int lengthY)
make an Integer2DSet of given lengths |
static Linear1DSet |
makeDomain(MathType type,
double first,
double last,
int length)
create a Linear1DSet for domain samples |
static Linear2DSet |
makeDomain(MathType type,
double first1,
double last1,
int length1,
double first2,
double last2,
int length2)
create a Linear2DSet for domain samples |
static Linear3DSet |
makeDomain(MathType type,
double first1,
double last1,
int length1,
double first2,
double last2,
int length2,
double first3,
double last3,
int length3)
create a Linear3DSet for domain samples |
static Integer1DSet |
makeDomain(MathType type,
int length)
make an Integer1DSet of given length and MathType |
static Integer2DSet |
makeDomain(MathType type,
int lengthX,
int lengthY)
make an Integer2DSet of given lengths |
static Linear1DSet |
makeDomain(String name,
double first,
double last,
int length)
create a Linear1DSet for domain samples |
static Linear2DSet |
makeDomain(String name,
double first1,
double last1,
int length1,
double first2,
double last2,
int length2)
create a Linear2DSet for domain samples |
static Linear3DSet |
makeDomain(String name,
double first1,
double last1,
int length1,
double first2,
double last2,
int length2,
double first3,
double last3,
int length3)
create a Linear3DSet for domain samples |
static Integer1DSet |
makeDomain(String name,
int length)
make an Integer1DSet of given length and make a MathType |
static Integer2DSet |
makeDomain(String name,
int lengthX,
int lengthY)
make an Integer2DSet of given lengths |
static UnionSet |
makePairedLines(MathType mt,
double[][] points)
|
static RealType |
makeRealType(String name)
make or get the RealType corresponding to the name; if none exists, make one and return it. |
static RealType |
makeRealType(String name,
Unit u)
make or get the RealType corresponding to the name; if none exists, make one and return it. |
static MathType |
makeType(String s)
creates a VisAD MathType from the given string |
static RealTupleType |
makeType(String[] s,
CoordinateSystem c)
make a MathType with a Coordinate System. |
static Unit |
makeUnit(String name)
get a VisAD Unit from the name given |
static FlatField |
mask(Data f,
String op,
Data v)
Mask out values outside testing limits |
static FlatField |
mask(FlatField f,
String op,
double v)
Mask out values outside testing limits |
static JamaMatrix |
matrixMultiply(FlatField data1,
FlatField data2)
return matrix multiply of data1 * data2, which should have either 1-D or 2-D gridded domains |
static Data |
max_data(Data data1,
Data data2)
return pointwise maximum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
max_data(Data data1,
double data2)
return pointwise aximum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
max_data(double data1,
Data data2)
return pointwise maximum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
min_data(Data data1,
Data data2)
return pointwise minimum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
min_data(Data data1,
double data2)
return pointwise minimum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
min_data(double data1,
Data data2)
return pointwise minimum value of data1 and data2 name changed 1/11/02 to avoid conflicts with Jython built-in |
static double |
norm1(FlatField data)
return matrix one norm of data (maximum column sum), which should have either a 1-D or 2-D gridded domain |
static double |
norm2(FlatField data)
return matrix two norm of data (maximum singular value), which should have either a 1-D or 2-D gridded domain |
static double |
normF(FlatField data)
return matrix Frobenius norm of data (sqrt of sum of squares of all elements), which should have either a 1-D or 2-D gridded domain |
static double |
normInf(FlatField data)
return matrix infinity norm of data (maximum row sum), which should have either a 1-D or 2-D gridded domain |
static void |
plot(DataImpl data)
|
static void |
plot(DataImpl data,
boolean editMaps)
|
static void |
plot(DataImpl data,
double red,
double green,
double blue)
|
static void |
plot(DataImpl data,
ScalarMap[] maps)
|
static void |
plot(float[] data)
Displays the given data onscreen. |
static void |
plot(float[][] data)
|
static void |
plot(float[][] data,
boolean editMaps)
|
static void |
plot(float[][] data,
double red,
double green,
double blue)
|
static void |
plot(float[][] data,
ScalarMap[] maps)
|
static void |
plot(float[] data,
boolean editMaps)
Displays the given data onscreen, displaying the edit mappings dialog if specified. |
static void |
plot(float[] data,
double red,
double green,
double blue)
Displays the given data onscreen, using given color default. |
static void |
plot(float[] data,
ScalarMap[] maps)
Displays the given data onscreen. |
static void |
plot(String name,
DataImpl data)
|
static void |
plot(String name,
DataImpl data,
boolean editMaps)
|
static void |
plot(String namxe,
DataImpl data,
boolean editMaps,
double red,
double green,
double blue)
|
static void |
plot(String namxe,
DataImpl data,
boolean editMaps,
double red,
double green,
double blue,
ScalarMap[] maps)
|
static void |
plot(String name,
DataImpl data,
ScalarMap[] maps)
|
static void |
plot(String name,
float[] data)
Displays the given data onscreen. |
static void |
plot(String name,
float[][] data)
|
static void |
plot(String name,
float[][] data,
boolean editMaps)
|
static void |
plot(String namxe,
float[][] data,
boolean editMaps,
double red,
double green,
double blue)
|
static void |
plot(String name,
float[][] data,
ScalarMap[] maps)
|
static void |
plot(String name,
float[] data,
boolean editMaps)
Displays the given data onscreen in a display with the given name, displaying the edit mappings dialog if specified. |
static void |
plot(String namxe,
float[] data,
boolean editMaps,
double red,
double green,
double blue)
Displays the given data onscreen in a display with the given name, using the given color default and displaying the edit mappings dialog if specified. |
static void |
plot(String name,
float[] data,
ScalarMap[] maps)
Displays the given data onscreen. |
static JamaQRDecomposition |
qr(FlatField data)
return matrix QR Decomposition of data, as a 2-Tuple (orthogonal_factor, upper_triangular_factor); data should have either a 1-D or 2-D gridded domain |
static int |
rangeDimension(Data data)
get the number of range components of the Data object |
static MathType |
rangeType(Data data)
get the range Type for the field |
static String |
rangeType(Data data,
int comp)
get the name of the given component of the range RealType. |
static double |
rank(FlatField data)
return matrix effective numerical rank (from SVD) of data, which should have either a 1-D or 2-D gridded domain |
static FlatField |
replace(FlatField f,
double v)
Replaces all the values in a FlatField with the constant given |
static FlatField |
replace(FlatField f,
int[] list,
double v)
Replaces specified values in a FlatField with the constant given |
static FlatField |
replace(FlatField f,
int[] list,
Real v)
Replaces specified values in a FlatField with the constant given |
static FlatField |
replace(FlatField f,
Real v)
Replaces all the values in a FlatField with the constant given |
static FlatField |
replaceMissing(FlatField f,
double v)
Replaces all the missing values in a FlatField with the constant given |
static Field |
resample(Field data,
Set s)
resample the data field into the defined domain set |
static FlatField |
rescale(FlatField f,
double inlo,
double inhi,
double outlo,
double outhi)
re-scale the values in a FlatField |
static Data |
rint(Data data)
return pointwise rint value of data (closest integer) |
static Data |
round(Data data)
return pointwise round value of data (closest integer) |
static double |
round(double value)
return round value of data (closest integer) |
static double |
round(double value,
int digits)
return round value of data (closest integer) |
static void |
saveNetcdf(String fn,
Data d)
save the Data in a netcdf file |
static void |
saveplot(DisplayImpl disp,
String filename)
save the display genreated by a quick graph or showDisplay |
static void |
saveplot(String filename)
save the onscreen data display generated by plot() |
static void |
saveplot(String name,
String filename)
clear the onscreen data display with the given name |
static void |
setAxesScalesFont(ScalarMap[] sm,
Font f)
Set the font to be used for the axes labels and scales |
static void |
setAxesScalesLabel(ScalarMap[] sm,
String[] labels)
Set the Label to be used for the axes |
static void |
showAxesScales(DisplayImpl d,
boolean on)
Turn on/off the axes labels & scales on a Display |
static Data |
sin(Data data)
return pointwise sin value of data, assuming input values are in radians unless they have units convertable with radians, in which case those units are converted to radians |
static Data |
sinDegrees(Data data)
return pointwise sin value of data, assuming input values are in degrees unless they have units convertable with degrees, in which case those units are converted to degrees |
static JamaMatrix |
solve(FlatField data1,
FlatField data2)
return matrix soluton X of data1 * X = data2; data12 and data2 should have either 1-D or 2-D gridded domains; return solution if data1 is is square, least squares solution otherwise |
static Data |
sqrt(Data data)
return pointwise square root value of data |
static JamaSingularValueDecomposition |
svd(FlatField data)
return matrix Singular Value Decomposition of data, as a 3-Tuple (left_singular_vectors, right_singular_vectors, singular_value_vector); data should have either a 1-D or 2-D gridded domain |
static Data |
tan(Data data)
return pointwise tan value of data, assuming input values are in radians unless they have units convertable with radians, in which case those units are converted to radians |
static Data |
tanDegrees(Data data)
return pointwise tan value of data, assuming input values are in degrees unless they have units convertable with degrees, in which case those units are converted to degrees |
static double |
trace(FlatField data)
return matrix trace of data (sum of the diagonal elements), which should have either a 1-D or 2-D gridded domain |
static JamaMatrix |
transpose(FlatField data)
return matrix transpose of data, which should have either a 1-D or 2-D gridded domain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Hashtable JyVars
Constructor Detail |
---|
public JPythonMethods()
Method Detail |
---|
public static DataImpl load(String location) throws VisADException
VisADException
public static void plot(float[] data) throws VisADException, RemoteException
data
- VisAD data object to plot; alternatively
this may be a float[] or float[][].
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(float[][] data) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(DataImpl data) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(float[] data, ScalarMap[] maps) throws VisADException, RemoteException
data
- VisAD data object to plot; may also be
a float[] or float[][]maps
- ScalarMaps for the display
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(float[][] data, ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(DataImpl data, ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(float[] data, boolean editMaps) throws VisADException, RemoteException
data
- VisAD data object to plot; may also be
a float[] or float[][]editMaps
- whether to initially display edit mappings dialog
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(float[][] data, boolean editMaps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(DataImpl data, boolean editMaps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, float[] data) throws VisADException, RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plot; may also be
a float[] or float[][]
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(String name, float[][] data) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, DataImpl data) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, float[] data, ScalarMap[] maps) throws VisADException, RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plot; may also be
a float[] or float[][]maps
- ScalarMaps for display
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(String name, float[][] data, ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, DataImpl data, ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, float[] data, boolean editMaps) throws VisADException, RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plot; may also be
a float[] or float[][]editMaps
- whether to initially display edit mappings dialog
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(String name, float[][] data, boolean editMaps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String name, DataImpl data, boolean editMaps) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(float[] data, double red, double green, double blue) throws VisADException, RemoteException
data
- VisAD data object to plot; may also be
a float[] or float[][]red
- red component of default color to use if there
are no color mappings from data's RealTypes;
color component values between 0.0 and 1.0green
- green component of default colorblue
- blue component of default color
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(float[][] data, double red, double green, double blue) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(DataImpl data, double red, double green, double blue) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String namxe, float[] data, boolean editMaps, double red, double green, double blue) throws VisADException, RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plot; may also be
a float[] or float[][]editMaps
- whether to initially display edit mappings dialogred
- red component of default color to use if there
are no color mappings from data's RealTypes;
color component values between 0.0 and 1.0green
- green component of default colorblue
- blue component of default color
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(String namxe, float[][] data, boolean editMaps, double red, double green, double blue) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String namxe, DataImpl data, boolean editMaps, double red, double green, double blue) throws VisADException, RemoteException
VisADException
RemoteException
public static void plot(String namxe, DataImpl data, boolean editMaps, double red, double green, double blue, ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public static void clearplot() throws VisADException, RemoteException
VisADException
- part of data and display APIs, shouldn't occur
RemoteException
- part of data and display APIs, shouldn't occurpublic static void clearplot(String name) throws VisADException, RemoteException
name
- name of the display to clear
VisADException
- part of data and display APIs, shouldn't occur
RemoteException
- part of data and display APIs, shouldn't occurpublic static void saveNetcdf(String fn, Data d) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
public static void saveplot(DisplayImpl disp, String filename) throws VisADException, RemoteException, IOException
disp
- is the DisplayImpl to savefilename
- is the name of the JPG file to write
VisADException
RemoteException
IOException
public static void saveplot(String filename) throws VisADException, RemoteException, IOException
VisADException
- part of data and display APIs, shouldn't occur
RemoteException
- part of data and display APIs, shouldn't occur
IOException
public static void saveplot(String name, String filename) throws VisADException, RemoteException, IOException
name
- name of the display to clearfilename
- name of the file to save display into
VisADException
- part of data and display APIs, shouldn't occur
RemoteException
- part of data and display APIs, shouldn't occur
IOException
- part of data and display APIs, shouldn't occurpublic static Data abs_data(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data abs(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static double abs(double value)
value
- valuepublic static int abs(int value)
value
- valuepublic static long abs(long value)
value
- valuepublic static Data acos(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data acosDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data asin(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data asinDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atanDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data ceil(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data cos(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data cosDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data exp(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data floor(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data log(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data rint(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data round(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static double round(double value, int digits)
value
- valuepublic static double round(double value)
value
- valuepublic static Data sin(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data sinDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data sqrt(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data tan(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data tanDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2(Data data1, Data data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2Degrees(Data data1, Data data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2(Data data1, double data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2Degrees(Data data1, double data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data max_data(Data data1, Data data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data max_data(Data data1, double data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data max_data(double data1, Data data2) throws VisADException, RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data min_data(Data data1, Data data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data min_data(Data data1, double data2) throws VisADException, RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data min_data(double data1, Data data2) throws VisADException, RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2(double data1, Data data2) throws VisADException, RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan2Degrees(double data1, Data data2) throws VisADException, RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static FlatField fft(Field field) throws VisADException, RemoteException
field
- VisAD Field data object
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static FlatField ifft(Field field) throws VisADException, RemoteException
field
- VisAD Field data object
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static JamaMatrix matrixMultiply(FlatField data1, FlatField data2) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data1
- VisAD FlatField data objectdata2
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaMatrix solve(FlatField data1, FlatField data2) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data1
- VisAD FlatField data objectdata2
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaMatrix inverse(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaMatrix transpose(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double det(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double norm1(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double norm2(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double normInf(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double normF(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double rank(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double cond(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static double trace(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaCholeskyDecomposition chol(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaEigenvalueDecomposition eig(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaLUDecomposition lu(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaQRDecomposition qr(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static JamaSingularValueDecomposition svd(FlatField data) throws VisADException, RemoteException, IllegalAccessException, InstantiationException, InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
RemoteException
- part of data and display APIs, shouldn't occur
IllegalAccessException
- Jama not installed
InstantiationException
- Jama not installed
InvocationTargetException
- Jama not installedpublic static FlatField hist(Field field, Set set) throws VisADException, RemoteException
field
- VisAD Field data object whose range values
are analyzed in histogramset
- VisAD Set data object that defines dimension
and bin sampling for histogram
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static FlatField hist(Field field, int[] ranges) throws VisADException, RemoteException
field
- VisAD Field data object whose range values
are analyzed in histogramranges
- int[] array whose elements are indices of into
the range Tuple of field, selecting range
components as dimensions of the histogram
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static FlatField hist(Field field, int[] ranges, int[] sizes) throws VisADException, RemoteException
field
- VisAD Field data object whose range values
are analyzed in histogramranges
- int[] array whose elements are indices of into
the range Tuple of field, selecting range
components as dimensions of the histogramsizes
- int[] array whose elements are numbers of
equally spaced bins for each dimension
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static FlatField field(float[] values) throws VisADException, RemoteException
values
- float[] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(String name, float[] values) throws VisADException, RemoteException
name
- String defining range RealType namevalues
- float[] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(String dom0, String name, float[] values) throws VisADException, RemoteException
dom0
- String defining domain RealType namename
- String defining range RealType namevalues
- float[] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(Set set, String name, float[] values) throws VisADException, RemoteException
set
- VisAD Set defining 1-D domainname
- String defining range RealType namevalues
- float[] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(float[][] values) throws VisADException, RemoteException
values
- float[][] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(String name, float[][] values) throws VisADException, RemoteException
name
- String defining range RealType namevalues
- float[][] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(String dom0, String dom1, String rng, float[][] values) throws VisADException, RemoteException
dom0
- String defines first domain componentdom1
- String defines second domain componentname
- String defining range RealType namevalues
- float[][] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(Set set, String name, float[][] values) throws VisADException, RemoteException
set
- VisAD Set defining 2-D domainname
- String defining range RealType namevalues
- float[][] array defining range values of field
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static int getDomainDimension(Data data) throws VisADException, RemoteException
Data
- VisAD Data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static int domainDimension(Data data) throws VisADException, RemoteException
VisADException
RemoteException
public static int getRangeDimension(Data data) throws VisADException, RemoteException
Data
- VisAD Data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static int rangeDimension(Data data) throws VisADException, RemoteException
Data
- VisAD Data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static RealTupleType getDomainType(Data data) throws VisADException, RemoteException
data
- is the field to get the domain Type for
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static RealTupleType domainType(Data data) throws VisADException, RemoteException
data
- is the field to get the domain Type for
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static RealTupleType getDomainType(FunctionType type) throws VisADException, RemoteException
type
- is the FunctionType
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static MathType getRangeType(Data data) throws VisADException, RemoteException
data
- is the field to get the range Type for
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static MathType rangeType(Data data) throws VisADException, RemoteException
data
- is the field to get the range Type for
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static MathType getRangeType(FunctionType type) throws VisADException, RemoteException
type
- is the FunctionType
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static String domainType(Data data, int comp) throws VisADException, RemoteException
Data
- VisAD Data objectcomp
- the domain component index (0...)
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static String rangeType(Data data, int comp) throws VisADException, RemoteException
Data
- VisAD Data objectcomp
- the component index (0...)
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static Unit makeUnit(String name) throws NoSuchUnitException, ParseException
name
- name of unit desired (degC, etc)
NoSuchUnitException
ParseException
public static Integer1DSet makeDomain(int length) throws VisADException
length
- is the desired length of the 1D Integer Set
VisADException
public static Integer1DSet makeDomain(MathType type, int length) throws VisADException
type
- is the MathType of the Setlength
- is the desired length of the 1D Integer Set
VisADException
public static Integer1DSet makeDomain(String name, int length) throws VisADException
name
- is the MathType name to use to create the MathTypelength
- is the desired length of the 1D Integer Set
VisADException
public static Integer2DSet makeDomain(int lengthX, int lengthY) throws VisADException
lengthX
- is the desired length of the 2D Integer Set xlengthY
- is the desired length of the 2D Integer Set y
VisADException
public static Integer2DSet makeDomain(MathType type, int lengthX, int lengthY) throws VisADException
type
- is the MathType of the SetlengthX
- is the desired length of the 2D Integer Set xlengthY
- is the desired length of the 2D Integer Set y
VisADException
public static Integer2DSet makeDomain(String name, int lengthX, int lengthY) throws VisADException, RemoteException
name
- is the MathType name to use to create the MathType
(should be in the form: "(xx,yy)" )lengthX
- is the desired length of the 2D Integer Set xlengthY
- is the desired length of the 2D Integer Set y
VisADException
RemoteException
public static Linear1DSet makeDomain(double first, double last, int length) throws VisADException
first
- is the first value in the linear setlast
- is the last value in the linear setlength
- is the number of values in the set
VisADException
public static Linear1DSet makeDomain(MathType type, double first, double last, int length) throws VisADException
type
- is the VisAD MathType of this setfirst
- is the first value in the linear setlast
- is the last value in the linear setlength
- is the number of values in the set
VisADException
public static Linear1DSet makeDomain(String name, double first, double last, int length) throws VisADException
name
- is the name of the VisAD MathType of this setfirst
- is the first value in the linear setlast
- is the last value in the linear setlength
- is the number of values in the set
VisADException
public static Linear2DSet makeDomain(double first1, double last1, int length1, double first2, double last2, int length2) throws VisADException
first1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimension
VisADException
public static Linear2DSet makeDomain(MathType type, double first1, double last1, int length1, double first2, double last2, int length2) throws VisADException
type
- is the VisAD MathType of this setfirst1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimension
VisADException
public static Linear2DSet makeDomain(String name, double first1, double last1, int length1, double first2, double last2, int length2) throws VisADException, RemoteException
name
- is the name of the VisAD MathType of this setfirst1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimension
VisADException
RemoteException
public static Linear3DSet makeDomain(double first1, double last1, int length1, double first2, double last2, int length2, double first3, double last3, int length3) throws VisADException
first1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimensionfirst3
- is the first value in the linear set's 3rd dimensionlast3
- is the last value in the linear set's 3rd dimensionlength3
- is the number of values in the set's 3rd dimension
VisADException
public static Linear3DSet makeDomain(MathType type, double first1, double last1, int length1, double first2, double last2, int length2, double first3, double last3, int length3) throws VisADException
type
- is the VisAD MathType of this setfirst1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimensionfirst3
- is the first value in the linear set's 3rd dimensionlast3
- is the last value in the linear set's 3rd dimensionlength3
- is the number of values in the set's 3rd dimension
VisADException
public static Linear3DSet makeDomain(String name, double first1, double last1, int length1, double first2, double last2, int length2, double first3, double last3, int length3) throws VisADException, RemoteException
name
- is the name of the VisAD MathType of this setfirst1
- is the first value in the linear set's 1st dimensionlast1
- is the last value in the linear set's 1st dimensionlength1
- is the number of values in the set's 1st dimensionfirst2
- is the first value in the linear set's 2nd dimensionlast2
- is the last value in the linear set's 2nd dimensionlength2
- is the number of values in the set's 2nd dimensionfirst3
- is the first value in the linear set's 3rd dimensionlast3
- is the last value in the linear set's 3rd dimensionlength3
- is the number of values in the set's 3rd dimension
VisADException
RemoteException
public static Set getDomainSet(Data data) throws VisADException, RemoteException
data
- is the VisAD data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static Set getDomain(Data data) throws VisADException, RemoteException
data
- is the VisAD data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static int[] getDomainSizes(Data data) throws VisADException, RemoteException
data
- is the VisAD data object
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField replace(FlatField f, int[] list, Real v) throws VisADException, RemoteException
f
- is the input FlatFieldlist
- is the int[] list of indecies into f to replacev
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replace(FlatField f, int[] list, double v) throws VisADException, RemoteException
f
- is the input FlatFieldlist
- is the int[] list of indecies into f to replacev
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replaceMissing(FlatField f, double v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replace(FlatField f, double v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replace(FlatField f, Real v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static FlatField mask(FlatField f, String op, double v) throws VisADException, RemoteException
f
- VisAD data object (FlatField) as sourceop
- Comparison operator as string ('gt','le',...)v
- Numeric operand for comparison
VisADException
RemoteException
public static FlatField rescale(FlatField f, double inlo, double inhi, double outlo, double outhi) throws VisADException, RemoteException
f
- the FlatFieldinlo
- the input low-range valueinhi
- the input high-range valueoutlo
- the output low-range valueouthi
- the output high range value
Values of the original FlatField will be linearly
scaled from "inlo:inhi" to "outlo:outhi"
Values < inlo will be set to outlo; values > inhi set to outhi
VisADException
RemoteException
public static FlatField mask(Data f, String op, Data v) throws VisADException, RemoteException
f
- VisAD data object (usually FlatField) as sourceop
- Comparison operator as string ('gt','le',...)v
- VisAd operand for comparison.
If the value of 'v' is a Field, then it will be resampled
to the domain of 'f' is possible before the comparison.
VisADException
RemoteException
public static int[] find(FlatField f, String op, double v) throws VisADException, RemoteException
f
- VisAD data object (FlatField) as sourceop
- Comparison operator as string ('gt','le',...)v
- Numeric operand for comparison
VisADException
RemoteException
public static int[] find(Data f, String op, Data v) throws VisADException, RemoteException
f
- VisAD data object (usually FlatField) as sourceop
- Comparison operator as string ('gt','le',...)v
- VisAd operand for comparison.
VisADException
RemoteException
public static Field resample(Field data, Set s) throws VisADException, RemoteException
data
- is the input Fields
- is the Set which must have a domain MathType identical
to data's original
VisADException
RemoteException
public static double getValue(Real r)
r
- is the Real
public static double[][] getValues(Field data) throws VisADException, RemoteException
data
- is the Field from which to get the numeric values
VisADException
RemoteException
public static Field combine(Field[] fields) throws VisADException, RemoteException
fields[]
- array of fields
VisADException
RemoteException
public static Field extract(Field data, MathType t) throws VisADException, RemoteException
data
- the field with multiple range componenentst
- the MathType of the field to extract
VisADException
RemoteException
public static Field extract(Field data, String s) throws VisADException, RemoteException
data
- the field with multiple range componenentss
- the name of the components to extract
VisADException
RemoteException
public static Field extract(Field data, int comp) throws VisADException, RemoteException
data
- the field with multiple range componenentscomp
- the index of the component to extract
VisADException
RemoteException
public static Field domainFactor(Field data, RealType factor) throws VisADException, RemoteException
factor
- is the domain component Type to factor out
VisADException
RemoteException
public static Field domainFactor(Field data, int comp) throws VisADException, RemoteException
VisADException
RemoteException
public static Data evaluate(Field data, Real domain) throws VisADException, RemoteException
data
- is the fielddomain
- is the Real domain where the field should be evaluated
VisADException
RemoteException
public static Data evaluate(Field data, double domain) throws VisADException, RemoteException
VisADException
RemoteException
public static MathType makeType(String s) throws VisADException, RemoteException
s
- is the string describing the names in
the form: (x,y)->(a) for a Field.
Forms allowed:
"Foo" will make and return a RealType
"(Foo)" makes a RealType and returns a RealTupleType
"Foo,Bar" will make two RealTypes and return a RealTupleType
"(Foo,Bar)" does the same thing
"(Foo,Bar)->val" makes 3 RealTypes and returns a FunctionType
(use getDomainType(type) and getRangeType(type) to get the parts
VisADException
RemoteException
public static RealTupleType makeType(String[] s, CoordinateSystem c) throws VisADException, RemoteException
s
- is an array of names for (or of) the RealTypec
- is a CoordinateSystem
VisADException
RemoteException
public static RealType makeRealType(String name)
name
- is the name of the RealType type.public static RealType getRealType(String name)
public static RealType makeRealType(String name, Unit u)
name
- is the name of the RealType type.unit
- is the new Unit to associate with this (must
be compatible with any existing Unit)public static RealType getRealType(String name, Unit u)
public static MathType getType(Data data) throws VisADException, RemoteException
data
- is the VisAD Data object
VisADException
RemoteException
public static void showAxesScales(DisplayImpl d, boolean on) throws VisADException, RemoteException
d
- the DisplayImpl to addressonoff
- whether to turn the axes labels on (true)
VisADException
RemoteException
public static void setAxesScalesLabel(ScalarMap[] sm, String[] labels) throws VisADException, RemoteException
sm
- the array of ScalarMapslabels
- the array of strings to use for labels
VisADException
RemoteException
public static void setAxesScalesFont(ScalarMap[] sm, Font f) throws VisADException, RemoteException
sm
- the array of ScalarMapsf
- the java.awt.Font to use
VisADException
RemoteException
public static UnionSet makePairedLines(MathType mt, double[][] points) throws VisADException, RemoteException
VisADException
RemoteException
public static void dumpTypes(Data d) throws VisADException, RemoteException
d
- is the Data object
VisADException
RemoteException
public static void dumpType(Data d) throws VisADException, RemoteException
VisADException
RemoteException
public static PointDataAdapter getPointDataAdapter(String request) throws VisADException, RemoteException
VisADException
RemoteException
public static Data getNetcdfData(String filename) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
public static Data getNetcdfData(String filename, String factor) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
public static double[][] getScale(ScalarMap smap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |