Comments (2)
Affected line(s):
bmi-topography/bmi_topography/topography.py
Lines 34 to 36 in 993df5f
bmi-topography/bmi_topography/topography.py
Lines 64 to 69 in 993df5f
Lines 14 to 18 in 993df5f
* API error (simplified reproduction):
import requests
LINK = "https://portal.opentopography.org/API/globaldem?demtype=COP3012&south=30&north=50&west=20&east=30&outputFormat=GTiff&API_Key=demoapikeyot2022"
requests.get(LINK).text
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Error: Dataset COP3012 not found. Please check dataset name or ID.</error>
Reference:
Actual list of datasets and values, OpenTopography.org API Docs (https://portal.opentopography.org/apidocs/) and from OpenTopography for Developers
Available global raster datasets:
- SRTMGL3 (SRTM GL3 90m)
- SRTMGL1 (SRTM GL1 30m)
- SRTMGL1_E (SRTM GL1 Ellipsoidal 30m)
- AW3D30 (ALOS World 3D 30m)
- AW3D30_E (ALOS World 3D Ellipsoidal, 30m)
- SRTM15Plus (Global Bathymetry SRTM15+ V2.1)
- NASADEM (NASADEM Global DEM)
- COP30 (Copernicus Global DSM 30m)
- COP90 (Copernicus Global DSM 90m)
- EU_DTM (DTM 30m)
- GEDI_L3 (DTM 1000m)
* All datasets require API key for access. Users can request an API key via myOpenTopo in the OpenTopography portal.
Available values : SRTMGL3, SRTMGL1, SRTMGL1_E, AW3D30, AW3D30_E, SRTM15Plus, NASADEM, COP30, COP90, EU_DTM, GEDI_L3
Example : SRTMGL3
Global datasets API
RESTful Web service for accessing Shuttle Radar Topography Mission GL3 (Global 90m), GL1 (Global 30m), GL1 Ellipsoidal, ALOS World 3D (Global 30m), ALOS World 3D Ellipsoidal, Global Bathymetry and Topography at 15 Arc Sec: SRTM15+ V2.1, NASADEM (NASADEM Global DEM), COP30 (Copernicus Global DSM 30m), COP90 (Copernicus Global DSM 90m), Continental Europe Digital Terrain Model 30m and GEDI L3 (DTM 1000 meter) data.
^Accessed Jan 17/2024. I added NASADEM, COP30 and COP90 OpenTopography hyperlinks myself.
from bmi-topography.
@mdpiper - EU_DTM (Continental Europe Digital Terrain Model 30m) dataset's boundaries, Europe itself, does not include test point location. So it returns an empty dataset and fails tests.
nox -s test
<...>
tests/test_topography.py::test_fetch_load[GTiff-tif-EU_DTM] FAILED
<...>
=========================== short test summary info ============================
FAILED tests/test_topography.py::test_fetch_load[GTiff-tif-EU_DTM] - rasterio.errors.RasterioIOError:
Affected line(s):
bmi-topography/tests/test_topography.py
Lines 9 to 11 in 993df5f
bmi-topography/tests/test_topography.py
Lines 90 to 107 in 993df5f
We may either skip this test(s), or use different test point area, or handle some specific test case for this respective dem, like this:
92 | CENTER_LAT, CENTER_LON = (47.0, 10.0) if dem_type == "EU_DTM" else (40.0, -105.0)
from bmi-topography.
Related Issues (20)
- Server down
- Add API_key field HOT 1
- Request smaller dataset when testing HOT 1
- Update docs and examples to use API key
- Change from xarray to rioxarray
- Raise exception with helpful message for missing API key
- Update format job in Actions HOT 1
- Underscores in bmi-topography command line options HOT 1
- Test matrix of datasets and output formats
- Causes of a 401 error HOT 2
- Group data component cache files under a single directory
- Move project metadata from setup.cfg to pyproject.toml HOT 2
- Allow directionality in BMI grid spacing
- test_load fails on Windows with python=3.10 HOT 1
- Fix broken rtfd configuration file HOT 2
- Fix documentation build HOT 4
- Update contributing guidelines in line with migration from `make` to `nox`
- Set minimum Python >= 3.10
- Add a CLI option to clear the cache directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmi-topography.