From 34089404048b8d4a1e0439606cddb7c0d24f7444 Mon Sep 17 00:00:00 2001 From: Carles Tena Date: Fri, 2 Aug 2019 16:59:57 +0200 Subject: [PATCH] Corrected Livestock error --- conf/hermes.conf | 10 +++++----- hermesv3_bu/sectors/livestock_sector.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/hermes.conf b/conf/hermes.conf index 8fffd69..1115129 100755 --- a/conf/hermes.conf +++ b/conf/hermes.conf @@ -3,14 +3,14 @@ log_level = 3 input_dir = /home/Earth/ctena/Models/hermesv3_bu_data data_path = /esarchive/recon output_dir = /scratch/Earth/HERMESv3_BU_OUT/py3 -output_name = HERMES__py3_traffic_area_cmaq.nc -emission_summary = 0 +output_name = HERMES__py3_livestock.nc +emission_summary = 1 start_date = 2016/11/29 00:00:00 # ----- end_date = start_date [DEFAULT] ----- # end_date = 2010/01/01 00:00:00 output_timestep_num = 25 auxiliary_files_path = /scratch/Earth/HERMESv3_BU_aux/py3/_ -erase_auxiliary_files = 0 +erase_auxiliary_files = 1 [DOMAIN] @@ -119,7 +119,7 @@ writing_processors = 1 aviation_processors = 0 shipping_port_processors = 0 -livestock_processors = 0 +livestock_processors = 1 crop_operations_processors = 0 crop_fertilizers_processors = 0 agricultural_machinery_processors = 0 @@ -127,7 +127,7 @@ residential_processors = 0 recreational_boats_processors = 0 point_sources_processors = 0 traffic_processors = 0 -traffic_area_processors = 1 +traffic_area_processors = 0 [SHAPEFILES] diff --git a/hermesv3_bu/sectors/livestock_sector.py b/hermesv3_bu/sectors/livestock_sector.py index 4a4cbfe..a962101 100755 --- a/hermesv3_bu/sectors/livestock_sector.py +++ b/hermesv3_bu/sectors/livestock_sector.py @@ -284,7 +284,7 @@ class LivestockSector(Sector): animal_df = IoShapefile(self.comm).read_shapefile_serial(animal_distribution_path) animal_df.rename(columns={'data': animal}, inplace=True) - animal_df.set_index('CELL_ID', inplace=True) + # animal_df.set_index('CELL_ID', inplace=True) # Creating full animal shapefile if animal_distribution is None: -- GitLab