|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.ThingImpl
visad.DataImpl
visad.FunctionImpl
visad.FieldImpl
visad.FlatField
visad.data.FileFlatField
| Nested Class Summary |
| Nested classes inherited from class visad.DataImpl |
DataImpl.Syncher |
| Nested classes inherited from class visad.ThingImpl |
|
| Field Summary | |
(package private) FileAccessor |
fileAccessor
|
| Fields inherited from class visad.FlatField |
RangeCoordinateSystem, RangeCoordinateSystems, RangeUnits, TupleDimension |
| Fields inherited from class visad.FieldImpl |
|
| Fields inherited from class visad.DataImpl |
|
| Fields inherited from interface visad.Data |
ABS, 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 Summary | |
FileFlatField(FileAccessor accessor,
CacheStrategy strategy)
|
|
| Method Summary | |
Data |
adjustSamplingError(Data error,
int error_mode)
return a FlatField that clones this, except its ErrorEstimate-s are adjusted for sampling errors in error |
Data |
binary(Data data,
int op,
int sampling_mode,
int error_mode)
Pointwise binary operation between this and data. |
Data |
binary(Data data,
int op,
MathType new_type,
int sampling_mode,
int error_mode)
Return new Field with value 'this op data'. |
Object |
clone()
Clones this instance. |
DataShadow |
computeRanges(ShadowType type,
DataShadow shadow)
Recursive version of computeRanges(), called down through Data object tree. |
Field |
domainFactor(RealType factor)
factor Field domain into domains of two nested Fields |
Field |
extract(int component)
extract field from this[].component; this is OK, when we get around to it |
Unit[] |
getDefaultRangeUnits()
Get default range Unit-s for 'Flat' components. |
CoordinateSystem |
getDomainCoordinateSystem()
Get the CoordinateSystem associated with the domain RealTuple |
Set |
getDomainSet()
get the domain Set |
Unit[] |
getDomainUnits()
Get the default Units of the Real components of the domain. |
float[][] |
getFloats(boolean copy)
Returns the range values in their default units as floats. |
int |
getLength()
get number of samples |
CoordinateSystem[] |
getRangeCoordinateSystem()
Returns the range CoordinateSystem assuming that the range type is a RealTupleType (and throws a TypeException if its not). |
CoordinateSystem[] |
getRangeCoordinateSystem(int component)
Returns the CoordinateSystem of a component of the range. |
Unit[][] |
getRangeUnits()
return array of Units associated with each RealType component of range; these may differ from default Units of range RealTypes, but must be convertable; the second index has length = 1 (since all samples have the same Units) |
Data |
getSample(int index)
Get the range value at the index-th sample. |
double[][] |
getValues()
Returns the range values in their default units as doubles. |
double[][] |
getValues(boolean copy)
Returns the range values in their default units as doubles. |
double[] |
getValues(int index)
Get values for 'Flat' components in default range Unit-s. |
boolean |
isFlatField()
return true if this a FlatField or a RemoteField adapting a FlatField |
boolean |
isMissing()
Test whether range values are missing |
String |
longString(String pre)
|
Field |
resample(Set set,
int sampling_mode,
int error_mode)
Resamples the range to domain samples of a given set. |
void |
setSample(int index,
Data range)
Set the range value at the index-th sample |
void |
setSample(int index,
Data range,
boolean copy)
Set the range value at the index-th sample |
void |
setSample(RealTuple domain,
Data range)
set the range value at the sample nearest to domain |
String |
toString()
|
Data |
unary(int op,
int sampling_mode,
int error_mode)
Pointwise unary operation applied to this. |
Data |
unary(int op,
MathType new_type,
int sampling_mode,
int error_mode)
Return new FlatField with value 'this op'. |
float[][] |
unpackFloats()
unpack an array of floats from field sample values according to the RangeSet-s; returns a copy |
double[][] |
unpackValues()
unpack an array of doubles from field sample values according to the RangeSet-s; returns a copy |
| Methods inherited from class visad.FlatField |
clearMissing, cloneDouble, cloneDouble, cloneFloat, cloneFloat, convertToField, derivative, derivative, derivative, derivative, derivative, equals, fillField, getFloats, getRangeDimension, getRangeErrors, getRangeSets, getSample, getStringValues, grabBytes, main, makeField, makeField1, makeField2, makeRational, makeRational, pr, setRangeErrors, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, unpackFloats, unpackFloats, unpackOneRangeComp, unpackValues, unpackValues |
| Methods inherited from class visad.FieldImpl |
__getitem__, __len__, __setitem__, __setitem__, combine, combine, combine, combine, combine, domainEnumeration, domainFactor, domainMultiply, domainMultiply, domainMultiply, domainMultiply, extract, extract, setSample, setSample, setSamples |
| Methods inherited from class visad.FunctionImpl |
__getitem__, __getitem__, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample |
| Methods inherited from class visad.DataImpl |
__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, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, 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 |
| Methods inherited from class visad.ThingImpl |
addReference, removeReference |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface visad.Field |
domainEnumeration, domainMultiply, domainMultiply, setSample |
| Methods inherited from interface visad.Function |
evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample |
| Methods inherited from interface visad.Data |
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, 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 |
| Methods inherited from interface visad.Thing |
addReference, removeReference |
| Field Detail |
transient FileAccessor fileAccessor
| Constructor Detail |
public FileFlatField(FileAccessor accessor,
CacheStrategy strategy)
throws VisADException
| Method Detail |
public Data getSample(int index)
throws VisADException,
RemoteException
FlatField
getSample in interface FieldgetSample in class FlatFieldVisADException - problem getting data
RemoteException - problem getting data from remote objectpublic int getLength()
Field
getLength in interface FieldgetLength in class FieldImplpublic Unit[] getDomainUnits()
Function
getDomainUnits in interface FunctiongetDomainUnits in class FieldImplpublic CoordinateSystem getDomainCoordinateSystem()
Function
getDomainCoordinateSystem in interface FunctiongetDomainCoordinateSystem in class FieldImpl
public CoordinateSystem[] getRangeCoordinateSystem()
throws TypeException
FlatField
getRangeCoordinateSystem in interface FieldgetRangeCoordinateSystem in class FlatFieldnull and will be of
length 1.
TypeException - The type of the range is neither RealType nor
RealTupleType.
public CoordinateSystem[] getRangeCoordinateSystem(int component)
throws TypeException
FlatField
getRangeCoordinateSystem in interface FieldgetRangeCoordinateSystem in class FlatFieldcomponent - The index of the component. The value shall be
greater than or equal to zero and less that the
number of components in the TupleType of the
range.
i-th
component. Won't be null and will
be of length 1. The single element might be
null.
TypeException - The type of the range is either RealType or
RealTupleType.public Unit[][] getRangeUnits()
FlatField
getRangeUnits in interface FieldgetRangeUnits in class FlatFieldpublic Unit[] getDefaultRangeUnits()
FlatField
getDefaultRangeUnits in interface FieldgetDefaultRangeUnits in class FlatField
public double[][] getValues()
throws VisADException
FlatField
getValues in interface FieldgetValues in class FlatFieldMathType of
the range. Element [i][j] is
the jth sample value of the
ith component of the range.
VisADException - if a VisAD object couldn't be created.
public double[][] getValues(boolean copy)
throws VisADException
FlatField
getValues in interface FieldgetValues in class FlatFieldcopy - Whether or not the returned array might be the
actual range array. If true, then
the returned array will not be the actual range
array.
MathType of
the range. Element [i][j] is
the jth sample value of the
ith component of the range.
VisADException - if a VisAD object couldn't be created.
public double[] getValues(int index)
throws VisADException
FlatField
getValues in interface FlatFieldIfacegetValues in class FlatFieldMathType of
the range. Element [i] is
the value of the ith component
of the flattened range.
VisADException - if a VisAD object couldn't be created.
public float[][] getFloats(boolean copy)
throws VisADException
FlatField
getFloats in interface FieldgetFloats in class FlatFieldcopy - Whether or not the returned array might be the
actual range array. If true, then
the returned array will not be the actual range
array.
MathType of
the range. Element [i][j] is
the jth sample value of the
ith component of the range.
VisADException - if a VisAD object couldn't be created.public Set getDomainSet()
Field
getDomainSet in interface FieldgetDomainSet in class FieldImpl
public void setSample(int index,
Data range)
throws VisADException,
RemoteException
FlatField
setSample in interface FieldsetSample in class FlatFieldindex - index to setrange - range value to set
VisADException - if range's MathType is incompatible or
some other error.
RemoteException - if the Remote object couldn't be created.
public void setSample(RealTuple domain,
Data range)
throws VisADException,
RemoteException
Field
setSample in interface FieldsetSample in class FieldImplVisADException
RemoteException
public void setSample(int index,
Data range,
boolean copy)
throws VisADException,
RemoteException
FlatField
setSample in interface FieldsetSample in class FlatFieldindex - index to setrange - range value to setcopy - flag to copy values - meaningless for FlatField
VisADException - if range's MathType is incompatible or
some other error.
RemoteException - if the Remote object couldn't be created.public boolean isMissing()
FlatField
isMissing in interface DataisMissing in class FlatField
public Data binary(Data data,
int op,
int sampling_mode,
int error_mode)
throws VisADException,
RemoteException
Data
binary in interface Databinary in class DataImpldata - other Data operand for binary operationop - may be Data.ADD, Data.SUBTRACT, etc; these include all
binary operations defined for Java primitive data typessampling_mode - may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode - may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
RemoteException - an RMI error occurred
VisADException - a VisAD error occurred
public Data binary(Data data,
int op,
MathType new_type,
int sampling_mode,
int error_mode)
throws VisADException,
RemoteException
FlatField
binary in interface Databinary in class FlatFielddata - object to operate onop - operation to perform (e.g. ADD, SUB, MULT)new_type - MathType of new objectsampling_mode - sampling mode to use
(e.g., NEAREST_NEIGHBOR, WEIGHTED_AVERAGE)error_mode - error estimate mode (e.g., NO_ERROR, DEPENDENT,
independent)
RemoteException - couldn't create new Remote object
VisADException - couldn't create new VisAD object
public Data unary(int op,
int sampling_mode,
int error_mode)
throws VisADException,
RemoteException
Data
unary in interface Dataunary in class DataImplop - may be Data.ABS, Data.ACOS, etc; these include all
unary operations defined for Java primitive data typessampling_mode - may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode - may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public Data unary(int op,
MathType new_type,
int sampling_mode,
int error_mode)
throws VisADException
FlatField
unary in interface Dataunary in class FlatFieldop - operation to perform (e.g., NOP, ABS, COS)new_type - MathType of new objectsampling_mode - sampling mode to use
(e.g., NEAREST_NEIGHBOR, WEIGHTED_AVERAGE)error_mode - error estimate mode (e.g., NO_ERROR, DEPENDENT,
independent)
VisADException - couldn't create new VisAD object
public double[][] unpackValues()
throws VisADException
unpackValues in class FlatFieldVisADException
public float[][] unpackFloats()
throws VisADException
unpackFloats in class FlatFieldVisADException
public Field extract(int component)
throws VisADException,
RemoteException
FlatField
extract in interface Fieldextract in class FlatFieldVisADException
RemoteException
public Field domainFactor(RealType factor)
throws VisADException,
RemoteException
Field
domainFactor in interface FielddomainFactor in class FieldImplfactor - The type of the domain for the outer field.
VisADException - VisAD failure.
RemoteException - Java RMI failure.for copy information
public Field resample(Set set,
int sampling_mode,
int error_mode)
throws VisADException,
RemoteException
FlatField
resample in interface Functionresample in class FlatFieldset - The set of points at which to resample this
field.sampling_mode - Resampling mode: Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode - Error estimation mode: Data.DEPENDENT,
Data.INDEPENDENT, or Data.NO_ERRORS.
VisADException
RemoteException
public DataShadow computeRanges(ShadowType type,
DataShadow shadow)
throws VisADException
Data
computeRanges in interface DatacomputeRanges in class FlatFieldVisADException
public Data adjustSamplingError(Data error,
int error_mode)
throws VisADException,
RemoteException
FlatField
adjustSamplingError in interface DataadjustSamplingError in class FlatFieldVisADException
RemoteExceptionpublic boolean isFlatField()
Field
isFlatField in interface FieldisFlatField in class FlatFieldpublic Object clone()
clone() contract in that the returned object will compare unequal to
this instance. As such, this method should probably not be invoked.
clone in class FlatFieldpublic String toString()
toString in class FlatFieldpublic String longString(String pre)
longString in interface DatalongString in class FlatField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||