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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ build
.pixi
*.egg-info

# ignore .env files
.env


# ignore the version file made by setuptools_scm
dem_handler/_version.py
6 changes: 5 additions & 1 deletion dem_handler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
DATA_DIR = Path(__file__).parent / Path("data")
REMA_GPKG_PATH = DATA_DIR / Path("REMA_Mosaic_Index_v2.gpkg")
COP30_GPKG_PATH = DATA_DIR / Path("copdem_tindex_filename.gpkg")
REMA_SERIES_CONFIG_PATH = DATA_DIR / Path("rema_series_config.json")

REMAResolutions = typing.Literal[2, 10, 32]
REMAResolutions = typing.Literal[2, 10, 30, 32]
COPResolutions = typing.Literal[30]
ValidDEMResolutions = typing.Literal[REMAResolutions, COPResolutions]

REMABoundCheckSkipResolutions = typing.Literal[30]

REMA_VALID_RESOLUTIONS = typing.get_args(REMAResolutions)
COP_VALID_RESOLUTIONS = typing.get_args(COPResolutions)
REMA_BOUND_CHECK_SKIP_RESOLUTIONS = typing.get_args(REMABoundCheckSkipResolutions)
24 changes: 24 additions & 0 deletions dem_handler/data/rema_series_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"resolution": {
"30": "v0.5",
"32": "v0.4",
"10": "v0.4",
"2": "v0.4"
},
"aoi_name": {
"v0.4": "thwaites",
"v0.5": null
},
"v0.4": {
"endpoint": "umn1.osn.mghpcc.org",
"s3_bucket": "cse-pgc-test",
"remote_folder": "digital_earth_antarctica/v0.4/mosaics",
"indexing_file": null
},
"v0.5": {
"endpoint": "umn1.osn.mghpcc.org",
"s3_bucket": "cse-pgc-test",
"remote_folder": "digital_earth_antarctica/v0.5",
"indexing_file": "MultiTemporalREMAIndex.parquet"
}
}
Loading
Loading