Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions region_similarity/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion scripts/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down