Commit 2ac7d6ce authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Merge branch 'dev_gpw_zeros' into 'master'

Replace -999 values of GPW empty cells with zero

See merge request dynamicexposure/globaldynamicexposure/gde_calculations_prototype!7
parents 47820a3b a3b9e73b
......@@ -91,6 +91,8 @@ def get_gpw_grids(gpw_path):
print(' THE CODE WAS WRITTEN UNDER THE ASSUMPTION THAT THEY MATCH!!!')
top_relevant_row= 865 # From separate analysis
bottom_relevant_row= 16806 # From separate analysis
population_values[population_values<0.0]= 0.0 # -999 contained in cells with zero population
density_values[density_values<0.0]= 0.0 # -999 contained in cells with zero population
return population_values, density_values, gpw_pop_x_coord_edges, gpw_pop_y_coord_edges, gpw_pop_x_coord_midpoints, gpw_pop_y_coord_midpoints, gpw_pop_nrows, error_with_grids, top_relevant_row, bottom_relevant_row
......
Supports Markdown
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