Commit a3b9e73b authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Replace -999 values of GPW empty cells with zero

parent 47820a3b
......@@ -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
......
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