Link to the UNESCO-IOC website
Link to the Bilko website
Earth from space
Annual sea surface temperature

5.4.2 creating the composite

Choosing a suitable grid   Resampling to the new grid   Creating the composite

LESSON 5

Overview

back to bottom of page next

References:
List of journal references

Images:

MER_RR_2COLRA 200402~.N1 Description

Download image 1 (29 MB)
Download image 2 (26 MB)
Download image 3 (28 MB)

 
Useful information:

The Benguela Current System

The MERIS product grid.

MERIS level 2 flags

Bitwise operators and Meris flags

Once the contributing scenes have been masked to leave only valid data, they are ready for the last three steps in the process of creating a composite:

  • selecting a grid that will contain all contributing scenes at the right resolution
  • resampling each image to the composite grid
  • combining the scenes, calculating the average chlorophyll values and writing these to a new composite image.

Choosing a suitable grid

To select an appropriate grid for the new image you should first consider the following:

  • What coordinate system will you be using?
  • How big is the study area, and where are its boundaries?
  • What is the spatial resolution of the contributing images? (There is little point in making a new image with finer resolution than the original data.)
  • What is the error of the geometric correction for the images? (This is 2km for MERIS and AATSR). Are there reasons for using a finer resolution than this?
  • What resampling method will be used, and how might that affect the choice of spatial resolution?
  • The size of the new image in terms of rows and columns. To avoid a gridded image that is too big to be handled comfortably by the software when you come to calculate the composite you may need to reduce the study area, split the image into two or more sections, or perhaps reduce the spatial resolution.

You should be able to determine all these things by carefully considering the images you will be combining.

Note: you will need to open the files MER_RR__COLRA2004202_a1e.dat and MER_RR__COLRA2004203_a1e.dat.

Question 1.

a)

What coordinate system would you chose for the 3-day composite of the Benguela region?

b)

What area should you chose as the image window (i.e. what are longitudes of the left and right edges and the latitudes of the top and bottom edges)?

c)

What spatial resolution (pixel size in degrees) would you choose, based on your study of the contributing scenes?

d)

There are three possible resampling methods. Which would you choose in this instance? If in doubt take a look at the pop-up 'Image resampling methods'.

e)

The geocorrection error for Meris pixels is 2km. How does this compare with the size of your pixels? Are there reasons why you might need a finer resolution?

f)

What would be the size of the composite grid given in columns (DX) and rows (DY). Is this a manageable image size?

to bottom of page

Resampling scenes to the new grid

The new grid will cover a wider area than any of the three single scenes contributing to it. It is therefore not sufficient to run 'Resample' and accept the default options. You have to ensure that the spatial resolution and window size are the same for each of the component scenes, otherwise they cannot be combined to calculate the composite.

  1. Activate the scene to be corrected
  2. Right-click on the image and select 'Redisplay' to set the null value to 255.
  3. From the 'Image' menu choose 'Resample' to open the 'Resample' dialogue.
  4. With the Interpolation options on top, set the options:
          -   Based on: Self
          -   Method: Nearest neighbour
          -   Null value: 255
    Apply the changes before continuing.
  5. Select the 'Window' tab and enter the following window edge coordinates, 0°E,30°E 2°S,40°S. Remember to apply the changes.
  6. Select the 'Pixel' tab, set the pixel size to you choice from Question 1 and apply the changes.
  7. Select the 'Image' tab and check that the size is what you expected from your calculations in Question 1. If not, check the 'Window' and 'Pixel' options again.
  8. When all settings are correct, click OK to accept and resample the image.
  9. Save the image as mer2004020*_a1r.dat

Creating the composite

To create the composite you will need to combine three scenes into a set, and apply a formula to carry out the necessary calculations.

Open the formula composite_mer_algal1.frm. As you can see the formula follows the usual Bilko format and is divided into the following sections

  • A general description of what the formula does.
  • Constant declarations
  • A statement to calculate the number of valid data points at each pixel location
  • A statement to add all the valid data values at each pixel location and write the result to an interim image
  • A final statement calculating the average from the sum and count of valid data.

Question 2.
Before you continue, spend some time studying the formula and use this to help you answer the following questions:

a)

Like most Bilko formulae this one works on a set of connected images. How many images are required in the set for this formula to work? How many of these are new blank images?

b)

What names are these images given in the constant declarations, and what number should each have in the stacked set?

c)

Why must the output data be 32-bit float?

to bottom of page

Once your are happy that you know how the formula works, and how to organise the images to achieve the desired output, you are ready to calculate the composite.

  1. Open the scenes MER_RR__2COLRA20040202_a1r.dat and MER_RR__220040202_a1r.dat these files are the next two days data that have already been resampled for you.
  2. Connect the three scenes, the one resampled earlier and the two resampled for you, into a stack and add the necessary number of blank images (see answer 2a).
  3. Make sure the images in the stack are in the right order. To change the number of an image in the stack use the 'Selector' to highlight it, then type the number you want it to have. For example, if you want to change @4 to become @1, select @4 and press 1 on the keyboard. Then select @5 and press 2 on the keyboard. Having done this you will now find the three images have become @3,@4,and @5, with the two blanks at @1 and @2. Check that this is actually the case, otherwise the formula may inadvertently over-write the original images. If that happens all you can do is start again, as Bilko has no 'undo'.
  4. Activate the formula, and choose Options! from the menu bar. Change the output type to 32-bit float (necessary because the formula uses the actual chlorophyll concentrations), and uncheck the 'Special handling for nulls' box.
  5. Apply the formula by pasting it onto the set of connected images.

When you examine the two new image planes ( @1 and @2 ) to see how they have changed, you will notice they are both completely black. This is because the stretch used is inappropriate for the range of data values in the two new images.

Question 3.

a)

What stretch settings would you use to display the image containing the 'count' data to see it properly?

b)

What stretch settings would you use to display the composite image? (You may find a histogram of the composite helpful in deciding on stretch type and maximum values.) to bottom of page

Right-click on the image and select Redisplay to change the stretch settings for both these images to those suggested by your answer to Question 3.

Question 4.

a)

How well does image cover the area of interest? Is it sufficient to give a reasonable impression of chlorophyll vairablity? If not, how would you go about creating a more complete cover?

b)

What modification would you need to make to the formula in order to accommodate additional scenes? to bottom of page

Answers:
(Resizable pop-ups)

Answer 1

Answer 2

Answer 3

Answer 4

Answer 5

Back up to:
Q1   Q2   Q3   Q4   Q5  

We are now going to create the eight day composite and look at the differences between the three and eight day data.

  1. Save the results of your three day composite as mer_200402_3day.dat and close all open images.
  2. Make the changes to the formula that you suggested in you answer to Question 4 so that you can process eight scenes.
  3. Open the images MER_RR__2COLRA200402*_a1r.dat from 01 to 08.
  4. Repeat steps 2-5 from the above instructions on how to create a composite making the necessary changes to create an eight rather than three day composite.
  5. Apply the stretches you sugggested in your answer to question three, save the new composite as mer_200402_8day.dat and close all other images.

Question 5.

a)

Open the file mer_200402_3day.dat and compare this to the eight day composite that you have just created, what are the differences? Does the eight day composite give you an advantage?

b)

Try applying some colour palettes, do you find these help you see more detail?

back to top of page next

 
Next: Comparing MERIS and MODIS