Package noaa.coastwatch.util.sensor
Class VIIRSIBandSDRParams
java.lang.Object
noaa.coastwatch.util.sensor.VIIRSIBandSDRParams
- All Implemented Interfaces:
VIIRSSensorParams
The VIIRSIBandSDRParams
class provides parameters
for the VIIRS I-band Scientific Data Record (SDR) scan and deletion pattern.
The I-band SDR scan is 6400 pixels wide by 32 pixels high and has some
pixels deleted on the top and bottom four rows which results in less overlap
of the scan than for example MODIS. The deletion pattern is as follows:
- 1st row - First and last 2016 pixels deleted
- 2nd row - First and last 2016 pixels deleted
- 3rd row - First and last 1280 pixels deleted
- 4th row - First and last 1280 pixels deleted
- 5-28th rows - No deletions
- 29th row - First and last 1280 pixels deleted
- 30th row - First and last 1280 pixels deleted
- 31st row - First and last 2016 pixels deleted
- 32nd row - First and last 2016 pixels deleted
The pattern results in a scan that looks as follows:
0 1280 2016 4384 5120 6399 0 ****************---------------------------**************** 1 ****************---------------------------**************** 2 *********-----------------------------------------********* 3 *********-----------------------------------------********* 4 ----------------------------------------------------------- .. ----------------------------------------------------------- .. ----------------------------------------------------------- 28 ----------------------------------------------------------- 29 *********-----------------------------------------********* 30 *********-----------------------------------------********* 31 ****************---------------------------**************** 32 ****************---------------------------****************
- Since:
- 3.6.0
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean[][]
Gets an array containing the deleted pixel pattern.int
Gets the scan height.int
Gets the scan width.int
getTopRowAtColumn
(int col) Gets the top edge row of the swath at the specified column for any scan.
-
Constructor Details
-
VIIRSIBandSDRParams
public VIIRSIBandSDRParams()Creates a new parameters object.
-
-
Method Details
-
getScanWidth
public int getScanWidth()Description copied from interface:VIIRSSensorParams
Gets the scan width.- Specified by:
getScanWidth
in interfaceVIIRSSensorParams
- Returns:
- the scan width in pixels.
-
getScanHeight
public int getScanHeight()Description copied from interface:VIIRSSensorParams
Gets the scan height.- Specified by:
getScanHeight
in 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:VIIRSSensorParams
Gets the top edge row of the swath at the specified column for any scan.- Specified by:
getTopRowAtColumn
in 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:VIIRSSensorParams
Gets an array containing the deleted pixel pattern.- Specified by:
getDeletionPattern
in 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.
-