diff --git a/conf/hermes.conf b/conf/hermes.conf index aa0e356c180cf33a17ca0e02407834f19d6e7cc1..0b1e1fcb270a8fbad7e248b4edf62baa0fe21fbb 100644 --- a/conf/hermes.conf +++ b/conf/hermes.conf @@ -4,9 +4,9 @@ input_dir = /home/user/HERMES/HERMES_IN data_path = /home/user/HERMES/datasets output_dir = /home/user/HERMES/HERMES_OUT output_name = HERMESv3_.nc -start_date = 2018/01/01 00:00:00 +start_date = 2017/01/01 00:00:00 # ***** end_date = start_date [DEFAULT] ***** -# end_date = 2018/01/02 00:00:00 +# end_date = 2017/01/02 00:00:00 # ***** output_timestep_type = [hourly, daily, monthly, yearly] ***** output_timestep_type = hourly output_timestep_num = 24 diff --git a/hermesv3_gr/tools/sample_files.py b/hermesv3_gr/tools/sample_files.py index ebb2dd8e41cbfb4a35697354485c0536a23643d5..d8fee3fedd73e61643223ba7837addd38ff04065 100644 --- a/hermesv3_gr/tools/sample_files.py +++ b/hermesv3_gr/tools/sample_files.py @@ -81,11 +81,37 @@ def make_preproc_file_list(): os.path.join(main_dir, 'preproc', 'edgarv432_ap_preproc.py'), os.path.join(main_dir, 'preproc', 'edgarv432_voc_preproc.py'), os.path.join(main_dir, 'preproc', 'emep_preproc.py'), - os.path.join(main_dir, 'preproc', 'gfas12_preproc.py'), + os.path.join(main_dir, 'preproc', 'GFAS_Parameters.csv'), + os.path.join(main_dir, 'preproc', 'wiedinmyer_preproc.py'), os.path.join(main_dir, 'preproc', 'htapv2_preproc.py'), os.path.join(main_dir, 'preproc', 'tno_mac_iii_preproc.py'), os.path.join(main_dir, 'preproc', 'tno_mac_iii_preproc_voc_ratios.py'), + os.path.join(main_dir, 'preproc', 'VOC_split_AIR.csv'), + os.path.join(main_dir, 'preproc', 'VOC_split_SHIP.csv'), os.path.join(main_dir, 'preproc', 'wiedinmyer_preproc.py'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc01.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc02.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc03.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc04.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc05.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc06.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc07.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc08.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc09.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc12.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc13.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc14.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc15.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc16.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc17.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc18.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc19.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc20.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc21.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc22.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc23.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc24.nc'), + os.path.join(main_dir, 'preproc', 'nmvoc', 'ratio_voc25.nc'), ] return file_list diff --git a/preproc/GFAS_Parameters.csv b/preproc/GFAS_Parameters.csv new file mode 100644 index 0000000000000000000000000000000000000000..67ff68e75cf375c7c8e3c52c30690b1f4c360d2b --- /dev/null +++ b/preproc/GFAS_Parameters.csv @@ -0,0 +1,35 @@ +Name;Short_Name;Units;id +Carbon Monoxide;co;kg m-2 s-1;81 +Nitrogen Oxides expressed as monoxide nitrogen;nox_no;kg m-2 s-1;85 +Particulate Matter PM2.5;pm25;kg m-2 s-1;87 +Organic Carbon;oc;kg m-2 s-1;90 +Black Carbon;bc;kg m-2 s-1;91 +Sulfur Dioxide;so2;kg m-2 s-1;102 +Methanol;ch3oh;kg m-2 s-1;103 +Ethanol;c2h5oh;kg m-2 s-1;104 +Propane;c3h8;kg m-2 s-1;105 +Ethene;c2h4;kg m-2 s-1;106 +Propene;c3h6;kg m-2 s-1;107 +Isoprene;c5h8;kg m-2 s-1;108 +Terpenes;terpenes;kg m-2 s-1;109 +Higher Alkenes;hialkenes;kg m-2 s-1;111 +Higher Alkanes;hialkanes;kg m-2 s-1;112 +Formaldehyde;ch2o;kg m-2 s-1;113 +Acetaldehyde;c2h4o;kg m-2 s-1;114 +Acetone;c3h6o;kg m-2 s-1;115 +Ammonia;nh3;kg m-2 s-1;116 +Dimethyl Sulfide;c2h6s;kg m-2 s-1;117 +Ethane;c2h6;kg m-2 s-1;118 +Mean altitude of maximum injection above sea level;mami;m;119 +Altitude of plume top above sea level;apt;m;120 +Toluene;c7h8;kg m-2 s-1;231 +Benzene;c6h6;kg m-2 s-1;232 +Xylene;c8h10;kg m-2 s-1;233 +Butenes;c4h8;kg m-2 s-1;234 +Pentenes;c5h10;kg m-2 s-1;235 +Hexene;c6h12;kg m-2 s-1;236 +Octene;c8h16;kg m-2 s-1;237 +Butanes;c4h10;kg m-2 s-1;238 +Pentanes;c5h12;kg m-2 s-1;239 +Hexanes;c6h14;kg m-2 s-1;240 +Heptane;c7h16;kg m-2 s-1;241 diff --git a/preproc/VOC_split_AIR.csv b/preproc/VOC_split_AIR.csv new file mode 100644 index 0000000000000000000000000000000000000000..81478e56721f0fdcbbdc364223c79f56ce509103 --- /dev/null +++ b/preproc/VOC_split_AIR.csv @@ -0,0 +1,17 @@ +voc_group;factor +voc02;0.009736247 +voc03;0.001946003 +voc05;0.00235668 +voc06;0.058182599 +voc07;0.193170047 +voc08;0.056987169 +voc09;0.046143523 +voc12;0.093551033 +voc13;0.02141335 +voc14;0.007582062 +voc15;0.005327284 +voc17;0.040870371 +voc21;0.165919855 +voc22;0.136730768 +voc23;0.027038951 +voc25;0.133044058 diff --git a/preproc/VOC_split_SHIP.csv b/preproc/VOC_split_SHIP.csv new file mode 100644 index 0000000000000000000000000000000000000000..a65e703f4daa3ddf77257f5ea754e7b7ed52f1a3 --- /dev/null +++ b/preproc/VOC_split_SHIP.csv @@ -0,0 +1,23 @@ +voc_group;factor +voc01;0.004182057 +voc02;0.014937779 +voc03;0.008426608 +voc04;0.152332276 +voc05;0.125634439 +voc06;0.208528162 +voc07;0.03392593 +voc08;0.010951092 +voc09;0.008488102 +voc12;0.094380 +voc13;0.016227166 +voc14;0.068025622 +voc15;0.057179286 +voc16;0.042452805 +voc17;0.041350 +voc18;0.000011 +voc19;0.000144691 +voc21;0.00629797 +voc22;0.004745464 +voc23;0.000112979 +voc24;0.000006 +voc25;0.101661994 diff --git a/preproc/ceds_preproc.py b/preproc/ceds_preproc.py index 3e22812d99fb4a47a9c218c635f5521f7d7d4277..5a5385b578f50b9a1e62ac6649cfe4c86a9eba11 100755 --- a/preproc/ceds_preproc.py +++ b/preproc/ceds_preproc.py @@ -21,6 +21,12 @@ import os import sys +# ============== README ====================== +""" +downloading website: http://www.globalchange.umd.edu/ceds/ceds-cmip6-data/ +reference: https://www.geosci-model-dev.net/11/369/2018/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/jgcri/ceds/original_files' diff --git a/preproc/eclipsev5a_preproc.py b/preproc/eclipsev5a_preproc.py index 9d28b7763b7d870f4c80497f572597ab73c6a3e0..9dd76589f629e4f728c1fecdcc94d4e1b6429e1c 100755 --- a/preproc/eclipsev5a_preproc.py +++ b/preproc/eclipsev5a_preproc.py @@ -24,6 +24,12 @@ from netCDF4 import Dataset import numpy as np from cf_units import Unit +# ============== README ====================== +""" +downloading website: http://www.iiasa.ac.at/web/home/research/researchPrograms/air/ECLIPSEv5a.html +reference: http://pure.iiasa.ac.at/id/eprint/11367/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/iiasa/eclipsev5a/original_files' diff --git a/preproc/edgarv432_ap_preproc.py b/preproc/edgarv432_ap_preproc.py index 945781ed9defa22b3a8a07902c34b863d804b1d5..67ee72b251ef1069a26b152265113927716bf0de 100755 --- a/preproc/edgarv432_ap_preproc.py +++ b/preproc/edgarv432_ap_preproc.py @@ -23,6 +23,12 @@ from netCDF4 import Dataset import numpy as np from warnings import warn as warning +# ============== README ====================== +""" +downloading website: http://edgar.jrc.ec.europa.eu/overview.php?v=432_AP +reference: https://www.earth-syst-sci-data-discuss.net/essd-2018-31/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/jrc/edgarv432_ap/original_files/' @@ -38,7 +44,7 @@ LIST_YEARS = [2010] PROCESS_YEARLY = False YEARLY_INPUT_NAME = 'yearly/v432___.0.1x0.1.nc' -# To process monthly emissions, 2010 directly from monthly_input_name and other years calculated using bla bla bla +# To process monthly emissions, 2010 directly from monthly_input_name and other years calculated using monthly gridded factors derived from the 2010 monthly data PROCESS_MONTHLY = True MONTHLY_INPUT_NAME = 'monthly/v432__2010__.0.1x0.1.nc' MONTHLY_PATTERN_FILE = 'temporal_profiles/v432_FM_.0.1x0.1.nc' diff --git a/preproc/edgarv432_voc_preproc.py b/preproc/edgarv432_voc_preproc.py index 8f8e6ccbc57115dc007fb99c821045a818e231be..091ce93c54cfc2ab6ab47c4fdf93c9db9f94f16d 100755 --- a/preproc/edgarv432_voc_preproc.py +++ b/preproc/edgarv432_voc_preproc.py @@ -23,6 +23,12 @@ from netCDF4 import Dataset import numpy as np from warnings import warn as warning +# ============== README ====================== +""" +downloading website: http://edgar.jrc.ec.europa.eu/overview.php?v=432_VOC_spec +reference: https://www.atmos-chem-phys.net/17/7683/2017/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/jrc/edgarv432_voc/original_files/' @@ -39,7 +45,7 @@ LIST_YEARS = [2010] PROCESS_YEARLY = True YEARLY_INPUT_NAME = 'yearly/v432_VOC_spec___.0.1x0.1.nc' -# To process monthly emissions, 2010 directly from monthly_input_name and other years calculated using bla bla bla +# To process monthly emissions, 2010 directly from monthly_input_name and other years calculated using monthly gridded factors derived from the 2010 monthly data PROCESS_MONTHLY = False MONTHLY_INPUT_NAME = 'monthly/v432_VOC_spec__2010__.0.1x0.1.nc' MONTHLY_PATTERN_FILE = 'temporal_profiles/v432_FM_.0.1x0.1.nc' diff --git a/preproc/emep_preproc.py b/preproc/emep_preproc.py index 6df1d379fe453828f07f18cab1bc72bb1dadaa9b..15f44b0a9684f6ba1313477b9b552846be350a69 100755 --- a/preproc/emep_preproc.py +++ b/preproc/emep_preproc.py @@ -22,6 +22,12 @@ import os from warnings import warn as warning from datetime import datetime +# ============== README ====================== +""" +downloading website: http://www.ceip.at/new_emep-grid/01_grid_data +reference: http://www.ceip.at/ms/ceip_home1/ceip_home/review_results/review_reports/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/ceip/emepv18/original_files' diff --git a/preproc/gfas12_preproc.py b/preproc/gfas12_preproc.py index 6dd4a62bf2a9393c402f97d0e2ff23d7cddc0137..328cbc04fe86e2693536b63a7a62af2109f644c2 100755 --- a/preproc/gfas12_preproc.py +++ b/preproc/gfas12_preproc.py @@ -25,6 +25,13 @@ import pandas as pd import datetime from datetime import datetime, timedelta +# ============== README ====================== +""" +downloading website: http://apps.ecmwf.int/datasets/data/cams-gfas/ +reference: https://www.biogeosciences.net/9/527/2012/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" + # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/ecmwf/gfas/original_files/ga_mc_sfc_gfas_ecmf/' INPUT_NAME = 'ga_.grb' diff --git a/preproc/htapv2_preproc.py b/preproc/htapv2_preproc.py index 8766dde1cd05e094329f6fe1d6f8855c2c047c39..a81aebe5a968ff8e068bff24918a984008d13fec 100755 --- a/preproc/htapv2_preproc.py +++ b/preproc/htapv2_preproc.py @@ -20,6 +20,12 @@ import os +# ============== README ====================== +""" +downloading website: http://edgar.jrc.ec.europa.eu/htap_v2/ +reference: https://www.atmos-chem-phys.net/15/11411/2015/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/jrc/htapv2/original_files' diff --git a/preproc/nmvoc/ratio_voc01.nc b/preproc/nmvoc/ratio_voc01.nc new file mode 100644 index 0000000000000000000000000000000000000000..372ef1f06841cc2b8a3912db6607760b91e2a733 Binary files /dev/null and b/preproc/nmvoc/ratio_voc01.nc differ diff --git a/preproc/nmvoc/ratio_voc02.nc b/preproc/nmvoc/ratio_voc02.nc new file mode 100644 index 0000000000000000000000000000000000000000..b5acd2c4b646ab3ef74228f2eb723ccee6e3c067 Binary files /dev/null and b/preproc/nmvoc/ratio_voc02.nc differ diff --git a/preproc/nmvoc/ratio_voc03.nc b/preproc/nmvoc/ratio_voc03.nc new file mode 100644 index 0000000000000000000000000000000000000000..cb23180454e12c23c871e902074c42212cc2086c Binary files /dev/null and b/preproc/nmvoc/ratio_voc03.nc differ diff --git a/preproc/nmvoc/ratio_voc04.nc b/preproc/nmvoc/ratio_voc04.nc new file mode 100644 index 0000000000000000000000000000000000000000..9371eb071e32dcbe618f15d076445471b602d0cc Binary files /dev/null and b/preproc/nmvoc/ratio_voc04.nc differ diff --git a/preproc/nmvoc/ratio_voc05.nc b/preproc/nmvoc/ratio_voc05.nc new file mode 100644 index 0000000000000000000000000000000000000000..84f234c996b35bcb487f61fe738f5544e8357f8e Binary files /dev/null and b/preproc/nmvoc/ratio_voc05.nc differ diff --git a/preproc/nmvoc/ratio_voc06.nc b/preproc/nmvoc/ratio_voc06.nc new file mode 100644 index 0000000000000000000000000000000000000000..36b99ab3e8c3d826c2331337ecc1e7b19a8dd6a4 Binary files /dev/null and b/preproc/nmvoc/ratio_voc06.nc differ diff --git a/preproc/nmvoc/ratio_voc07.nc b/preproc/nmvoc/ratio_voc07.nc new file mode 100644 index 0000000000000000000000000000000000000000..5b45b98fd1c123bd4cbc8379cbcfefcb6d5796f4 Binary files /dev/null and b/preproc/nmvoc/ratio_voc07.nc differ diff --git a/preproc/nmvoc/ratio_voc08.nc b/preproc/nmvoc/ratio_voc08.nc new file mode 100644 index 0000000000000000000000000000000000000000..7db273d8714440955696e676c257348427d5e4e0 Binary files /dev/null and b/preproc/nmvoc/ratio_voc08.nc differ diff --git a/preproc/nmvoc/ratio_voc09.nc b/preproc/nmvoc/ratio_voc09.nc new file mode 100644 index 0000000000000000000000000000000000000000..9aca6747fcbc7f54c24092363120ed6f7ac8e006 Binary files /dev/null and b/preproc/nmvoc/ratio_voc09.nc differ diff --git a/preproc/nmvoc/ratio_voc12.nc b/preproc/nmvoc/ratio_voc12.nc new file mode 100644 index 0000000000000000000000000000000000000000..d77f444febee5a864a1e0f010216b9b00588fd17 Binary files /dev/null and b/preproc/nmvoc/ratio_voc12.nc differ diff --git a/preproc/nmvoc/ratio_voc13.nc b/preproc/nmvoc/ratio_voc13.nc new file mode 100644 index 0000000000000000000000000000000000000000..98a7c7de0af7714d98a8f1cf50383b78fb8e5959 Binary files /dev/null and b/preproc/nmvoc/ratio_voc13.nc differ diff --git a/preproc/nmvoc/ratio_voc14.nc b/preproc/nmvoc/ratio_voc14.nc new file mode 100644 index 0000000000000000000000000000000000000000..c192f68b642aa530a9cae125ec05e2048733e3cb Binary files /dev/null and b/preproc/nmvoc/ratio_voc14.nc differ diff --git a/preproc/nmvoc/ratio_voc15.nc b/preproc/nmvoc/ratio_voc15.nc new file mode 100644 index 0000000000000000000000000000000000000000..135c960e617614b5eaa00e36a4a023a23b1b6b4c Binary files /dev/null and b/preproc/nmvoc/ratio_voc15.nc differ diff --git a/preproc/nmvoc/ratio_voc16.nc b/preproc/nmvoc/ratio_voc16.nc new file mode 100644 index 0000000000000000000000000000000000000000..cf50b80d73e3d4d14eb0e5fcd017dbdd78bd0b87 Binary files /dev/null and b/preproc/nmvoc/ratio_voc16.nc differ diff --git a/preproc/nmvoc/ratio_voc17.nc b/preproc/nmvoc/ratio_voc17.nc new file mode 100644 index 0000000000000000000000000000000000000000..7861dec581f6a67ecd601bb95df0b24d4d7a1a15 Binary files /dev/null and b/preproc/nmvoc/ratio_voc17.nc differ diff --git a/preproc/nmvoc/ratio_voc18.nc b/preproc/nmvoc/ratio_voc18.nc new file mode 100644 index 0000000000000000000000000000000000000000..3acdf9410a966a16a92782440411590c2c1c1ad0 Binary files /dev/null and b/preproc/nmvoc/ratio_voc18.nc differ diff --git a/preproc/nmvoc/ratio_voc19.nc b/preproc/nmvoc/ratio_voc19.nc new file mode 100644 index 0000000000000000000000000000000000000000..163e26aaeccfae504f266a49e4c297df0bcf7f75 Binary files /dev/null and b/preproc/nmvoc/ratio_voc19.nc differ diff --git a/preproc/nmvoc/ratio_voc20.nc b/preproc/nmvoc/ratio_voc20.nc new file mode 100644 index 0000000000000000000000000000000000000000..f73ba937e52a5e13915be8d3f525858eb06c3f34 Binary files /dev/null and b/preproc/nmvoc/ratio_voc20.nc differ diff --git a/preproc/nmvoc/ratio_voc21.nc b/preproc/nmvoc/ratio_voc21.nc new file mode 100644 index 0000000000000000000000000000000000000000..82f552b25bed0c46953003245676666c5c1735cb Binary files /dev/null and b/preproc/nmvoc/ratio_voc21.nc differ diff --git a/preproc/nmvoc/ratio_voc22.nc b/preproc/nmvoc/ratio_voc22.nc new file mode 100644 index 0000000000000000000000000000000000000000..43270e20b1b38bc912dbe0f7fc10eeddd6ef8ff3 Binary files /dev/null and b/preproc/nmvoc/ratio_voc22.nc differ diff --git a/preproc/nmvoc/ratio_voc23.nc b/preproc/nmvoc/ratio_voc23.nc new file mode 100644 index 0000000000000000000000000000000000000000..e300dab403820f302589d7ac0685bada48066124 Binary files /dev/null and b/preproc/nmvoc/ratio_voc23.nc differ diff --git a/preproc/nmvoc/ratio_voc24.nc b/preproc/nmvoc/ratio_voc24.nc new file mode 100644 index 0000000000000000000000000000000000000000..c314931cd2261a0d3de40c46d807ec44b4f0f769 Binary files /dev/null and b/preproc/nmvoc/ratio_voc24.nc differ diff --git a/preproc/nmvoc/ratio_voc25.nc b/preproc/nmvoc/ratio_voc25.nc new file mode 100644 index 0000000000000000000000000000000000000000..580c45abbcc15d9152520e42ee23a3d4b461e0ee Binary files /dev/null and b/preproc/nmvoc/ratio_voc25.nc differ diff --git a/preproc/tno_mac_iii_preproc.py b/preproc/tno_mac_iii_preproc.py index 73c62820ade5f9a656f9c617a9c74f5de0f275cc..e96da9f64c991bc4c11a36852246f40e09a6931f 100755 --- a/preproc/tno_mac_iii_preproc.py +++ b/preproc/tno_mac_iii_preproc.py @@ -20,6 +20,12 @@ import os +# ============== README ====================== +""" +downloading website: contact to hugo.deniervandergon@tno.nl or jeroen.kuenen@tno.nl +reference: https://www.atmos-chem-phys.net/14/10963/2014/ +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/tno/tno_macc_iii/original_files/ascii' diff --git a/preproc/wiedinmyer_preproc.py b/preproc/wiedinmyer_preproc.py index 5af455f941d1c40e82b44f1307b61a0acf265236..7ccdab724b60607e79235aa0d42c0ffe22bf5f6e 100755 --- a/preproc/wiedinmyer_preproc.py +++ b/preproc/wiedinmyer_preproc.py @@ -22,6 +22,12 @@ import os import timeit from netCDF4 import Dataset +# ============== README ====================== +""" +downloading website: http://bai.acom.ucar.edu/Data/fire/ +reference: https://pubs.acs.org/doi/abs/10.1021/es502250z +Besides citing HERMESv3_GR, users must also acknowledge the use of the corresponding emission inventories in their works +""" # ============== CONFIGURATION PARAMETERS ====================== INPUT_PATH = '/esarchive/recon/ucar/wiedinmyer/original_files/' @@ -84,15 +90,21 @@ def do_transformation(filename): nc_in = Dataset(filename, mode='r') # Reading lat, lon - lats = nc_in.variables['lat'][:] - lons = nc_in.variables['lon'][:] + # lats = nc_in.variables['lat'][:] + # lons = nc_in.variables['lon'][:] + + lats = np.arange(89.95, -90, -0.1, dtype=np.float) + lons = np.arange(-179.95, 180, 0.1, dtype=np.float) factor = 1000000./(365.*24.*3600.) # To pass from Gg/m2.year to Kg/m2.s for output_pollutant in LIST_POLLUTANTS: input_pollutant = out_pollutant_to_in_pollutant(output_pollutant) - - data = nc_in.variables[input_pollutant][:] + try: + print input_pollutant + data = nc_in.variables[input_pollutant][:] + except RuntimeWarning: + print 'ERROR reading {0}'.format(input_pollutant) data = np.nan_to_num(data) data = data/grid_area # To pass from Gg/year to Gg/m2.year data = data*factor diff --git a/setup.py b/setup.py index 1778db762ceb53f79ceb1a380f8a6fea29ae21f1..48dea1214de4c96229fc4b1c6aee5b235a84f7d1 100644 --- a/setup.py +++ b/setup.py @@ -101,10 +101,37 @@ setup( 'preproc/edgarv432_voc_preproc.py', 'preproc/emep_preproc.py', 'preproc/gfas12_preproc.py', + 'preproc/GFAS_Parameters.csv', 'preproc/htapv2_preproc.py', 'preproc/tno_mac_iii_preproc.py', 'preproc/tno_mac_iii_preproc_voc_ratios.py', + 'preproc/VOC_split_AIR.csv', + 'preproc/VOC_split_SHIP.csv', 'preproc/wiedinmyer_preproc.py', ]), + ('preproc/nmvoc', [ + 'preproc/nmvoc/ratio_voc01.nc', + 'preproc/nmvoc/ratio_voc02.nc', + 'preproc/nmvoc/ratio_voc03.nc', + 'preproc/nmvoc/ratio_voc04.nc', + 'preproc/nmvoc/ratio_voc05.nc', + 'preproc/nmvoc/ratio_voc06.nc', + 'preproc/nmvoc/ratio_voc07.nc', + 'preproc/nmvoc/ratio_voc08.nc', + 'preproc/nmvoc/ratio_voc09.nc', + 'preproc/nmvoc/ratio_voc12.nc', + 'preproc/nmvoc/ratio_voc13.nc', + 'preproc/nmvoc/ratio_voc14.nc', + 'preproc/nmvoc/ratio_voc15.nc', + 'preproc/nmvoc/ratio_voc16.nc', + 'preproc/nmvoc/ratio_voc17.nc', + 'preproc/nmvoc/ratio_voc18.nc', + 'preproc/nmvoc/ratio_voc19.nc', + 'preproc/nmvoc/ratio_voc20.nc', + 'preproc/nmvoc/ratio_voc21.nc', + 'preproc/nmvoc/ratio_voc22.nc', + 'preproc/nmvoc/ratio_voc23.nc', + 'preproc/nmvoc/ratio_voc24.nc', + 'preproc/nmvoc/ratio_voc25.nc', ]), ], include_package_data=True,