Documentation of 'visad.Field' Java class
Field
visad

Interface Field

    • Method Detail

      • setSamples

        void setSamples(Data[] range,
                        boolean copy)
                 throws VisADException,
                        java.rmi.RemoteException
        set the range samples of the function; the order of range samples must be the same as the order of domain indices in the DomainSet; copy range objects if copy is true; should use same MathType object in each Data object in range array
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSamples

        void setSamples(double[][] range)
                 throws VisADException,
                        java.rmi.RemoteException
        set range array as range values of this Field; this must have a Flat range; 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
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSamples

        void setSamples(float[][] range)
                 throws VisADException,
                        java.rmi.RemoteException
        set range array as range values of this Field; this must have a Flat range; 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
        Throws:
        VisADException
        java.rmi.RemoteException
      • getLength

        int getLength()
               throws VisADException,
                      java.rmi.RemoteException
        get number of samples
        Throws:
        VisADException
        java.rmi.RemoteException
      • getSample

        Data getSample(int index)
                throws VisADException,
                       java.rmi.RemoteException
        get the range value at the index-th sample
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        void setSample(RealTuple domain,
                       Data range)
                throws VisADException,
                       java.rmi.RemoteException
        set the range value at the sample nearest to domain
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        void setSample(RealTuple domain,
                       Data range,
                       boolean copy)
                throws VisADException,
                       java.rmi.RemoteException
        set the range value at the sample nearest to domain
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        void setSample(int index,
                       Data range)
                throws VisADException,
                       java.rmi.RemoteException
        set the range value at the index-th sample
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        void setSample(int index,
                       Data range,
                       boolean copy)
                throws VisADException,
                       java.rmi.RemoteException
        set the range value at the index-th sample
        Throws:
        VisADException
        java.rmi.RemoteException
      • extract

        Field extract(int component)
               throws VisADException,
                      java.rmi.RemoteException
        assumes the range type of this is a Tuple and returns a Field with the same domain as this, but whose range samples consist of the specified Tuple component of the range samples of this; in shorthand, this[].component
        Throws:
        VisADException
        java.rmi.RemoteException
      • domainMultiply

        Field domainMultiply()
                      throws VisADException,
                             java.rmi.RemoteException
        combine domains of two outermost nested Fields into a single domain and Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • domainMultiply

        Field domainMultiply(int depth)
                      throws VisADException,
                             java.rmi.RemoteException
        combine domains to depth, if possible
        Throws:
        VisADException
        java.rmi.RemoteException
      • getValues

        double[][] getValues()
                      throws VisADException,
                             java.rmi.RemoteException
        invokes getValues(true)
        Throws:
        VisADException
        java.rmi.RemoteException
      • getValues

        double[][] getValues(boolean copy)
                      throws VisADException,
                             java.rmi.RemoteException
        get the 'Flat' components of this Field's range values in their default range Units (as defined by the range of the Field's FunctionType); if the range type is a RealType it is a 'Flat' component, if the range type is a TupleType its RealType components and RealType components of its RealTupleType components are all 'Flat' components; the return array is dimensioned: double[number_of_flat_components][number_of_range_samples]; return a copy if copy == true
        Throws:
        VisADException
        java.rmi.RemoteException
      • getFloats

        float[][] getFloats()
                     throws VisADException,
                            java.rmi.RemoteException
        invokes getFloats(true)
        Throws:
        VisADException
        java.rmi.RemoteException
      • getFloats

        float[][] getFloats(boolean copy)
                     throws VisADException,
                            java.rmi.RemoteException
        get the 'Flat' components of this Field's range values in their default range Units (as defined by the range of the Field's FunctionType); if the range type is a RealType it is a 'Flat' component, if the range type is a TupleType its RealType components and RealType components of its RealTupleType components are all 'Flat' components; the return array is dimensioned: float[number_of_flat_components][number_of_range_samples]; return a copy if copy == true
        Throws:
        VisADException
        java.rmi.RemoteException
      • getStringValues

        java.lang.String[][] getStringValues()
                                      throws VisADException,
                                             java.rmi.RemoteException
        get String values for Text components
        Throws:
        VisADException
        java.rmi.RemoteException
      • getDefaultRangeUnits

        Unit[] getDefaultRangeUnits()
                             throws VisADException,
                                    java.rmi.RemoteException
        get default range Unit-s for 'Flat' components
        Throws:
        VisADException
        java.rmi.RemoteException
      • getRangeUnits

        Unit[][] getRangeUnits()
                        throws VisADException,
                               java.rmi.RemoteException
        get range Unit-s for 'Flat' components; second index may enumerate samples, if they differ
        Throws:
        VisADException
        java.rmi.RemoteException
      • getRangeCoordinateSystem

        CoordinateSystem[] getRangeCoordinateSystem()
                                             throws VisADException,
                                                    java.rmi.RemoteException
        get range CoordinateSystem for 'RealTuple' range; index may enumerate samples, if they differ
        Throws:
        VisADException
        java.rmi.RemoteException
      • getRangeCoordinateSystem

        CoordinateSystem[] getRangeCoordinateSystem(int component)
                                             throws VisADException,
                                                    java.rmi.RemoteException
        get range CoordinateSystem for 'RealTuple' components; index may enumerate samples, if they differ
        Throws:
        VisADException
        java.rmi.RemoteException
      • isFlatField

        boolean isFlatField()
                     throws VisADException,
                            java.rmi.RemoteException
        return true if this a FlatField or a RemoteField adapting a FlatField
        Throws:
        VisADException
        java.rmi.RemoteException
      • domainEnumeration

        java.util.Enumeration domainEnumeration()
                                         throws VisADException,
                                                java.rmi.RemoteException
           Here's how to use this:
        
           for (Enumeration e = field.domainEnumeration() ; e.hasMoreElements(); ) {
             RealTuple domain_sample = (RealTuple) e.nextElement();
             Data range = field.evaluate(domain_sample);
           }
        
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.