Documentation of 'visad.meteorology.SingleBandedImageImpl' Java class
SingleBandedImageImpl
visad.meteorology

Class SingleBandedImageImpl

    • Constructor Detail

      • SingleBandedImageImpl

        public SingleBandedImageImpl(FunctionType function,
                                     Set domain,
                                     DateTime startTime,
                                     java.lang.String desc)
                              throws VisADException
        Construct a SingleBandedImageImpl without any data.
        Parameters:
        function - FunctionType for this image. It must have a Range that has only one (Real) component.
        domain - DomainSet for this image.
        startTime - starting time of the image.
        desc - description
        Throws:
        VisADException - couldn't create the SingleBandedImageImpl
      • SingleBandedImageImpl

        public SingleBandedImageImpl(FlatField image,
                                     DateTime startTime,
                                     java.lang.String desc)
                              throws VisADException
        Construct a SingleBandedImageImpl from a FlatField.
        Parameters:
        image - FlatField representing an image. It must have a Range that only has one (Real) component.
        startTime - starting time of the image.
        desc - description
        Throws:
        VisADException - couldn't create the SingleBandedImageImpl
      • SingleBandedImageImpl

        public SingleBandedImageImpl(FlatField image,
                                     DateTime startTime,
                                     java.lang.String desc,
                                     boolean copyData)
                              throws VisADException
        Construct a SingleBandedImage from the FlatField specified.
        Parameters:
        image - FlatField representing an image. It must have a Range that only has one (Real) component.
        startTime - starting time of the image.
        desc - description
        copyData - make a copy of the data on setSample call
        Throws:
        VisADException - couldn't create the SingleBandedImageImpl
    • Method Detail

      • getStartTime

        public DateTime getStartTime()
        Get the start time of the image.
        Specified by:
        getStartTime in interface SingleBandedImage
        Returns:
        DateTime representing the start time of the image.
      • getDescription

        public java.lang.String getDescription()
        Return a descriptive string for this image.
        Specified by:
        getDescription in interface SingleBandedImage
        Returns:
        description
      • getMinRangeValue

        public Real getMinRangeValue()
        Get the minimum possible value for this image
        Specified by:
        getMinRangeValue in interface SingleBandedImage
        Returns:
        a Real representing the minimum possible value. Using a Real allows us to associate units and error estimates with the value
      • getMaxRangeValue

        public Real getMaxRangeValue()
        Get the maximum possible value for this image
        Specified by:
        getMaxRangeValue in interface SingleBandedImage
        Returns:
        a Real representing the maximum possible value. Using a Real allows us to associate units and error estimates with the value
      • isNavigated

        public boolean isNavigated()
        Check to see if this image has a domain that can map to Latitude and Longitude.
        Specified by:
        isNavigated in interface SingleBandedImage
        Returns:
        true if it has navigation, otherwise false
      • setSamples

        public void setSamples(float[][] range,
                               ErrorEstimate[] errors,
                               boolean copy)
                        throws VisADException,
                               java.rmi.RemoteException
        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. Overridden so we can set max and min values.
        Specified by:
        setSamples in interface FlatFieldIface
        Overrides:
        setSamples in class FlatField
        Parameters:
        range - pixel values as doubles
        errors - ErrorEstimates for values (may be null);
        copy - flag to make a copy of value array or not
        Throws:
        VisADException - couldn't set values
        java.rmi.RemoteException - couldn't set remote object
      • setSamples

        public void setSamples(double[][] range,
                               ErrorEstimate[] errors,
                               boolean copy)
                        throws VisADException,
                               java.rmi.RemoteException
        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. Overridden so we can set max and min values.
        Specified by:
        setSamples in interface FlatFieldIface
        Overrides:
        setSamples in class FlatField
        Parameters:
        range - pixel values as doubles
        errors - ErrorEstimates for values (may be null);
        copy - flag to make a copy of value array or not
        Throws:
        VisADException - couldn't set values
        java.rmi.RemoteException - couldn't set remote object
      • unary

        public Data unary(int op,
                          MathType new_type,
                          int sampling_mode,
                          int error_mode)
                   throws VisADException
        return new SingleBandedImageImpl with value 'op this'
        Specified by:
        unary in interface Data
        Overrides:
        unary in class FlatField
        Parameters:
        op - operation to perform (e.g., NOP, ABS, COS)
        new_type - MathType of new object
        sampling_mode - sampling mode to use (e.g., NEAREST_NEIGHBOR, WEIGHTED_AVERAGE)
        error_mode - error estimate mode (e.g., NO_ERROR, DEPENDENT, independent)
        Returns:
        new FlatField corresponding to the requested operation
        Throws:
        VisADException - couldn't create new VisAD object
      • getImageData

        public float[][] getImageData()
                               throws VisADException
        for effeciency provide access to the uncopied floats
        Throws:
        VisADException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.