This is a repository for the final assignment for APEC8601 2024 Spring.
Country: El Salvador (ISO code: “SLV”).
The final report for the project is available from here.
Summary Report
In the case of El Salvador, a significant change in ecosystem services cannot be confirmed during the period 2030-2040 in each SSP scenario. One reason for this is that the time period (10 years) I used in this analysis was too short to see a significant land-use change. This implies that a policymaker should not expect a policy to affect their ecosystem services instantly; rather, it takes a long time to see results. Another reason why I could not see any changes in ecosystem services in El Salvador might be that the assumed policy in this analysis is linked to ecosystem services. Given the distinct socio-economic conditions by country, a policymaker should not expect that a policy that positively impacted ecosystem services in another nation has a similar effect on their country. A deep understanding of their county’s unique mechanism of ecosystem services is required to achieve green economic development.
</br>
Below, I explain the steps that I took for each question of the final project.
run_test_standard.py file. To create a new project folder, change this line 24 to project_name = "project_slv". Then run run_test_standard.py using the VS code Debugger. This newly creates project_slv folder under Files/seals/projects.First, download the data for RCP2.6 SSP1 and RCP7.0 SSP3 during the period 2015-2100 from Hurrt et al. (2020) (or use Johnson/Polasky lab drive in the Johnson-Polasky Lab Drive/earth_economy_data_internal/base_data/luh2/raw_data). Save each of those data in base_data/luh2/raw_data/rcp45_ssp2 and base_data/luh2/raw_data/rcp70_ssp3 folder, respectively.
Open scenario_definitions.csv file under project_slv/input folder. Then, modify the file as follows:
aoi column to “SLV”.scenario_label, exogenous_label, climate_label, coarse_projections_input_path, accordingly.run_test_standard.py file.[!WARNING]
Before you run run_test_standard.py with the modified scenario_defenitions.csv , you need to delete all the files/folders inside each folder directly under the folder of project_slv/intermediate (Do not delete any folder directly under project_slv/intermediate ).
</br>
See org_image.Rmd. This file copies the generated maps in part (a) to the images folder, and make the individual maps across years into a single .png file by SSP scenario.
</br>
For this question, I modified the calibration parameters file so that cropland cannot expand into forest.
default_global_coefficients.csv.
base_data/seals/default_inputs/default_global_coefficients.csv, and change the value in cell E5 to zero.run_test_standard.py file.org_image.Rmd create a single .png files for each scenario.</br>
slv_InVEST_out under the Files/base_data folder.slv_InVEST_out folder, create two folder: ssp1_rcp26 and ssp3_rcp70:
slv_InVEST_out/ssp1_rcp26 folder stores InVEST outputs based on SEALs output based on RCP2.6-SSP1 scenario.slv_InVEST_out/ssp3_rcp70 folder stores InVEST outputs based on SEALs output based on RCP7.0-SSP3 scenario.slv_InVEST_out/ssp1_rcp26, create the following folders: AnnualWaterYield, CarbonStorage, CropPollination, SedimentRetention, e. NutrientRetention. Repeat this for slv_InVEST_out/ssp1_rcp26 folder.prep_InVEST_inputs.R. CRSs of all spatial input data were transformed into WGS 84 / UTM zone 16N (EPSG:32616).Run_InVEST_code folder. Each file contains python code that I used to run each InVEST model.plot.R.Data source is shown inside [ ]. * indicates the path to the base_data folder in the Johnson/Polasky lab drive. ^ indicates my base_data folder. These data sources are processed for SLV with prep_InVEST_inputs.R, and the produced data is used for each InVEST model. Most of the data was obtained from the Johnson/Polasky lab drive. I downloaded the data into my local Files/base_data with the same structure as the Johnson/Polasky lab drive. For example, base_data/mesh/isric/depth_to_root_restricting_layer.tif in Johnson/Polasky lab drive was download in Files/base_data/mesh/isric/depth_to_root_restricting_layer.tif in my local drive.
</br>
Annual Water Yield (AWY)
*/mesh/worldclim/baseline/5min/baseline_bio12_Annual_Precipitation.tif]*/mesh/cgiar_csi/pet.tif]*/mesh/isric/depth_to_root_restricting_layer.tif]*/mesh/soil/pawc_30s.tif]^/mesh/biophysical_table.csv]*/mesh/hydrosheds/hydrobasins/hybas_na_lev01-06_v1c/hybas_na_lev06_v1c.shp][!NOTE]
(1) You need to modify some column names in
hybas_na_lev06_v1c.shpto make it compatible with InVEST. Specifically, you need to change ` HYBAS_IDtows_id. (2) For the biophysical table, I combined*/mesh/esa_and_modis_biophysical_table.csvand^/seals/default_inputs/esa_seals7_correspondence.csvto create^/mesh/biophysical_table.csv. Specifically, I merged the two.csvfiles using lulc code, and aggregated the values inesa_and_modis_biophysical_table.csvof by SEALs LULC category. The code to createbiophysical_table.csvis included inprep_InVEST_inputs.R. (3) Inesa_seals7_correspondence.csv,lulc_vegis missing foresacolumn, so you need to definelulc_vegby yourself. Follow the description oflulc_veg` in InVEST website.
[!WARNING] In
esa_and_modis_biophysical_table.csv, there are twoKccolumns with different value.Kcis a crop coefficient, and this is one of the required inputs to run Annual Water Yield InVEST model. I picked one of theKccolumns. Also, I found duplicated names in thesrc_lablecolumn inesa_seals7_correspondence.csv.tree_needleleaved_deciduous_closed_to_open_15can be found in row 13 and 16 althoughsrc_lablein each row should be unique. I simply disregarded one of those duplicated rows.
</br>
Carbon Storage (CS) model
^/mesh/biophysical_table.csv]</br>
Crop Pollination (CP) model
^/mesh/biophysical_table.csv][!NOTE]
For guide table, I used the table attached to the sample data of the InVEST Crop Pollination model. For the biophysical table for the pollination model, I refereed Koh et al. (2016) and incorporated their table into my
^/mesh/biophysical_table.csv.
</br>
Sediment Delivery Ratio (SDR) model
*/base_data/static_regressors/alt_m.tif]^/mesh/biophysical_table.csv]*/mesh/hydrosheds/hydrobasins/hybas_na_lev01-06_v1c/hybas_na_lev06_v1c.shp]</br>
Nutrient Delivery Ratio (NDR) model
*/base_data/seals/static_regressors/alt_m.tif]*/mesh/worldclim/baseline/5min/baseline_bio12_Annual_Precipitation.tif]*/mesh/hydrosheds/hydrobasins/hybas_na_lev01-06_v1c/hybas_na_lev06_v1c.shp]^/mesh/biophysical_table.csv][!NOTE]
For nutrient runoff proxy, I used annual precipitation data for SLV.