TNC-NMFO / NWLAND

carbon accounting model
0 stars 0 forks source link

write_caland_inputs() fire area file naming requirements #46

Open sbassett opened 3 years ago

sbassett commented 3 years ago

When calling write_caland_inputs(), it looks like specific file names are being enforced. Historic climate (CLIMATE = 'HIST') must be paired with fire_area_file = 'fire_area_canESM2_85_bau_2001_2100.csv'

sbassett commented 3 years ago

As a quick fix, I'm going to rename the file fire_area_RDS-2020-0016_averageannual_2001-2100.csv to fire_area_canESM2_85_bau_2001_2100.csv.

fire_area_canESM2_85_bau_2001_2100.csv will be renamed ```caland_fire_area_canESM2_85_bau_2001_2100.csv"

sbassett commented 3 years ago

For some reason I can't trick it to accepting this file, am temporarily commenting out this test in write_caland_inputs.r


#if (CLIMATE == "HIST" & fire_area_file != "fire_area_canESM2_85_bau_2001_2100.csv") {
#  stop("Historic climate (CLIMATE = 'HIST') must be paired with fire_area_file = 'fire_area_canESM2_85_bau_2001_2100.csv'\n")
#}```
sbassett commented 3 years ago

Reopening since it would be nice to have a check to confirm that an appropriate file is being used.