Class VIIRSMBandEDRParams

java.lang.Object
noaa.coastwatch.util.sensor.VIIRSMBandEDRParams
All Implemented Interfaces:
VIIRSSensorParams

public class VIIRSMBandEDRParams extends Object implements VIIRSSensorParams

The VIIRSMBandEDRParams class provides parameters for the VIIRS M-band Environmental Data Record (EDR) scan and deletion pattern. The M-band EDR scan is 3200 pixels wide by 16 pixels high and has some pixels deleted on the top and bottom four rows of a scan which results in less overlap than the SDR scan. The deletion pattern is as follows:

  • 1st row - First and last 1090 pixels deleted
  • 2nd row - First and last 820 pixels deleted
  • 3rd row - First and last 520 pixels deleted
  • 4th row - First and last 130 pixels deleted
  • 5-12th rows - No deletions
  • 13st row - First and last 130 pixels deleted
  • 14th row - First and last 520 pixels deleted
  • 15th row - First and last 820 pixels deleted
  • 16th row - First and last 1090 pixels deleted

The pattern results in a scan that looks as follows:

     0    130    520   820   1090     2110  2380  2680   3070  3199
  0   *************************---------*************************
  1   *******************---------------------*******************
  2   *************---------------------------------*************
  3   ******-----------------------------------------------******
  4   -----------------------------------------------------------
  ..  -----------------------------------------------------------
  ..  -----------------------------------------------------------
  11  -----------------------------------------------------------
  12  ******-----------------------------------------------******
  13  *************---------------------------------*************
  14  *******************---------------------*******************
  15  *************************---------*************************
 
Since:
3.6.0
Author:
Peter Hollemans
  • Constructor Details

    • VIIRSMBandEDRParams

      public VIIRSMBandEDRParams()
      Creates a new parameters object.
  • Method Details

    • getScanWidth

      public int getScanWidth()
      Description copied from interface: VIIRSSensorParams
      Gets the scan width.
      Specified by:
      getScanWidth in interface VIIRSSensorParams
      Returns:
      the scan width in pixels.
    • getScanHeight

      public int getScanHeight()
      Description copied from interface: VIIRSSensorParams
      Gets the scan height.
      Specified by:
      getScanHeight in interface VIIRSSensorParams
      Returns:
      the scan height in pixels of one simultenous scan within a VIIRS granule.
    • getTopRowAtColumn

      public int getTopRowAtColumn(int col)
      Description copied from interface: VIIRSSensorParams
      Gets the top edge row of the swath at the specified column for any scan.
      Specified by:
      getTopRowAtColumn in interface VIIRSSensorParams
      Parameters:
      col - the column to query, [0..scanWidth].
      Returns:
      the row within the data that forms the top of the non-deleted part of the swath at the specified column.
    • getDeletionPattern

      public boolean[][] getDeletionPattern()
      Description copied from interface: VIIRSSensorParams
      Gets an array containing the deleted pixel pattern.
      Specified by:
      getDeletionPattern in interface VIIRSSensorParams
      Returns:
      the pixel deletion pattern for this sensor as an array of booleans of size [scanHeight][scanWidth] in which true indicates a pixel is deleted, and false indicates the pixel is valid.