diff --git a/region_similarity/export.py b/region_similarity/export.py index f384f95..4792935 100644 --- a/region_similarity/export.py +++ b/region_similarity/export.py @@ -125,7 +125,7 @@ def export_multiple_images(cells, job_dir, img, resolution, m): # Save URLs to a file random_hash = generate_random_hash() - url_file = Path("../public") / f"urls_{random_hash}.txt" + url_file = Path("./public") / f"urls_{random_hash}.txt" url_file.parent.mkdir(exist_ok=True) url_file.write_text("\n".join(urls)) @@ -183,7 +183,7 @@ def export_image(e, m): img = ee.Image.cat([features, result]).reproject(crs='EPSG:4326', scale=1000) # Set the image resolution in meters - resolution = 100 + resolution = 1000 # Convert the image resolution from meters to degrees meters_per_degree = 111320 # Approximation at the equator diff --git a/scripts/app.py b/scripts/app.py index ecb4218..bea13cb 100644 --- a/scripts/app.py +++ b/scripts/app.py @@ -21,7 +21,6 @@ import ipywidgets as widgets from ipyleaflet import WidgetControl import solara -from IPython.core.display import display from region_similarity.map import ( reset_map,