public abstract class SampledSet extends SimpleSet implements SampledSetIface
getSamples(boolean) for an exception).DataImpl.SyncherABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE| Constructor and Description |
|---|
SampledSet(MathType type) |
SampledSet(MathType type,
CoordinateSystem coord_sys,
Unit[] units,
ErrorEstimate[] errors) |
SampledSet(MathType type,
int manifold_dimension) |
SampledSet(MathType type,
int manifold_dimension,
CoordinateSystem coord_sys,
Unit[] units,
ErrorEstimate[] errors) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones this instance.
|
DataShadow |
computeRanges(ShadowType type,
DataShadow shadow)
Recursive version of computeRanges(), called down through
Data object tree.
|
DataShadow |
computeRanges(ShadowType type,
DataShadow shadow,
double[][] ranges,
boolean domain)
this default does not set ranges - it is used by FloatSet and
DoubleSet
|
void |
cram_missing(boolean[] range_select) |
void |
finalize() |
float[] |
getHi()
Returns the maximum sample values.
|
float[] |
getLow()
Returns the minimum sample values.
|
protected float[][] |
getMySamples() |
void |
getNeighbors(int[][] neighbors,
float[][] weights) |
float[][] |
getSamples()
Returns a copy of the samples of this instance.
|
float[][] |
getSamples(boolean copy)
Returns the samples of this instance or a copy of the samples.
|
boolean |
isMissing() |
VisADGeometryArray |
make1DGeometry(byte[][] color_values)
create a 1-D GeometryArray from this Set and color_values;
only used by Irregular3DSet and Gridded3DSet
|
VisADGeometryArray[] |
make3DGeometry(byte[][] color_values)
create a 3-D GeometryArray from this Set and color_values;
NOTE - this version only makes points;
NOTE - when textures are supported by Java3D the Gridded3DSet
implementation of make3DGeometry should use Texture3D, and
the Irregular3DSet implementation should resample to a
Gridded3DSet and use Texture3D;
only used by Irregular3DSet and Gridded3DSet
|
VisADGeometryArray |
makePointGeometry(byte[][] color_values)
create a PointArray from this Set and color_values;
can be applied to ManifoldDimension = 1, 2 or 3
|
static void |
setCacheSizeThreshold(int threshold) |
static void |
setGeometryArray(VisADGeometryArray array,
float[][] samples,
int color_length,
byte[][] color_values)
copy and transpose samples and color_values into array;
if color_length == 3 don't use color_values[3]
|
void |
setGeometryArray(VisADGeometryArray array,
int color_length,
byte[][] color_values)
copy and transpose Samples (from this Set( and color_values
into array; if color_length == 3 don't use color_values[3]
|
protected void |
setMySamples(float[][] samples) |
getManifoldDimension, valueToInterp__getitem__, __len__, addEqualsCache, addNotEqualsCache, cloneButType, copyDoubles, copyFloats, doubleToFloat, doubleToIndex, equals, equalUnitAndCS, floatToDouble, getCoordinateSystem, getDimension, getDoubles, getDoubles, getLength, getNeighbors, getNeighbors, getSetErrors, getSetUnits, getWedge, indexToDouble, indexToValue, longString, longString, main, make2DGeometry, makeIsoLines, makeIsoSurface, makeSpatial, merge1DSets, testEqualsCache, testNotEqualsCache, unary, unitAndCSHashCode, valueToIndex__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __sub__, __sub__, abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, toString, unaryaddReference, removeReferencegetClass, hashCode, notify, notifyAll, wait, wait, waitvalueToInterpcloneButType, doubleToIndex, equals, equalUnitAndCS, getCoordinateSystem, getDimension, getDoubles, getDoubles, getLength, getManifoldDimension, getNeighbors, getNeighbors, getSetErrors, getSetUnits, getWedge, indexToDouble, indexToValue, make2DGeometry, makeIsoLines, makeIsoSurface, makeSpatial, merge1DSets, valueToIndexabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unaryaddReference, removeReferencepublic SampledSet(MathType type, int manifold_dimension) throws VisADException
type - manifold_dimension - VisADExceptionpublic SampledSet(MathType type, int manifold_dimension, CoordinateSystem coord_sys, Unit[] units, ErrorEstimate[] errors) throws VisADException
type - manifold_dimension - coord_sys - units - errors - VisADExceptionpublic SampledSet(MathType type) throws VisADException
type - VisADExceptionpublic SampledSet(MathType type, CoordinateSystem coord_sys, Unit[] units, ErrorEstimate[] errors) throws VisADException
type - coord_sys - units - errors - VisADExceptionpublic void finalize()
throws Throwable
public static void setCacheSizeThreshold(int threshold)
threshold - protected void setMySamples(float[][] samples)
samples - protected float[][] getMySamples()
public void cram_missing(boolean[] range_select)
cram_missing in interface SetIfacecram_missing in class Setrange_select - public void getNeighbors(int[][] neighbors,
float[][] weights)
throws VisADException
getNeighbors in interface SetIfacegetNeighbors in class Setneighbors - weights - VisADExceptionpublic boolean isMissing()
public float[][] getSamples()
throws VisADException
Returns a copy of the samples of this instance. Element [i][j]
of the returned array is the j-th value of the
i-th component.
This method is equivalent to getSamples(true).
getSamples in interface SetIfacegetSamples in class SetVisADExceptiongetSamples(boolean)public float[][] getSamples(boolean copy)
throws VisADException
Returns the samples of this instance or a copy of the samples.
Note that, if the actual sample array is returned, then it is possible to modify the values of this instance -- breaking the immutability aspect of this class. Don't do this unless you enjoy debugging.
getSamples in interface SetIfacegetSamples in class Setcopy - Whether or not a copy of the sample array
should be returned.copy is
false; otherwise, a copy of the sample array.VisADExceptionpublic DataShadow computeRanges(ShadowType type, DataShadow shadow) throws VisADException
DatacomputeRanges in interface DatacomputeRanges in class Settype - shadow - VisADExceptionpublic DataShadow computeRanges(ShadowType type, DataShadow shadow, double[][] ranges, boolean domain) throws VisADException
SetcomputeRanges in class Settype - shadow - ranges - domain - VisADExceptionpublic VisADGeometryArray make1DGeometry(byte[][] color_values) throws VisADException
make1DGeometry in interface SetIfacemake1DGeometry in class Setcolor_values - VisADExceptionpublic VisADGeometryArray[] make3DGeometry(byte[][] color_values) throws VisADException
make3DGeometry in interface SetIfacemake3DGeometry in class Setcolor_values - VisADExceptionpublic VisADGeometryArray makePointGeometry(byte[][] color_values) throws VisADException
makePointGeometry in interface SetIfacemakePointGeometry in class Setcolor_values - VisADExceptionpublic void setGeometryArray(VisADGeometryArray array, int color_length, byte[][] color_values) throws VisADException
array - color_length - color_values - VisADExceptionpublic static void setGeometryArray(VisADGeometryArray array, float[][] samples, int color_length, byte[][] color_values) throws VisADException
array - samples - color_length - color_values - VisADExceptionpublic float[] getLow()
SampledSetIfacegetLow in interface SampledSetIfacepublic float[] getHi()
SampledSetIfacegetHi in interface SampledSetIfaceCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.