visad.meteorology
Class NavigatedImage

java.lang.Object
  extended by visad.ThingImpl
      extended by visad.DataImpl
          extended by visad.FunctionImpl
              extended by visad.FieldImpl
                  extended by visad.FlatField
                      extended by visad.meteorology.SingleBandedImageImpl
                          extended by visad.meteorology.NavigatedImage
All Implemented Interfaces:
Serializable, Cloneable, Data, Field, FlatFieldIface, Function, NavigatedField, SingleBandedImage, Thing

public class NavigatedImage
extends SingleBandedImageImpl
implements NavigatedField

An implementation for representing single-banded planar satellite or radar imagery. This specific type of SingleBandedImage has a navigation that will map domain values to latitude and longitude.

See Also:
Serialized Form

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
NavigatedImage(FlatField image, DateTime startTime, String desc)
          Construct a NavigatedImage from a FlatField.
NavigatedImage(FlatField image, DateTime startTime, String desc, boolean copyData)
          Construct a NavigatedImage from a FlatField.
NavigatedImage(FunctionType function, Set domain, DateTime startTime, String desc)
          Construct a NavigatedImage without any data.
 
Method Summary
 NavigatedCoordinateSystem getNavigation()
          Get the coordinate system representing the navigation for the domain.
 boolean isNavigated()
          Check to see if this image has a domain that can map to Latitude and Longitude.
 Data unary(int op, MathType new_type, int sampling_mode, int error_mode)
          return new NavigatedImage with value 'op this'
 
Methods inherited from class visad.meteorology.SingleBandedImageImpl
binary, getDescription, getImageData, getMaxRangeValue, getMinRangeValue, getStartTime, setSamples, setSamples, unary
 
Methods inherited from class visad.FlatField
adjustSamplingError, binary, clearMissing, clone, cloneDouble, cloneDouble, cloneFloat, cloneFloat, computeRanges, convertToField, derivative, derivative, derivative, derivative, derivative, equals, extract, extract, fillField, getDefaultRangeUnits, getFloats, getFloats, getRangeCoordinateSystem, getRangeCoordinateSystem, getRangeDimension, getRangeErrors, getRangeSets, getRangeUnits, getSample, getSample, getStringValues, getValues, getValues, getValues, grabBytes, isFlatField, isMissing, longString, main, makeField, makeField1, makeField2, makeRational, makeRational, nullRanges, pr, resample, resampleDouble, setRangeErrors, setSample, setSample, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, toString, unpackFloats, unpackFloats, unpackFloats, unpackOneFloatRangeComp, unpackOneFloatRangeComp, unpackOneRangeComp, unpackOneRangeComp, unpackValues, unpackValues, unpackValues
 
Methods inherited from class visad.FieldImpl
__getitem__, __len__, __setitem__, __setitem__, combine, combine, combine, combine, combine, domainEnumeration, domainFactor, domainFactor, domainMultiply, domainMultiply, domainMultiply, domainMultiply, extract, extract, getDomainCoordinateSystem, getDomainSet, getDomainUnits, getLength, setSample, 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, domainFactor, domainMultiply, domainMultiply, extract, getDefaultRangeUnits, getDomainSet, getFloats, getFloats, getLength, getRangeCoordinateSystem, getRangeCoordinateSystem, getRangeUnits, getSample, getStringValues, getValues, getValues, isFlatField, setSample, setSample, setSample, setSample, setSamples, setSamples, setSamples
 
Methods inherited from interface visad.Function
derivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainCoordinateSystem, getDomainDimension, getDomainUnits, resample, resample
 
Methods inherited from interface visad.Data
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, isMissing, local, log, log, longString, 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, unary
 
Methods inherited from interface visad.Thing
addReference, removeReference
 

Constructor Detail

NavigatedImage

public NavigatedImage(FunctionType function,
                      Set domain,
                      DateTime startTime,
                      String desc)
               throws VisADException
Construct a NavigatedImage without any data.

Parameters:
function - FunctionType for this image. It must have a domain with a NavigatedCoordinateSystem and a Range that has only one (Real) component.
domain - DomainSet for this image. The domain must have mappings to Latitude/Longitude and or have a NavigatedCoordinateSystem associated with it.
startTime - starting time of the image.
desc - description
Throws:
VisADException - couldn't create the NavigatedImage

NavigatedImage

public NavigatedImage(FlatField image,
                      DateTime startTime,
                      String desc)
               throws VisADException
Construct a NavigatedImage from a FlatField.

Parameters:
image - FlatField representing an image. It must have a domain with a NavigatedCoordinateSystem and a Range that only has one (Real) component.
startTime - starting time of the image.
desc - description
Throws:
VisADException - couldn't create the NavigatedImage

NavigatedImage

public NavigatedImage(FlatField image,
                      DateTime startTime,
                      String desc,
                      boolean copyData)
               throws VisADException
Construct a NavigatedImage from a FlatField.

Parameters:
image - FlatField representing an image. It must have a domain with a NavigatedCoordinateSystem and a Range that only has one (Real) component.
startTime - starting time of the image.
desc - description
copyData - make a copy of the samples
Throws:
VisADException - couldn't create the NavigatedImage
Method Detail

getNavigation

public NavigatedCoordinateSystem getNavigation()
Get the coordinate system representing the navigation for the domain.

Specified by:
getNavigation in interface NavigatedField
Returns:
NavigatedCoordinateSystem for the domain of this field.

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
Overrides:
isNavigated in class SingleBandedImageImpl
Returns:
true if it has navigation, otherwise false

unary

public Data unary(int op,
                  MathType new_type,
                  int sampling_mode,
                  int error_mode)
           throws VisADException
return new NavigatedImage with value 'op this'

Specified by:
unary in interface Data
Overrides:
unary in class SingleBandedImageImpl
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