Skip to content

Commit e0d8ae8

Browse files
Merge branch 'develop' into main
# Conflicts: # requirements/env_developer.yml
2 parents 70919a9 + 2ea8e55 commit e0d8ae8

File tree

189 files changed

+42351
-20414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+42351
-20414
lines changed

AUTHORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ David N. Bresch
33
Samuel Eberenz
44
Jan Hartman
55
Marine Perus
6-
Thomas Roosli
6+
Thomas Röösli
77
Dario Stocker
88
Veronica Bozzini
99
Tobias Geiger
@@ -12,7 +12,7 @@ Evelyn Mühlhofer
1212
Rachel Bungerer
1313
Inga Sauer
1414
Samuel Lüthi
15-
Pui Man (Mannie) Kam
15+
Pui Man Kam
1616
Simona Meiler
1717
Alessio Ciullo
1818
Thomas Vogt

climada/__init__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
SYSTEM_DIR.joinpath('GDP_TWN_IMF_WEO_data.csv'),
4444
SYSTEM_DIR.joinpath('FAOSTAT_data_country_codes.csv'),
4545
SYSTEM_DIR.joinpath('rcp_db.xls'),
46-
SYSTEM_DIR.joinpath('tc_if_cal_v01_TDR1.0.csv'),
47-
SYSTEM_DIR.joinpath('tc_if_cal_v01_EDR.csv'),
48-
SYSTEM_DIR.joinpath('tc_if_cal_v01_RMSF.csv'),
46+
SYSTEM_DIR.joinpath('tc_impf_cal_v01_TDR1.0.csv'),
47+
SYSTEM_DIR.joinpath('tc_impf_cal_v01_EDR.csv'),
48+
SYSTEM_DIR.joinpath('tc_impf_cal_v01_RMSF.csv'),
4949
],
5050
'data/system/GSDP': [
5151
GSDP_DIR.joinpath(f'{cc}_GSDP.xls')
@@ -66,6 +66,8 @@
6666
DEMO_DIR.joinpath('demo_emdat_impact_data_2020.csv'),
6767
DEMO_DIR.joinpath('histsoc_landuse-15crops_annual_FR_DE_DEMO_2001_2005.nc'),
6868
DEMO_DIR.joinpath('hist_mean_mai-firr_1976-2005_DE_FR.hdf5'),
69+
DEMO_DIR.joinpath('crop_production_demo_data_yields_CHE.nc4'),
70+
DEMO_DIR.joinpath('crop_production_demo_data_cultivated_area_CHE.nc4'),
6971
DEMO_DIR.joinpath('FAOSTAT_data_producer_prices.csv'),
7072
DEMO_DIR.joinpath('FAOSTAT_data_production_quantity.csv'),
7173
DEMO_DIR.joinpath('lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_annual_FR_DE_DEMO_1861_2005.nc'),
@@ -76,18 +78,20 @@
7678
DEMO_DIR.joinpath('pepic_miroc5_ewembi_historical_2005soc_co2_yield-whe-noirr_global_annual_DEMO_TJANJIN_1861_2005.nc'),
7779
DEMO_DIR.joinpath('WS_ERA40_sample.mat'),
7880
DEMO_DIR.joinpath('WS_Europe.xls'),
81+
DEMO_DIR.joinpath('Portugal_firms_June_2017.csv'),
82+
DEMO_DIR.joinpath('Portugal_firms_2016_17_18_MODIS.csv'),
7983
] + WS_DEMO_NC
8084
}
8185

8286

83-
def setup_climada_data():
87+
def setup_climada_data(reload=False):
8488

8589
for dirpath in [DEMO_DIR, SYSTEM_DIR, GSDP_DIR]:
8690
dirpath.mkdir(parents=True, exist_ok=True)
8791

8892
for src_dir, path_list in REPO_DATA.items():
8993
for path in path_list:
90-
if not path.exists():
94+
if not path.exists() or reload:
9195
src = Path(__file__).parent.parent.joinpath(src_dir, path.name)
9296
copyfile(src, path)
9397

climada/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.1'
1+
__version__ = '2.1.1-dev'

climada/conf/climada.conf

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,30 @@
2525
}
2626
},
2727
"exposures": {
28+
"def_ref_year": 2018,
2829
"crop_production": {
2930
"local_data": "{local_data.system}/ISIMIP_crop"
3031
},
3132
"litpop": {
3233
"resources": {
3334
"world_bank_inc_group": "http://databank.worldbank.org/data/download/site-content/OGHIST.xls"
35+
},
36+
"gpw_population": {
37+
"filename_gpw": "gpw_v4_population_count_rev%02i_%04i_30_sec.tif",
38+
"dirname_gpw": "gpw-v4-population-count-rev%02i_%04i_30_sec_tif",
39+
"gpw_version": 11,
40+
"years_available": [2020, 2015, 2010, 2005, 2000]
41+
},
42+
"nightlights": {
43+
"blackmarble_years": [2012, 2016],
44+
"noaa_url": "https://ngdc.noaa.gov/eog/data/web_data/v4composites/",
45+
"nasa_url_start": "https://eoimages.gsfc.nasa.gov/images/imagerecords/144000/",
46+
"nasa_url_ends" : ["144896/", "144897/", "144898/"],
47+
"nasa_site_old" : "https://www.nasa.gov/specials/blackmarble/*/tiles/georeferrenced/",
48+
"nasa_sites" : ["https://eoimages.gsfc.nasa.gov/images/imagerecords/144000/144897/",
49+
"https://eoimages.gsfc.nasa.gov/images/imagerecords/144000/144896/",
50+
"https://www.nasa.gov/specials/blackmarble/*/tiles/georeferrenced/",
51+
"https://eoimages.gsfc.nasa.gov/images/imagerecords/144000/144898/"]
3452
}
3553
},
3654
"spam_agrar": {
@@ -50,7 +68,8 @@
5068
"local_data": "."
5169
},
5270
"relative_cropyield": {
53-
"local_data": "{exposures.crop_production.local_data}"
71+
"local_data": "{exposures.crop_production.local_data}",
72+
"filename_wheat_mask": "mask_winter_and_spring_wheat_areas_phase3.nc4"
5473
},
5574
"trop_cyclone": {
5675
"random_seed": 54
@@ -60,5 +79,10 @@
6079
}
6180
},
6281
"log_level": "WARNING",
63-
"max_matrix_size": 1000000000
82+
"max_matrix_size": 1000000000,
83+
"data_api": {
84+
"host": "https://climada.ethz.ch",
85+
"chunk_size": 8192,
86+
"cache_db": "{local_data.system}/.downloads.db"
87+
}
6488
}

0 commit comments

Comments
 (0)