Comparing CHIRPS with observed data

In previous exercises we have used Python and CHIRPS rainfall data to calculate several statistics about rainfall in Vietnam. The python scripts we used to do this always followed to following steps:

1. Define which data we want to use/open
2. Create a new variable to store results
3. Open the data from step 1
4. Do a calculation
5. Save the result in the variable from step 2

Using these 5 steps, we are now going to compare observed rainfall data from a meteo-station in Hanoi to data from CHIRPS. The observed rainfall data can be downloaded here (or get it from the USB stick).

In order to compare the observed values with CHIRPS data, we need to follow the five steps described above. To do this, you can use some of these functions:

Function 1 This function requires 1 input called “folder”. When you input a string of the location of your folder, it returns a list of all the tif-files in the folder.