9.6.1 Preparing the individual scenes I |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Useful information:
Geocorrection of remote sensing data
Geographical coordinate systems
Equidistant cylindrical (Lat/Lon) grids
The Universal Transverse Mercator (UTM) grid
Image descriptions: |
Before creating a gridded composite made up of several images, each contributing scene must be prepared properly. This consists of
In this section you will go through this process step by step, repeating it for each of the three scenes you will use later to create a 3-day composite from the southern Benguela region. Meris Level 2 flags
As you can see, the image contains not just water pixels showing chlorophyll concentrations; there are also cloud pixels showing cloud top pressure, and land pixels with the top of atmosphere vegetation index (TOAVI). Along both edges are strips where no radiance samples were available to fill the MERIS product grid. To produce a gridded image with valid chlorophyll concentrations the contributing scenes must contain only valid data. All other pixels must be masked. The flags provided with the image data contain the information you need for this task.
The l2_flags text file is a list of named flags, each followed by a number. The numbers will allow you to use the l2_flags data set to mask all pixels containing unwanted data. 'MERIS level 2 flags' gives you a more detailed description of these flags and what they mean, along with the binary code of each flag. The flags data set contains all the flags related to the different geophysical data sets in the 'Bands' folder. Several pixels have been given more than one flag. This is the case for instance with pixels given the flag value 3655697. The key to the flags are in the binary version of this number.
Question 1.
Using a class flag to select valid dataThe flag codes may be used to make a bitmask to remove invalid data from the algal_1 image. For instance, only pixels classified as water are of interest in a gridded image of chlorophyll concentrations, and the WATER flag allows you to select these pixels. Bilko applies masks using formula documents. Once you know how these work, you can write a formula to suit any flag and data set you want. The following steps take you through the process of applying a bitmask formula to mask invalid pixels in the algal_1 data from the Benguela.
The formula follows the standard Bilko pattern (see figure (5K)). for details). Question 2.
if ((l2_flags&WATER)==WATER)
Note:
In the table above WATER = 2097152, a number where only one position (bit 21) has the value 1.
The pixel's FLAG VALUE = 4196353, which has 1 in three different bit positions,
each corresponding to a particular flag. If you are still unsure how to tackle this,
'Bitwise operators and Meris flags'
explains. Having seen how the formula works, you wil now apply it to create a new image containing only water pixels.
Notice how the blank image is filled with data where the WATER flag holds true, while remaining pixels are white (255). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Answers: |
Question 3. There is clearly a need to improve the selection of pixels before using the image in a gridded composite. The next subsection will tackle this problem. Before you continue, save a copy of the image you just created:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|