kdorheim / 2024.SULI.practice

Practice and training materials for 2024 Hector SULI
0 stars 0 forks source link

Hector with constraints #8

Closed kdorheim closed 5 months ago

kdorheim commented 5 months ago

@kdorheim to add more details and examples but goal is to have PS run hector in constraint mode set via R and also via ini file

kdorheim commented 5 months ago

For this Hector activity, you are going to run Hector several times

  1. the default free running or emission driven ssp245 run
  2. ssp245 hector driven with co2 constraints set via the R interface
  3. ssp245 hector driven with co2 constraints set via the ini file

Setting the constraints via the R interface

  1. get the CO2_constraint column from input/tables/ssp245_emiss-constraints_rf.csv use system.file to access this
  2. Apply the constraint to the ssp245 hector core like you did when you were changing the parameters see here for an example

Setting the constraints via the ini file

  1. download this file hector_inputs.zip, unzip and save in some location in our repo
  2. open the .ini file and uncomment the CO2_constrain line by removing the ; save the ini file
  3. from Rstudio set up a new core but instead of using a default hector ini file accessed via system.file to set up a new hector core pass a relative path to the ini file you created in step 2

    Please compare [CO2] and gmst results from the three different runs with one another.

Bonus question: what happens when you change beta or q10 from default values after applying the co2 constraint?