H Exercise 06

Last updated: 2020-09-28 17:50:25

H.1 Question 1

  • Read the MOD13A3_2000_2019.tif raster to a multi-band raster object. This raster is a series of NDVI images from southern Israel. The date each layer refers to is recorded in the corresponding MOD13A3_2000_2019_dates.csv file.
  • Calculate a 12-band raster that will contain the average NDVI per pixel (excluding NA) for each month. The first band will contain the maximal values per pixel in all images taken in January, the second band will contain the maximal values per pixel in all images taken in February, and so on. Use corresponding the MOD13A3_2000_2019_dates.csv table to determine the layers corresponding to each month.
  • Plot the resulting raster as shown in Figure H.1 (including month names). Use breaks="equal" for equal color breaks.
  • Remember: you cannot use the raster package in your solution! (see Section B.5.5.)
Average NDVI value per month in `modis_south.tif`

Figure H.1: Average NDVI value per month in modis_south.tif

(50 points)

H.2 Question 2

  • Calculate a line that goes through all of the meteorological stations in rainfall.csv, from south to north
  • Plot (Figure H.2):
    • The path you calculated (as a line)
    • The station locations (as circles)
Path through all meteorological stations in `rainfall.csv`, from south to north

Figure H.2: Path through all meteorological stations in rainfall.csv, from south to north

(50 points)