| 
 | ||||||||||
| 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
public class FileFlatField
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class visad.DataImpl | 
|---|
| DataImpl.Syncher | 
| Field Summary | 
|---|
| Fields inherited from class visad.FlatField | 
|---|
| RangeCoordinateSystem, RangeCoordinateSystems, RangeUnits, TupleDimension | 
| 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)Factors this instance into a (nested) field-of-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()Returns the domain-set of this instance. | 
|  Unit[] | getDomainUnits()Returns the units of the values in the domain set. | 
|  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.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 | 
| Constructor Detail | 
|---|
public FileFlatField(FileAccessor accessor,
                     CacheStrategy strategy)
              throws VisADException
VisADException| Method Detail | 
|---|
public Data getSample(int index)
               throws VisADException,
                      RemoteException
FlatField
getSample in interface FieldgetSample in class FlatFieldindex - index of requested range sample
VisADException - problem getting data
RemoteException - problem getting data from remote objectpublic int getLength()
FieldImpl
getLength in interface FieldgetLength in class FieldImplpublic Unit[] getDomainUnits()
FieldImpl
getDomainUnits in interface FunctiongetDomainUnits in class FieldImplpublic CoordinateSystem getDomainCoordinateSystem()
FunctionImpl
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()
FieldImplReturns the domain-set of this instance. The actual set is returned: it is not a copy or a clone.
 Note that it is possible to simultaneously modify the domain-set of
 both this instance and of a clone by modifying the values in the array
 returned by invoking getSamples(false) on the domain-set of
 either this instance or the clone.  Don't do this unless you enjoy 
 debugging.
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
DataImpl
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;
VisADException - a VisAD error occurred
RemoteException - an RMI 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)
VisADException - couldn't create new VisAD object
RemoteException - couldn't create new Remote object
public Data unary(int op,
                  int sampling_mode,
                  int error_mode)
           throws VisADException,
                  RemoteException
DataImpl
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
FieldImpl
domainFactor in interface FielddomainFactor in class FieldImplfactor - The type of the domain for the outer field.
DomainException - The domain of this instance cannot be factored
                            as requested.
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 - unable to resample function
RemoteException - Java RMI exception
public DataShadow computeRanges(ShadowType type,
                                DataShadow shadow)
                         throws VisADException
Data
computeRanges in interface DatacomputeRanges in class FlatFieldtype - ShadowType generated for MathType of thisshadow - DataShadow instance whose contained double[][]
               array and animation sampling Set are modified
               according to RealType values in this, and used
               as return value
VisADException - a VisAD error occurred
public Data adjustSamplingError(Data error,
                                int error_mode)
                         throws VisADException,
                                RemoteException
FlatField
adjustSamplingError in interface DataadjustSamplingError in class FlatFielderror_mode - may be Data.INDEPENDENT, Data.DEPENDENT or
                     Data.NO_ERRORS;
VisADException - a VisAD error occurred
RemoteException - an RMI error occurredpublic 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 FlatFieldpre - String added to start of each line
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||