Skip to content

Commit

Permalink
Moved constants
Browse files Browse the repository at this point in the history
  • Loading branch information
damienallen committed May 17, 2024
1 parent 6233025 commit 58fe36a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions urban_heat/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
SERVICE_URL = "https://m2m.cr.usgs.gov/api/api/json/stable"
DATASET_NAME = "landsat_ot_c2_l2"
BAND = "_ST_B10_TIF"
DST_CRS = "EPSG:4326"
NO_DATA = 0


def get_auth_header() -> dict[str, str]:
Expand Down
4 changes: 1 addition & 3 deletions urban_heat/tasks/prepare_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
from shapely import Polygon
from tqdm import tqdm

from urban_heat.tasks import CLIPPED_DIR, SOURCES_DIR, get_extents_by_country

DST_CRS = "EPSG:4326"
from urban_heat.tasks import CLIPPED_DIR, DST_CRS, SOURCES_DIR, get_extents_by_country


def create_mask(
Expand Down
5 changes: 2 additions & 3 deletions urban_heat/tasks/process_country.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
CLIPPED_DIR,
DATA_DIR,
DOWNLOADS_DIR,
DST_CRS,
NO_DATA,
get_extents_by_country,
)

NO_DATA = 0
DST_CRS = "EPSG:4326"

SCENCES_JSON = DATA_DIR / "scenes_by_country.json"
db = TinyDB(SCENCES_JSON)
Countries = Query()
Expand Down

0 comments on commit 58fe36a

Please sign in to comment.