Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
Legacy
gde_calculations_prototype
Commits
8b9acad1
Commit
8b9acad1
authored
Oct 26, 2020
by
Cecilia Nievas
Browse files
Add enter to print statement in refactoring of SERA_mapping_admin_units_to_cells.py
parent
8706cf29
Changes
1
Hide whitespace changes
Inline
Side-by-side
SERA_mapping_admin_units_to_cells.py
View file @
8b9acad1
...
...
@@ -169,7 +169,7 @@ def process_country(country_str, country_pos, number_countries,
for
results_adm
in
process_admin_unit
(
adm_boundary
,
which_row
,
logger
):
cell_id
,
area_intersect
,
geom_intersect
=
results_adm
yield
cell_id
,
level_groups_levels
[
j
],
admin_id
,
area_intersect
,
geom_intersect
,
level_groups
[
j
],
shp_not_found
print
(
'
\n
'
)
def
process_admin_unit
(
adm_boundary_gdf
,
which_row_of_gdf
,
logger
):
"""
...
...
@@ -196,7 +196,6 @@ def process_admin_unit(adm_boundary_gdf, which_row_of_gdf, logger):
geom_intersection
=
geom_adm_unit
.
intersection
(
geom_cell
)
area_intersection
=
gdet_grid
.
get_area_polygon_on_Earth
(
geom_intersection
,
units
=
'km2'
)
print
(
'
\n
'
)
yield
gdf_intersect
[
'cell_id'
].
values
[
i
],
area_intersection
,
geom_intersection
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment