ACCESS-Cloud-Based-InSAR / dem-stitcher

Download and merge DEM tiles
Apache License 2.0
43 stars 15 forks source link

update urls for downloading geoids from agisoft.com #89

Closed asjohnston-asf closed 3 months ago

asjohnston-asf commented 3 months ago

These non-notebook tests fail on my local machine from the dev branch due to the agisoft error:

tests/test_datasets.py ...
tests/test_dateline.py ...............FF.F
tests/test_exceptions.py ...
tests/test_geoid.py .....
tests/test_merge.py .....
tests/test_missing.py .....
tests/test_notebooks.py FFFF
tests/test_rio_tools.py ..
tests/test_stitcher.py ......FF.FFFF.F......
tests/test_window.py ....................................

FAILED tests/test_dateline.py::test_stithcer_across_dateline[bounds0] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135394 ms: Couldn't connect to server
FAILED tests/test_dateline.py::test_stithcer_across_dateline[bounds1] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135167 ms: Couldn't connect to server
FAILED tests/test_dateline.py::test_read_geoid_across_dateline - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135168 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_download_dem[glo_90] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135164 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_download_dem[glo_30] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135167 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_download_dem[glo_90_missing] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135162 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_download_dem[srtm_v3] - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 134259 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_download_dem[nasadem] - rasterio.errors.RasterioIOError: '/vsicurl/http://download.agisoft.com/geoids/egm96-15.tif' does not exist in the file system, and is not recognized as a supported dataset name.
FAILED tests/test_stitcher.py::test_boundary_of_missing_glo_30_data - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135167 ms: Couldn't connect to server
FAILED tests/test_stitcher.py::test_mask_differences_with_merge_nodata_values_with_ellipsoidal - rasterio.errors.RasterioIOError: CURL error: Failed to connect to download.agisoft.com port 80 after 135167 ms: Couldn't connect to server

They all pass with the URL update:

tests/test_datasets.py ...
tests/test_dateline.py ...................
tests/test_exceptions.py ...
tests/test_geoid.py .....
tests/test_merge.py .....
tests/test_missing.py .....
tests/test_notebooks.py FFFF
tests/test_rio_tools.py ..
tests/test_stitcher.py .....................
tests/test_window.py ....................................

I'll need to troubleshoot why these two tests are failing in GitHub actions but passing on my local machine:

FAILED tests/test_stitcher.py::test_download_dem[srtm_v3] - zipfile.BadZipFile: File is not a zip file
FAILED tests/test_stitcher.py::test_download_dem[nasadem] - zipfile.BadZipFile: File is not a zip file
asjohnston-asf commented 3 months ago

I suspect the two failing tests are because the EARTHDATA_USERNAME/EARTHDATA_PASSWORD credentials being used by GitHub actions are invalid. I'll defer to @cmarshak or @jhkennedy to update them.