Documentation of 'visad.FlatFieldIface' Java class
FlatFieldIface
visad

Interface FlatFieldIface

  • All Superinterfaces:
    Data, Field, Function, Thing
    All Known Subinterfaces:
    RemoteFlatField
    All Known Implementing Classes:
    AreaImageCacheAdapter, CachedFlatField, FileFlatField, FlatField, ImageFlatField, JamaMatrix, NavigatedImage, RemoteFlatFieldImpl, SatelliteImage, SingleBandedImageImpl, Sounding, Spectrum


    public interface FlatFieldIface
    extends Field
    FlatField is the VisAD class for finite samplings of functions whose range type and range coordinate systems are simple enough to allow efficient representation. The DomainSet, DomainCoordinateSystem, RangeSet, RangeCoordinateSystem and RangeCoordinateSystems variables of FlatField are immutable.

    A FlatField range type may be either a RealType (for a function with range = R), a RealTupleType (for a function with range = R^n for n > 0), or a TupleType of RealType-s and RealTupleType-s..

    VisAD avoids invoking methods once per datum through the use of FlatField's. These are logically Field's of Tuple's of RealType's and RealTupleType's. Internally FlatField's are stored as arrays of numerical values, rather than the arrays of data objects stored in Field's. Many of the methods in the FlatField class and in other classes (e.g., CoordinateTransform, Set, Unit) process data in the form double[Dimension][Length] where Length is the number of samples in a Field and Dimension is the number of Tuple elements in the Field range values. Note that the order of the Length and Dimension indices are reversed as array indices. This allows efficient processing of long columns of Field value components. For example, if Latitude is one component of Field values, then any computation involving Latitude can be applied in a tight loop to all Latitude's in the Field.

    FlatField's support range types more general than RealTuple's. To understand the motive, consider a set of observations that include Latitude, Longitude, Altitude, Pressure, Temperature, etc. We can organize these as a Field whose range values have the Tuple type:

    
         (Latitude, Longitude, Altitude, Pressure, Temperature, ...)
    
    
    However, in order to declare that (Latitude, Longitude, Altitude) is a coordinate system with coordinate transform functions to other spatial coordinate systems, we need to organize:

    
         (Latitude, Longitude, Altitude)
    
    
    as a RealTupleType. Hence the range type of the Field of observations must be:

    
         ((Latitude, Longitude, Altitude), Pressure, Temperature, ...)
    
    
    which is not a RealTupleType (since one of its components is a RealTupleType). In order to process such data efficiently, FlatField's must support range types that are Tuple's of RealType's and RealTupleType's.

    • Method Detail

      • getRangeSets

        Set[] getRangeSets()
                    throws java.rmi.RemoteException,
                           VisADException
        Returns the sampling set of each flat component.
        Returns:
        The sampling set of each component in the flat range.
        Throws:
        java.rmi.RemoteException
        VisADException
      • getRangeErrors

        ErrorEstimate[] getRangeErrors()
                                throws java.rmi.RemoteException,
                                       VisADException
        return array of ErrorEstimates associated with each RealType component of range; each ErrorEstimate is a mean error for all samples of a range RealType component
        Throws:
        java.rmi.RemoteException
        VisADException
      • setRangeErrors

        void setRangeErrors(ErrorEstimate[] errors)
                     throws java.rmi.RemoteException,
                            VisADException
        set ErrorEstimates associated with each RealType component of range
        Throws:
        java.rmi.RemoteException
        VisADException
      • setSamples

        void setSamples(double[][] range,
                        boolean copy)
                 throws java.rmi.RemoteException,
                        VisADException
        set range array as range values of this FlatField; the array is dimensioned double[number_of_range_components][number_of_range_samples]; the order of range values must be the same as the order of domain indices in the DomainSet; copy array if copy flag is true
        Throws:
        java.rmi.RemoteException
        VisADException
      • setSamples

        void setSamples(float[][] range,
                        boolean copy)
                 throws java.rmi.RemoteException,
                        VisADException
        set range array as range values of this FlatField; the array is dimensioned float[number_of_range_components][number_of_range_samples]; the order of range values must be the same as the order of domain indices in the DomainSet; copy array if copy flag is true
        Throws:
        java.rmi.RemoteException
        VisADException
      • setSamples

        void setSamples(double[][] range,
                        ErrorEstimate[] errors,
                        boolean copy)
                 throws java.rmi.RemoteException,
                        VisADException
        set the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSet
        Throws:
        java.rmi.RemoteException
        VisADException
      • setSamples

        void setSamples(int start,
                        double[][] range)
                 throws java.rmi.RemoteException,
                        VisADException
        Throws:
        java.rmi.RemoteException
        VisADException
      • setSamples

        void setSamples(float[][] range,
                        ErrorEstimate[] errors,
                        boolean copy)
                 throws java.rmi.RemoteException,
                        VisADException
        set the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSet
        Throws:
        java.rmi.RemoteException
        VisADException
      • getValues

        double[] getValues(int s_index)
                    throws java.rmi.RemoteException,
                           VisADException
        get values for 'Flat' components in default range Unit-s
        Throws:
        java.rmi.RemoteException
        VisADException
      • clearMissing

        void clearMissing()
                   throws java.rmi.RemoteException,
                          VisADException
        mark this FlatField as non-missing
        Throws:
        java.rmi.RemoteException
        VisADException
      • convertToField

        Field convertToField()
                      throws java.rmi.RemoteException,
                             VisADException
        convert this FlatField to a (non-Flat) FieldImpl
        Throws:
        java.rmi.RemoteException
        VisADException
      • getRangeDimension

        int getRangeDimension()
                       throws java.rmi.RemoteException,
                              VisADException
        Gets the number of components in the "flat" range.
        Returns:
        The number of components in the "flat" range.
        Throws:
        java.rmi.RemoteException
        VisADException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.