|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.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 point-wise absolute value of data name changed 1/11/02 to avoid conflicts with Jython built-in |
static Data |
abs(Data data)
Deprecated. Consider using abs_data(Data) instead. |
static double |
abs(double value)
Deprecated. Consider using Jython's builtin function or Math.abs(double) . |
static int |
abs(int value)
Deprecated. Consider using Jython's builtin function or Math.abs(int) . |
static long |
abs(long value)
Deprecated. Consider using Jython's builtin function or Math.abs(long) . |
static Data |
acos(Data data)
Return point-wise arccosine value of data , in radians. |
static Data |
acosDegrees(Data data)
return point-wise arccosine value of data, in degrees. |
static Data |
asin(Data data)
return point-wise arcsine value of data , in radians |
static Data |
asinDegrees(Data data)
return point-wise arcsine value of data , in degrees. |
static Data |
atan(Data data)
return point-wise arctangent value of data , in radians. |
static Data |
atan2(Data data1,
Data data2)
return point-wise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2(Data data1,
double data2)
Return point-wise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2(double data1,
Data data2)
Return point-wise arctangent value of data1 / data2 over full (-pi, pi) range, returned in radians. |
static Data |
atan2Degrees(Data data1,
Data data2)
return point-wise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atan2Degrees(Data data1,
double data2)
Return point-wise arc tangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atan2Degrees(double data1,
Data data2)
Return point-wise arctangent value of data1 / data2 over full (-pi, pi) range, returned in degrees. |
static Data |
atanDegrees(Data data)
return point-wise arctangent value of data , in degrees. |
static Data |
ceil(Data data)
return point-wise 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 |
computeAverage(FlatField f,
int[] list)
Compute the average of each point named in the list (see "createArea" method) |
static double |
computeSum(FlatField f,
int[] list)
Sum up the values of each point named in the list (see "createAreaField" method) |
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 point-wise cosine 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 point-wise cosine 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 FlatField |
createAreaField(FieldImpl f)
construct a Field containing the computed area of each data point |
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)
Get the domain dimension of the Data object |
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 Data object |
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. |
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 point-wise 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(FieldImpl f,
String op,
double v)
Get a list of points where a comparison is true. |
static int[] |
findOutsideRange(FieldImpl f,
double vmin,
double vmax)
Get a list of points where values fall outside the given range |
static int[] |
findWithinRange(FieldImpl f,
double vmin,
double vmax)
Get a list of points where values fall within the given range |
static Data |
floor(Data data)
return point-wise 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 from a given 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 Data object |
static RealTupleType |
getDomainType(FunctionType type)
Get the domain Type for the FunctionType |
static float[][] |
getEarthLocationPoints(GriddedSet domain)
Convert the domain to the reference earth located points |
static float[][] |
getLatLons(GriddedSet domain)
Convert the domain to the reference earth located points. |
static float[][] |
getLatLons(GriddedSet domain,
int[] index)
Convert the domain to the reference earth located points. |
static float[][][] |
getLatLons2D(GriddedSet domain)
Convert the domain to the reference earth located points. |
static double[] |
getMinMax(FieldImpl f)
Find the minium and maximum values of the FlatField or a sequence within a FieldImpl. |
static Data |
getNetcdfData(String filename)
Helper method to read netcdf files with possible factor |
static Data |
getNetcdfData(String filename,
String factor)
Try to create a Data object from a NetCDF file |
static PointDataAdapter |
getPointDataAdapter(String request)
Get a PointDataAdapter for the given string (file, url, etc) |
static int |
getRangeDimension(Data data)
Get the number of range components from a given 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)
Make or get the RealType corresponding to the name; if none exists, make one and return it. |
static RealType |
getRealType(String name,
Unit unit)
Make or get the RealType corresponding to the name; if none exists, make one and return it. |
static double[][] |
getScale(ScalarMap smap)
Helper method for ScalarMap.getScale(double[], double[], double[]) . |
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 int[] |
getValuesLengths(float[][] values)
Get the lengths of the values of the input array |
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 boolean |
isLatLonOrder(SampledSet spatialSet)
Check to see if this is a navigated domain (can be converted to lat/lon) |
static DataImpl |
load(String location)
Reads in data from the given location (filename or URL). |
static Data |
log(Data data)
return point-wise 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)
Construct a UnionSet of the given MathType for the pairs of points given |
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 unit)
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 FieldImpl |
mask(Data f,
String op,
Data v)
Mask out values outside testing limits... |
static FieldImpl |
mask(FieldImpl f,
String op,
Data v)
Mask out values outside testing limits in a FieldImpl |
static FieldImpl |
mask(FieldImpl f,
String op,
Data v,
boolean useNaN)
Mask out values outside testing limits in a FieldImpl |
static FieldImpl |
mask(FieldImpl f,
String op,
double v)
Mask out values outside testing limits in a FieldImpl |
static FieldImpl |
mask(FieldImpl f,
String op,
double v,
boolean useNaN)
Mask out values outside testing limits in a FieldImpl |
static FlatField |
maskNoNavigation(FieldImpl f)
Return a mask for points with navigation (1) or not (0) |
static FieldImpl |
maskOutsideRange(FieldImpl f,
double vmin,
double vmax,
boolean useNaN)
Mask out with 1.0's those values outside the given range; otherwise, set the values to zero or NaN. |
static FieldImpl |
maskWithinRange(FieldImpl f,
double vmin,
double vmax,
boolean useNaN)
Mask out with 1.0's those values inside the given range; set values outside the range with zero or NaN. |
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 point-wise maximum value of data1 and data2. |
static Data |
max_data(Data data1,
double data2)
Return point-wise maximum value of data1 and data2. |
static Data |
max_data(double data1,
Data data2)
Return point-wise maximum value of data1 and data2. |
static Data |
min_data(Data data1,
Data data2)
return point-wise 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 point-wise 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 point-wise minimum value of data1 and data2 . |
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 name,
DataImpl data,
boolean editMaps,
double red,
double green,
double blue)
|
static void |
plot(String name,
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 name,
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 name,
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(FieldImpl f,
double v)
Replaces all the values in a FlatField with the constant given |
static FlatField |
replace(FieldImpl f,
int[] list,
double v)
Replaces specified values in a FlatField with the constant given |
static FlatField |
replace(FieldImpl f,
int[] list,
Real v)
Replaces specified values in a FlatField with the constant given |
static FlatField |
replace(FieldImpl f,
Real v)
Replaces all the values in a FlatField with the constant given |
static FlatField |
replaceMissing(FieldImpl 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 Field |
resample(Field data,
Set s,
int mode)
resample the data field into the defined domain set |
static FieldImpl |
rescale(FieldImpl f,
double outlo,
double outhi)
Re-scale the values in a FieldImpl using auto-scaling |
static FieldImpl |
rescale(FieldImpl f,
double inlo,
double inhi,
double outlo,
double outhi)
Re-scale the values in a FieldIimpl |
static Data |
rint(Data data)
return point-wise rint value of data (closest integer) |
static Data |
round(Data data)
return point-wise round value of data (closest integer). |
static double |
round(double value)
Return round value of value (closest integer). |
static double |
round(double value,
int digits)
Return rounded value of value (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 FlatField |
setMissingNoNavigation(FieldImpl f)
For all non-navigatable points in the given FlatField, replace the FF's values with missing (Float.NaN). |
static FlatField |
setToMissing(FieldImpl f,
double v)
Replaces all the given values in a FlatField with the missing value (Float.NaN); |
static void |
setValues(Field f,
double[][] vals)
Sets the sample values into the Field |
static void |
showAxesScales(DisplayImpl d,
boolean on)
Turn on/off the axes labels & scales on a Display |
static Data |
sin(Data data)
return point-wise sine 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 point-wise sine 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 point-wise 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 point-wise 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 point-wise tangent 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 |
static ByteArrayOutputStream |
whatType(Data d)
helper method for dumpMathType() only This just dumps out the MathType of the Data object into a ByteArrayOutputStream which is returned. |
static ByteArrayOutputStream |
whatTypes(Data d)
helper method for the dump(Data|Math)Type() methods this will list both the MathType and DataType information to a ByteArrayOutputStream which is returned. |
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
location
-
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
data
- VisAD data object to plot; may also be
a float[] or float[][]
VisADException
RemoteException
public static void plot(DataImpl data) throws VisADException, RemoteException
data
- VisAD data object to plot; may also be
a float[] or float[][]
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
data
- VisAD data object to plot; may also be
a float[] or float[][]maps
- ScalarMaps for display
VisADException
RemoteException
public static void plot(DataImpl data, ScalarMap[] maps) throws VisADException, RemoteException
data
- VisAD data object to plot; may also be
a float[] or float[][]maps
- ScalarMaps for display
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
data
- VisAD data object to plot; may also be
a float[] or float[][]editMaps
- whether to initially display edit mappings dialog
VisADException
RemoteException
public static void plot(DataImpl 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
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
name
- name of display in which to plot datadata
- VisAD data object to plot; may also be
a float[] or float[][]
VisADException
RemoteException
public static void plot(String name, DataImpl 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
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
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
RemoteException
public static void plot(String name, DataImpl 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
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
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
RemoteException
public static void plot(String name, DataImpl 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
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
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
RemoteException
public static void plot(DataImpl 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
RemoteException
public static void plot(String name, 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 name, 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
RemoteException
public static void plot(String name, DataImpl 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
RemoteException
public static void plot(String name, DataImpl data, boolean editMaps, double red, double green, double blue, 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[][]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 colormaps
- ScalarMaps for display
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
fn
- d
-
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
filename
- 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
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 data@Deprecated public static Data abs(Data data) throws VisADException, RemoteException
abs_data(Data)
instead.
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote data@Deprecated public static double abs(double value)
Math.abs(double)
.
value
- value
value
.@Deprecated public static int abs(int value)
Math.abs(int)
.
value
- value
value
.@Deprecated public static long abs(long value)
Math.abs(long)
.
value
- value
value
.public static Data acos(Data data) throws VisADException, RemoteException
data
, in radians.
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
, in radians
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data asinDegrees(Data data) throws VisADException, RemoteException
data
, in degrees.
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atan(Data data) throws VisADException, RemoteException
data
, in radians.
data
- VisAD data object
data
, as radians.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data atanDegrees(Data data) throws VisADException, RemoteException
data
, in degrees.
data
- VisAD data object
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data ceil(Data data) throws VisADException, RemoteException
data
(smallest integer not less than).
data
- VisAD data object
data
.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data cos(Data data) throws VisADException, RemoteException
data
, assuming input values are
in radians unless they have units convertable with radians, in which case
those units are converted to radians
data
- VisAD data object
data
as radians.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data cosDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
as degrees.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data exp(Data data) throws VisADException, RemoteException
data
.
data
- VisAD data object
data
.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data floor(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data log(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data rint(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data round(Data data) throws VisADException, RemoteException
data
(closest integer).
data
- VisAD data object
data
.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static double round(double value, int digits)
value
(closest integer).
value
- valuedigits
- Length of the fractional part of the result.
value
.public static double round(double value)
value
(closest integer).
value
- Value to round to closest integer.
value
.round(double, int)
public 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
data
.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data tan(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
, as radians.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data tanDegrees(Data data) throws VisADException, RemoteException
data
- VisAD data object
data
, as degrees.
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
data1 / data2
over full
(-pi, pi)
range, as radians.
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
data1 / data2
over full
(-pi, pi)
range, as degrees.
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
data1 / data2
over full
(-pi, pi)
range, as radians.
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
data1 / data2
over full
(-pi, pi)
range, as degrees.
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
data1
and data2
.
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
data1
and data2
.
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
data1
and data2
.
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
data1
and data2
.
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
data1
and data2
.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static Data min_data(double data1, Data data2) throws VisADException, RemoteException
data1
and data2
.
name changed 1/11/02 to avoid conflicts with Jython built-in
data1
- double valuedata2
- VisAD data object
data1
and data2
.
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
data1 / data2
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
data1 / data2
over full
(-pi, pi)
range, as degrees.
VisADException
- invalid data
RemoteException
- unable to access remote datapublic static FlatField fft(Field field) throws VisADException, RemoteException
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
field
- VisAD Field data object
field
.
VisADException
- invalid data
RemoteException
- unable to access remote fieldpublic static FlatField ifft(Field field) throws VisADException, RemoteException
field
- VisAD Field data object
field
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
data1 x data2
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
X of: data1 * X = data2
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
data
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
field
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
field
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
field
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 componentrng
- 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[] getValuesLengths(float[][] values) throws VisADException
values
-
VisADException
public 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
data
-
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
data
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
data
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
RemoteException
VisADException
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 (Field or Set or Tuple; Scalars return 1.
VisADException
- unable to construct field
RemoteException
- part of data and display APIs, shouldn't occurpublic static FlatField replace(FieldImpl 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.
RemoteException
VisADException
public static FlatField replace(FieldImpl 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 maskNoNavigation(FieldImpl f) throws VisADException, RemoteException
f
- is the input FieldImpl -- if not a FlatField, then try to
get one!
VisADException
RemoteException
public static FlatField setMissingNoNavigation(FieldImpl f) throws VisADException, RemoteException
f
- is the input FieldImpl -- if not a FlatField, then try to
get one!
VisADException
RemoteException
public static FlatField setToMissing(FieldImpl f, double v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to replace with NaN.
VisADException
RemoteException
public static FlatField replaceMissing(FieldImpl f, double v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replace(FieldImpl f, double v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static FlatField replace(FieldImpl f, Real v) throws VisADException, RemoteException
f
- is the input FlatFieldv
- is the value to insert into f.
VisADException
RemoteException
public static double[] getMinMax(FieldImpl f) throws VisADException, RemoteException
f
- the FlatField (or FieldImpl - for a sequence)
VisADException
RemoteException
public static FieldImpl rescale(FieldImpl f, double outlo, double outhi) throws VisADException, RemoteException
f
- the FlatField (or FieldImpl sequence)outlo
- the output low-range valueouthi
- the output high range value
Values of the original field will be linearly
scaled from their "min:max" to "outlo:outhi"
If input FieldImpl is a sequence, then all items in sequence are done
but the "min" and "max" are computed from all members of the sequence!
VisADException
RemoteException
public static FieldImpl rescale(FieldImpl f, double inlo, double inhi, double outlo, double outhi) throws VisADException, RemoteException
f
- the FieldImpl or 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 field will be linearly
scaled from "inlo:inhi" to "outlo:outhi"
Values < inlo will be set to outlo; values > inhi set to outhi
If input FieldImpl is a sequence, then all items in sequence are done
VisADException
RemoteException
public static float[][] getLatLons(GriddedSet domain, int[] index) throws VisADException
domain
- the domain setindex
- is the (optional) array of indecies to get points at
VisADException
- problem converting pointspublic static float[][] getLatLons(GriddedSet domain) throws VisADException
domain
- the domain set
VisADException
- problem converting pointspublic static float[][][] getLatLons2D(GriddedSet domain) throws VisADException
domain
- the domain set
VisADException
- problem converting pointspublic static float[][] getEarthLocationPoints(GriddedSet domain) throws VisADException
domain
- the domain set
VisADException
- problem converting points
by Don Murraypublic static boolean isLatLonOrder(SampledSet spatialSet) throws VisADException
spatialSet
- spatial domain of the grid
VisADException
- can't get at VisAD objects
by Don Murraypublic static FlatField createAreaField(FieldImpl f) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as source
VisADException
RemoteException
public static double computeSum(FlatField f, int[] list) throws VisADException, RemoteException
f
- VisAD FlatField containing the values to be summed at each pointlist
- an array of points to be used to sum up the values
(see the "find" method)
VisADException
RemoteException
public static double computeAverage(FlatField f, int[] list) throws VisADException, RemoteException
f
- VisAD FlatField containing the values to be averaged at each pointlist
- an array of points to be used to compute the average values
(see the "find" method)
VisADException
RemoteException
public static FieldImpl mask(FieldImpl f, String op, double v) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourceop
- Comparison operator as string ('gt','le',...)v
- Numeric operand for comparison
VisADException
RemoteException
public static FieldImpl mask(FieldImpl f, String op, double v, boolean useNaN) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourceop
- Comparison operator as string ('gt','le',...)v
- Numeric operand for comparisonuseNaN
- if true, then NaN is used instead of zero for result.
VisADException
RemoteException
public static FieldImpl mask(Data f, String op, Data v) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourceop
- Comparison operator as string ('gt','le',...)v
- Numeric operand for comparison
VisADException
RemoteException
public static FieldImpl mask(FieldImpl f, String op, Data v) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) 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 FieldImpl mask(FieldImpl f, String op, Data v, boolean useNaN) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourceop
- Comparison operator as string ('gt','le',...)v
- VisAd operand for comparison.useNaN
- if true, then NaN will be used for "false"
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 FieldImpl maskWithinRange(FieldImpl f, double vmin, double vmax, boolean useNaN) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourcevmin
- The lower limit of the rangevmax
- The upper limit of the rangeuseNaN
- Set to true to use NaN as the "outside the range" value; otherwise, use zero.
The range is exclusive; that is if vmin < values < vmax then 1.0
is returned.
VisADException
RemoteException
public static FieldImpl maskOutsideRange(FieldImpl f, double vmin, double vmax, boolean useNaN) throws VisADException, RemoteException
f
- VisAD data object (FlatField or FieldImpl) as sourcevmin
- The lower limit of the rangevmax
- The upper limit of the rangeuseNaN
- Set to true to use NaN as the "not outside the range" value; otherwise, use zero.
The range is exclusive; that is for values < vmin or values > vmax,
the returned value will be 1.0.
VisADException
RemoteException
public static int[] find(FieldImpl 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 int[] findWithinRange(FieldImpl f, double vmin, double vmax) throws VisADException, RemoteException
f
- VisAD data object (usually FlatField) as sourcevmin
- The minimum value for the rangevmax
- The maximum value for the range
VisADException
RemoteException
public static int[] findOutsideRange(FieldImpl f, double vmin, double vmax) throws VisADException, RemoteException
f
- VisAD data object (usually FlatField) as sourcevmin
- The minimum value for the rangevmax
- The maximum value for the range
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 Field resample(Field data, Set s, int mode) throws VisADException, RemoteException
data
- is the input Fields
- is the Set which must have a domain MathType identical
to data's originalmode
- is the sampling mode (e.g. Data.NEAREST_NEIGHBOR)
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 void setValues(Field f, double[][] vals) throws VisADException, RemoteException
f
- is the Field to put the samples intovals
- are the values for all range components in the Field
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
For example, if the data has a
MathType: (Line, Element)->(value)
then factoring out Element
creates a new data
object with a MathType: Element->(Line->(value))
data
- is the Field Data objectfactor
- is the domain component Type to factor out
VisADException
RemoteException
public static Field domainFactor(Field data, int comp) throws VisADException, RemoteException
data
- is the Field Data objectcomp
- is the domain component index
VisADException
RemoteException
domainFactor(Field, RealType)
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
data
- is the fielddomain
- is the Real domain where the field should be evaluated
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,Bar)->val"
makes 3 RealTypes and returns a FunctionType
(use getDomainType(type) and getRangeType(type) to get the partsVisADException
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)
name
- is the name of the RealType type.
public static RealType makeRealType(String name, Unit unit)
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 unit)
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 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 addresson
- 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
mt
- the MathType for the UnionSetpoints
- the point paris to use
VisADException
RemoteException
public static void dumpTypes(Data d) throws VisADException, RemoteException
d
- is the Data object
VisADException
RemoteException
public static ByteArrayOutputStream whatTypes(Data d) throws VisADException, RemoteException
d
- is the Data object
VisADException
RemoteException
public static void dumpType(Data d) throws VisADException, RemoteException
d
- is the Data object
VisADException
RemoteException
public static ByteArrayOutputStream whatType(Data d) throws VisADException, RemoteException
d
- is the Data object
VisADException
RemoteException
public static PointDataAdapter getPointDataAdapter(String request) throws VisADException, RemoteException
request
-
VisADException
RemoteException
public static Data getNetcdfData(String filename) throws VisADException, RemoteException, IOException
filename
-
VisADException
RemoteException
IOException
public static Data getNetcdfData(String filename, String factor) throws VisADException, RemoteException, IOException
filename
- factor
-
VisADException
RemoteException
IOException
public static double[][] getScale(ScalarMap smap)
ScalarMap.getScale(double[], double[], double[])
.
smap
- the ScalarMap to get the values from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |