Commit 557d9273 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed splitting of admin ID names to work with ind cells

parent e6def344
......@@ -914,7 +914,7 @@ def fill_in_admin_summary_dictionary_with_OBM(adm_summ_dict, obm_dict, obm_list_
adm_lev= obm_country_adminIDs_levels[j]
if adm_lev>-1:
country_name= gdet_serah.get_country_name_from_iso2_and_metadata_HDF5(adm_id.split('_')[0], sera_meta_path)
adm_summ_dict[adm_id]['geometry'], _= get_admin_unit_geometry_from_ID(country_name, adm_lev, adm_id.split('_')[1], countries_shp_path)
adm_summ_dict[adm_id]['geometry'], _= get_admin_unit_geometry_from_ID(country_name, adm_lev, '_'.join(adm_id.split('_')[1:]), countries_shp_path)
else:
adm_summ_dict[adm_id]['geometry']= 'NotAvailable'
return adm_summ_dict
......@@ -979,7 +979,7 @@ def fill_in_admin_summary_dictionary_with_SERA_LeftOver_or_Total_bdgs_dwells_ppl
adm_lev= list_country_adminIDs_levels[j]
if adm_lev>-1:
country_name= gdet_serah.get_country_name_from_iso2_and_metadata_HDF5(country_admin_ID.split('_')[0], sera_meta_path)
adm_summ_dict[country_admin_ID]['geometry'], _= get_admin_unit_geometry_from_ID(country_name, adm_lev, country_admin_ID.split('_')[1], countries_shp_path)
adm_summ_dict[country_admin_ID]['geometry'], _= get_admin_unit_geometry_from_ID(country_name, adm_lev, '_'.join(country_admin_ID.split('_')[1:]), countries_shp_path)
else:
adm_summ_dict[country_admin_ID]['geometry']= 'NotAvailable'
return adm_summ_dict
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment