Skip to content

Commit

Permalink
Added medium input for post
Browse files Browse the repository at this point in the history
  • Loading branch information
dsparber committed Nov 11, 2024
1 parent b6813b6 commit 9ed0048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion elevation/elevation_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import os
from collections import defaultdict
from multiprocessing import cpu_count
from multiprocessing.pool import ThreadPool
from typing import Iterable, Callable, Sequence, Optional

Expand All @@ -17,7 +18,7 @@

class ElevationTools:
# Set up thread pool
num_threads = 64
num_threads = cpu_count()
thread_pool = ThreadPool(num_threads)

# Set environment variables for GDAL
Expand Down
5 changes: 4 additions & 1 deletion main/post/post_global_relief.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
f"Glo90/hillshading/{style}-small.tif": list(
Wgs84TileInfo(zoom=0, x=0, y=0).descendants(max_zoom=5)
),
f"Glo90/hillshading/{style}-medium.tif": list(
Wgs84TileInfo(zoom=0, x=0, y=0).descendants(min_zoom=6, max_zoom=8)
),
f"Glo90/hillshading/{style}.vrt": list(
Wgs84TileInfo(zoom=0, x=0, y=0).descendants(min_zoom=6, max_zoom=max_zoom)
Wgs84TileInfo(zoom=0, x=0, y=0).descendants(min_zoom=9, max_zoom=max_zoom)
),
}

Expand Down

0 comments on commit 9ed0048

Please sign in to comment.