Package noaa.coastwatch.util.sensor
Class VIIRSMBandSDRParams
java.lang.Object
noaa.coastwatch.util.sensor.VIIRSMBandSDRParams
- All Implemented Interfaces:
VIIRSSensorParams
The VIIRSMBandSDRParams class provides parameters
for the VIIRS M-band Scientific Data Record (SDR) scan and deletion pattern.
The M-band SDR scan is 3200 pixels wide by 16 pixels high and has some
pixels deleted on the top and bottom two rows which results in less overlap
of the scan than for example MODIS.The deletion pattern is as follows:
- 1st row - First and last 1008 pixels deleted
- 2nd row - First and last 640 pixels deleted
- 3rd-14th rows - No deletions
- 15th row - First and last 640 pixels deleted
- 16th row - First and last 1008 pixels deleted
The pattern results in a scan that looks as follows:
0 640 1008 2192 2560 3199
0 ****************---------------------------****************
1 ******-----------------------------------------------******
2 -----------------------------------------------------------
.. -----------------------------------------------------------
.. -----------------------------------------------------------
13 -----------------------------------------------------------
14 ******-----------------------------------------------******
15 ****************---------------------------****************
- Since:
- 3.6.0
- Author:
- Peter Hollemans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[][]Gets an array containing the deleted pixel pattern.intGets the scan height.intGets the scan width.intgetTopRowAtColumn(int col) Gets the top edge row of the swath at the specified column for any scan.
-
Constructor Details
-
VIIRSMBandSDRParams
public VIIRSMBandSDRParams()Creates a new parameters object.
-
-
Method Details
-
getScanWidth
public int getScanWidth()Description copied from interface:VIIRSSensorParamsGets the scan width.- Specified by:
getScanWidthin interfaceVIIRSSensorParams- Returns:
- the scan width in pixels.
-
getScanHeight
public int getScanHeight()Description copied from interface:VIIRSSensorParamsGets the scan height.- Specified by:
getScanHeightin interfaceVIIRSSensorParams- Returns:
- the scan height in pixels of one simultenous scan within a VIIRS granule.
-
getTopRowAtColumn
public int getTopRowAtColumn(int col) Description copied from interface:VIIRSSensorParamsGets the top edge row of the swath at the specified column for any scan.- Specified by:
getTopRowAtColumnin interfaceVIIRSSensorParams- 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:VIIRSSensorParamsGets an array containing the deleted pixel pattern.- Specified by:
getDeletionPatternin interfaceVIIRSSensorParams- 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.
-