Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Science Base URL Error #511

Closed
3 tasks done
MattReimer opened this issue Dec 3, 2021 · 2 comments
Closed
3 tasks done

Science Base URL Error #511

MattReimer opened this issue Dec 3, 2021 · 2 comments
Labels
🐛 bug Something isn't working

Comments

@MattReimer
Copy link
Member

MattReimer commented Dec 3, 2021

Science base has the wrong URLS so we're getting missions data in our patchwork DEMs that we build for RSContext

Sometimes this fails in Cybercastor and sometimes it just produces blank data

Screen Shot 2021-12-03 at 11 33 40 AM

  1. Implement a fix where we use a lookup table after scraping the S3 bucket.
  2. Make sure we fail if the DEM Raster coverage is less than X% (I'd say 85% but use whatever value you think makes sense).
    • Make sure this still works with our HUCs that cross the Canadian border.
@KellyMWhitehead
Copy link
Contributor

Summary/context:

  1. DEM's are stored in s3 folders that are indexed spatially by lat/long.

  2. USGS periodically updates the dems and adds them to the folder. They appear in the S3 buckets with the date appended in the filename. Several versions of the dem can appear in the folder.

  3. When we spatial query Science base for the intersecting huc dems, we are getting every DEM, which includes the all versions for a particular lat/long. Fortunately GDAL doesn't fuss about this and mosaics them together in the vrt file.

  4. However, occasionally science base has returned non-existent data /bad urls.

  5. a separate issue of missing data (referenced in the image) was related to producing a processing extent that allowed us to generate riverscapes projects for Canadian-bounding hucs. This is fixed in 6adf397

Fixes:

  • Lookup table for cleaning bad urls (#4) implemented in 5b2f6f5
  • Added a check to make sure dem data covers at least 85% of the huc boundary. This may cause some Canadian-Bounding hucs to fail, but we can keep an eye out for these.

@KellyMWhitehead KellyMWhitehead removed their assignment Dec 9, 2021
@joewheaton
Copy link
Contributor

Thanks @KellyMWhitehead this is helpful. Can you confirm whether or not fixes have been made in the impacted Mississippi HUCs so that we have the DEMs now, or do you still need @lauren-herbine and I to flag those for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants