pdemtools 1.1.0__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pdemtools-1.1.0/src/pdemtools.egg-info → pdemtools-1.1.2}/PKG-INFO +1 -1
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/__init__.py +1 -1
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/data.py +6 -2
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/load.py +1 -1
- {pdemtools-1.1.0 → pdemtools-1.1.2/src/pdemtools.egg-info}/PKG-INFO +1 -1
- {pdemtools-1.1.0 → pdemtools-1.1.2}/LICENSE.md +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/README.md +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/pyproject.toml +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/setup.cfg +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/_accessor.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/_coreg.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/_geomorphometry.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/_index_search.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/_utils.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/ArcticDEM_Mosaic_Index_v3_gpkg.gpkg +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/ArcticDEM_Mosaic_Index_v4_1_gpkg.gpkg +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/REMA_Mosaic_Index_v2_gpkg.gpkg +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/test_data/test_arcticdem_index_kiv_steenstrup.parquet +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools.egg-info/SOURCES.txt +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools.egg-info/dependency_links.txt +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools.egg-info/requires.txt +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools.egg-info/top_level.txt +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/tests/test_download.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/tests/test_processing.py +0 -0
- {pdemtools-1.1.0 → pdemtools-1.1.2}/tests/test_search.py +0 -0
|
@@ -39,7 +39,9 @@ def geoid_from_bedmachine(bm_fpath: str, target_rxd: DataArray) -> DataArray:
|
|
|
39
39
|
geoid = rxr.open_rasterio(f"{bm_fpath}")["geoid"]
|
|
40
40
|
geoid_crs = geoid.rio.crs
|
|
41
41
|
geoid = geoid.squeeze().astype("float32").rio.write_crs(geoid_crs)
|
|
42
|
-
geoid = geoid.rio.reproject_match(
|
|
42
|
+
geoid = geoid.rio.reproject_match(
|
|
43
|
+
match_data_array=target_rxd, resampling=Resampling.bilinear
|
|
44
|
+
)
|
|
43
45
|
|
|
44
46
|
return geoid.squeeze()
|
|
45
47
|
|
|
@@ -63,7 +65,9 @@ def geoid_from_raster(fpath: str, target_rxd: DataArray = None) -> DataArray:
|
|
|
63
65
|
geoid = geoid.squeeze().astype("float32").rio.write_crs(geoid_crs)
|
|
64
66
|
|
|
65
67
|
if target_rxd != None:
|
|
66
|
-
geoid = geoid.rio.reproject_match(
|
|
68
|
+
geoid = geoid.rio.reproject_match(
|
|
69
|
+
match_data_array=target_rxd, resampling=Resampling.bilinear
|
|
70
|
+
)
|
|
67
71
|
|
|
68
72
|
return geoid.squeeze()
|
|
69
73
|
|
|
@@ -403,7 +403,7 @@ def mosaic(
|
|
|
403
403
|
|
|
404
404
|
if len(tiles) < 1:
|
|
405
405
|
raise ValueError(
|
|
406
|
-
f"No {dataset} mosaic tiles found to intersect with bounds {
|
|
406
|
+
f"No {dataset} mosaic tiles found to intersect with bounds {bounds}"
|
|
407
407
|
)
|
|
408
408
|
|
|
409
409
|
# get aws filepaths from the tiles dataframe
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/ArcticDEM_Mosaic_Index_v3_gpkg.gpkg
RENAMED
|
File without changes
|
{pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/ArcticDEM_Mosaic_Index_v4_1_gpkg.gpkg
RENAMED
|
File without changes
|
{pdemtools-1.1.0 → pdemtools-1.1.2}/src/pdemtools/mosaic_index/REMA_Mosaic_Index_v2_gpkg.gpkg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|