|
|||||||||
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.
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 |
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(java.lang.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)
|
static java.lang.String |
domainType(Data data,
int comp)
get the name of the given component of the domain RealType. |
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,
java.lang.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,
java.lang.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,
java.lang.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(java.lang.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(java.lang.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(java.lang.String dom0,
java.lang.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(java.lang.String dom0,
java.lang.String dom1,
java.lang.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 Data |
floor(Data data)
return pointwise floor value of data (largest integer not greater than) |
static Set |
getDomain(Data data)
|
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 RealTupleType |
getDomainType(Data data)
get the domain Type for the field |
static RealTupleType |
getDomainType(FunctionType type)
get the domain Type for the FunctionType |
static PointDataAdapter |
getPointDataAdapter(java.lang.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(java.lang.String name)
|
static RealType |
getRealType(java.lang.String name,
Unit u)
|
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(java.lang.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 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 Linear1DSet |
makeDomain(java.lang.String name,
double first,
double last,
int length)
create a Linear1DSet for domain samples |
static Linear2DSet |
makeDomain(java.lang.String name,
double first1,
double last1,
int length1,
double first2,
double last2,
int length2)
create a Linear2DSet for domain samples |
static Linear3DSet |
makeDomain(java.lang.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 RealType |
makeRealType(java.lang.String name)
make or get the RealType corresponding to the name; if none exists, make one and return it. |
static RealType |
makeRealType(java.lang.String name,
Unit u)
make or get the RealType corresponding to the name; if none exists, make one and return it. |
static MathType |
makeType(java.lang.String s)
creates a VisAD MathType from the given string |
static Unit |
makeUnit(java.lang.String name)
get a VisAD Unit from the name given |
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)
Displays the given data onscreen. |
static void |
plot(DataImpl data,
boolean editMaps)
Displays the given data onscreen, displaying the edit mappings dialog if specified. |
static void |
plot(DataImpl data,
double red,
double green,
double blue)
Displays the given data onscreen, using given color default. |
static void |
plot(DataImpl data,
ScalarMap[] maps)
Displays the given data onscreen. |
static void |
plot(java.lang.String name,
DataImpl data)
Displays the given data onscreen. |
static void |
plot(java.lang.String name,
DataImpl 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(java.lang.String namxe,
DataImpl 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(java.lang.String namxe,
DataImpl data,
boolean editMaps,
double red,
double green,
double blue,
ScalarMap[] maps)
|
static void |
plot(java.lang.String name,
DataImpl 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)
|
static MathType |
rangeType(Data data)
|
static java.lang.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 Field |
resample(Field data,
Set s)
resample the data field into the defined domain set |
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 void |
saveplot(DisplayImpl disp,
java.lang.String filename)
save the display genreated by a quick graph or showDisplay |
static void |
saveplot(java.lang.String filename)
save the onscreen data display generated by plot() |
static void |
saveplot(java.lang.String name,
java.lang.String filename)
clear the onscreen data display with the given name |
static void |
setAxesScalesFont(ScalarMap[] sm,
java.awt.Font f)
Set the font to be used for the axes labels and scales |
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 |
Constructor Detail |
---|
public JPythonMethods()
Method Detail |
---|
public static DataImpl load(java.lang.String location) throws VisADException
VisADException
public static void plot(DataImpl data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object to plot
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(DataImpl data, ScalarMap[] maps) throws VisADException, java.rmi.RemoteException
data
- VisAD data object to plotmaps
- ScalarMaps for the display
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(DataImpl data, boolean editMaps) throws VisADException, java.rmi.RemoteException
data
- VisAD data object to ploteditMaps
- whether to initially display edit mappings dialog
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(java.lang.String name, DataImpl data) throws VisADException, java.rmi.RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plot
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(java.lang.String name, DataImpl data, ScalarMap[] maps) throws VisADException, java.rmi.RemoteException
name
- name of display in which to plot datadata
- VisAD data object to plotmaps
- ScalarMaps for display
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(java.lang.String name, DataImpl data, boolean editMaps) throws VisADException, java.rmi.RemoteException
name
- name of display in which to plot datadata
- VisAD data object to ploteditMaps
- whether to initially display edit mappings dialog
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(DataImpl data, double red, double green, double blue) throws VisADException, java.rmi.RemoteException
data
- VisAD data object to plotred
- 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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(java.lang.String namxe, DataImpl data, boolean editMaps, double red, double green, double blue) throws VisADException, java.rmi.RemoteException
name
- name of display in which to plot datadata
- VisAD data object to ploteditMaps
- 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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void plot(java.lang.String namxe, DataImpl data, boolean editMaps, double red, double green, double blue, ScalarMap[] maps) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static void clearplot() throws VisADException, java.rmi.RemoteException
VisADException
- part of data and display APIs, shouldn't occur
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void clearplot(java.lang.String name) throws VisADException, java.rmi.RemoteException
name
- name of the display to clear
VisADException
- part of data and display APIs, shouldn't occur
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static void saveplot(DisplayImpl disp, java.lang.String filename) throws VisADException, java.rmi.RemoteException, java.io.IOException
disp
- is the DisplayImpl to savefilename
- is the name of the JPG file to write
VisADException
java.rmi.RemoteException
java.io.IOException
public static void saveplot(java.lang.String filename) throws VisADException, java.rmi.RemoteException, java.io.IOException
VisADException
- part of data and display APIs, shouldn't occur
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.io.IOException
public static void saveplot(java.lang.String name, java.lang.String filename) throws VisADException, java.rmi.RemoteException, java.io.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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.io.IOException
- part of data and display APIs, shouldn't occurpublic static Data abs_data(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data acos(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data acosDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data asin(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data asinDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atanDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data ceil(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data cos(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data cosDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data exp(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data floor(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data log(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data rint(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data round(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data sin(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data sinDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data sqrt(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data tan(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data tanDegrees(Data data) throws VisADException, java.rmi.RemoteException
data
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data max_data(Data data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data min_data(Data data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2(Data data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2Degrees(Data data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data max_data(Data data1, double data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data min_data(Data data1, double data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2(Data data1, double data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2Degrees(Data data1, double data2) throws VisADException, java.rmi.RemoteException
data1
- VisAD data objectdata2
- double value
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data max_data(double data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data min_data(double data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2(double data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static Data atan2Degrees(double data1, Data data2) throws VisADException, java.rmi.RemoteException
data1
- double valuedata2
- VisAD data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote datapublic static FlatField fft(Field field) throws VisADException, java.rmi.RemoteException
field
- VisAD Field data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote fieldpublic static FlatField ifft(Field field) throws VisADException, java.rmi.RemoteException
field
- VisAD Field data object
VisADException
- invalid data
java.rmi.RemoteException
- unable to access remote fieldpublic static JamaMatrix matrixMultiply(FlatField data1, FlatField data2) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data1
- VisAD FlatField data objectdata2
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaMatrix solve(FlatField data1, FlatField data2) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data1
- VisAD FlatField data objectdata2
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaMatrix inverse(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaMatrix transpose(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double det(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double norm1(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double norm2(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double normInf(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double normF(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double rank(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double cond(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static double trace(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaCholeskyDecomposition chol(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaEigenvalueDecomposition eig(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaLUDecomposition lu(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaQRDecomposition qr(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static JamaSingularValueDecomposition svd(FlatField data) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
data
- VisAD FlatField data object
VisADException
- invalid data
java.rmi.RemoteException
- part of data and display APIs, shouldn't occur
java.lang.IllegalAccessException
- Jama not installed
java.lang.InstantiationException
- Jama not installed
java.lang.reflect.InvocationTargetException
- Jama not installedpublic static FlatField hist(Field field, Set set) throws VisADException, java.rmi.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
java.rmi.RemoteException
- unable to access remote fieldpublic static FlatField hist(Field field, int[] ranges) throws VisADException, java.rmi.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
java.rmi.RemoteException
- unable to access remote fieldpublic static FlatField hist(Field field, int[] ranges, int[] sizes) throws VisADException, java.rmi.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
java.rmi.RemoteException
- unable to access remote fieldpublic static FlatField field(float[] values) throws VisADException, java.rmi.RemoteException
values
- float[] array defining range values of field
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(java.lang.String name, float[] values) throws VisADException, java.rmi.RemoteException
name
- String defining range RealType namevalues
- float[] array defining range values of field
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(java.lang.String dom0, java.lang.String name, float[] values) throws VisADException, java.rmi.RemoteException
dom0
- String defining domain RealType namename
- String defining range RealType namevalues
- float[] array defining range values of field
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(Set set, java.lang.String name, float[] values) throws VisADException, java.rmi.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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(float[][] values) throws VisADException, java.rmi.RemoteException
values
- float[][] array defining range values of field
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(java.lang.String name, float[][] values) throws VisADException, java.rmi.RemoteException
name
- String defining range RealType namevalues
- float[][] array defining range values of field
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(java.lang.String dom0, java.lang.String dom1, java.lang.String rng, float[][] values) throws VisADException, java.rmi.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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField field(Set set, java.lang.String name, float[][] values) throws VisADException, java.rmi.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
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static int getDomainDimension(Data data) throws VisADException, java.rmi.RemoteException
Data
- VisAD Data object
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static int domainDimension(Data data) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static int getRangeDimension(Data data) throws VisADException, java.rmi.RemoteException
Data
- VisAD Data object
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static int rangeDimension(Data data) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static RealTupleType getDomainType(Data data) throws VisADException, java.rmi.RemoteException
data
- is the field to get the domain Type for
VisADException
java.rmi.RemoteException
public static RealTupleType domainType(Data data) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static RealTupleType getDomainType(FunctionType type) throws VisADException, java.rmi.RemoteException
type
- is the FunctionType
VisADException
java.rmi.RemoteException
public static MathType getRangeType(Data data) throws VisADException, java.rmi.RemoteException
data
- is the field to get the range Type for
VisADException
java.rmi.RemoteException
public static MathType rangeType(Data data) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static MathType getRangeType(FunctionType type) throws VisADException, java.rmi.RemoteException
type
- is the FunctionType
VisADException
java.rmi.RemoteException
public static java.lang.String domainType(Data data, int comp) throws VisADException, java.rmi.RemoteException
Data
- VisAD Data objectcomp
- the domain component index (0...)
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static java.lang.String rangeType(Data data, int comp) throws VisADException, java.rmi.RemoteException
Data
- VisAD Data objectcomp
- the component index (0...)
VisADException
- unable to construct field
java.rmi.RemoteException
- part of data and display APIs, shouldn't occurpublic static Unit makeUnit(java.lang.String name) throws NoSuchUnitException, ParseException
name
- name of unit desired (degC, etc)
NoSuchUnitException
ParseException
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(java.lang.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(java.lang.String name, double first1, double last1, int length1, double first2, double last2, int length2) throws VisADException, java.rmi.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
java.rmi.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(java.lang.String name, double first1, double last1, int length1, double first2, double last2, int length2, double first3, double last3, int length3) throws VisADException, java.rmi.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
java.rmi.RemoteException
public static Set getDomainSet(Data data) throws VisADException, java.rmi.RemoteException
data
- is the VisAD data object
VisADException
java.rmi.RemoteException
public static Set getDomain(Data data) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static Field resample(Field data, Set s) throws VisADException, java.rmi.RemoteException
data
- is the input Fields
- is the Set which must have a domain MathType identical
to data's original
VisADException
java.rmi.RemoteException
public static double getValue(Real r)
r
- is the Real
public static double[][] getValues(Field data) throws VisADException, java.rmi.RemoteException
data
- is the Field from which to get the numeric values
VisADException
java.rmi.RemoteException
public static Field combine(Field[] fields) throws VisADException, java.rmi.RemoteException
fields[]
- array of fields
VisADException
java.rmi.RemoteException
public static Field extract(Field data, MathType t) throws VisADException, java.rmi.RemoteException
data
- the field with multiple range componenentst
- the MathType of the field to extract
VisADException
java.rmi.RemoteException
public static Field extract(Field data, java.lang.String s) throws VisADException, java.rmi.RemoteException
data
- the field with multiple range componenentss
- the name of the components to extract
VisADException
java.rmi.RemoteException
public static Field extract(Field data, int comp) throws VisADException, java.rmi.RemoteException
data
- the field with multiple range componenentscomp
- the index of the component to extract
VisADException
java.rmi.RemoteException
public static Field domainFactor(Field data, RealType factor) throws VisADException, java.rmi.RemoteException
factor
- is the domain component Type to factor out
VisADException
java.rmi.RemoteException
public static Field domainFactor(Field data, int comp) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static Data evaluate(Field data, Real domain) throws VisADException, java.rmi.RemoteException
data
- is the fielddomain
- is the Real domain where the field should be evaluated
VisADException
java.rmi.RemoteException
public static Data evaluate(Field data, double domain) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static MathType makeType(java.lang.String s) throws VisADException, java.rmi.RemoteException
s
- is the string describing the names in
the form: (x,y)->(a) for a Field.
It can be as simple as "foo" for a single RealType.
VisADException
java.rmi.RemoteException
public static RealType makeRealType(java.lang.String name)
name
- is the name of the RealType type.public static RealType getRealType(java.lang.String name)
public static RealType makeRealType(java.lang.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(java.lang.String name, Unit u)
public static MathType getType(Data data) throws VisADException, java.rmi.RemoteException
data
- is the VisAD Data object
VisADException
java.rmi.RemoteException
public static void showAxesScales(DisplayImpl d, boolean on) throws VisADException, java.rmi.RemoteException
d
- the DisplayImpl to addressonoff
- whether to turn the axes labels on (true)
VisADException
java.rmi.RemoteException
public static void setAxesScalesFont(ScalarMap[] sm, java.awt.Font f) throws VisADException, java.rmi.RemoteException
sm
- the array of ScalarMapsf
- the java.awt.Font to use
VisADException
java.rmi.RemoteException
public static void dumpTypes(Data d) throws VisADException, java.rmi.RemoteException
d
- is the Data object
VisADException
java.rmi.RemoteException
public static PointDataAdapter getPointDataAdapter(java.lang.String request) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |