Commit 81e42beb authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Minor fixes

parent d59f68e3
Pipeline #25921 passed with stage
in 3 minutes and 16 seconds
......@@ -24,6 +24,7 @@ from babelgrid import Babel
from multiprocessing import Pool
import numpy as np
from shapely.geometry import Polygon
import os
logger = logging.getLogger()
logger.setLevel(logging.INFO)
......@@ -75,7 +76,9 @@ args = parser.parse_args()
# Get a country polygon by name from the GADM dataset and do small buffer
country_name = args.country.replace("_", " ")
print(country_name)
world = gpd.read_file(os.path.join("..", os.path.dirname(__file__), "data", "gadm36_0.shp")).to_crs("epsg:4326")
world = gpd.read_file(
os.path.join("..", os.path.dirname(__file__), "data", "gadm36_0.shp")
).to_crs("epsg:4326")
country = world[world["NAME_0"] == country_name]
logger.info("Setting a buffer on target geometry")
......
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