Class VIIRSSourceImp

java.lang.Object
noaa.coastwatch.util.sensor.VIIRSSourceImp
All Implemented Interfaces:
ResamplingSourceImp

public class VIIRSSourceImp extends Object implements ResamplingSourceImp
The VIIRSSourceImp helps resample VIIRS data using a specific set of VIIRS sensor parameters.
Since:
3.5.0
Author:
Peter Hollemans
  • Method Details

    • getInstance

      public static VIIRSSourceImp getInstance(EarthTransform sourceTrans, VIIRSSensorParams sensorParams)
      Creates a new VIIRS resampling helper using the specified transform.
      Parameters:
      sourceTrans - the source transform to use for VIIRS swath location data.
      sensorParams - the VIIRS sensor parameters to use.
      Returns:
      the new resampling helper.
    • isValidLocation

      public boolean isValidLocation(DataLocation loc)
      Description copied from interface: ResamplingSourceImp
      Determines if a source data location is valid to be used in the resampling operation.
      Specified by:
      isValidLocation in interface ResamplingSourceImp
      Parameters:
      loc - the location to determine for use.
      Returns:
      true if the location should be used, or false if not.
    • getWindowSize

      public int getWindowSize()
      Description copied from interface: ResamplingSourceImp
      Gets the width and height of the window to search for the next nearest location during resampling. This is the window inside which the second nearest location may be found.
      Specified by:
      getWindowSize in interface ResamplingSourceImp
      Returns:
      the window size in pixels.
    • getContext

      public Object getContext()
      Description copied from interface: ResamplingSourceImp
      Specified by:
      getContext in interface ResamplingSourceImp
      Returns:
      the new context object.
    • isValidNearestLocation

      public boolean isValidNearestLocation(EarthLocation earthLoc, DataLocation nearestDataLoc, Object contextObj)
      Description copied from interface: ResamplingSourceImp
      Determines if the nearest source transform earth location is valid to be used for resampling to the specified destination earth location. To be valid, the destination earth location must fall within the bounds of the pixel defined by the nearest source location.
      Specified by:
      isValidNearestLocation in interface ResamplingSourceImp
      Parameters:
      earthLoc - the destination earth location to check.
      nearestDataLoc - the nearest source data location to the specified destination earth location.
      contextObj - a context object obtained from ResamplingSourceImp.getContext().
      Returns:
      true if the destination location falls within the area of the nearest source location, or false if not.