Giter Site home page Giter Site logo

Comments (3)

cmarshak avatar cmarshak commented on July 22, 2024

Hey Konstantin,

Glad it's helpful.

Unfortunately, it's not in the scope of this package as is. I can share with you the rough idea of how you might approach this.

  1. The urls will be the same as for NASADEM.
from dem_stitcher.datasets import get_overlapping_dem_tiles

urls = get_overlapping_dem_tiles([-121.5, 34.95, -120.2, 36.25], 'nasadem').url.tolist()

Note: if you unzip a url, you will find the *.swb layer in the unzipped directory. Here is an example url: https://e4ftl01.cr.usgs.gov/MEASURES/NASADEM_HGT.001/2000.02.11/NASADEM_HGT_n34w121.zip

  1. Modify these mostly stand-alone functions (or reorganize them) to read the swb layer instead of the hgt layer. Might need a little bit of work (haven't tried it) because SRTM has its own gdal driver: https://gdal.org/drivers/raster/srtmhgt.html, but swb does not. You could infer the geometadata from the hgt file and then just generate a dataset.

Hope this helps. Good luck!

from dem-stitcher.

konstantinklemmer avatar konstantinklemmer commented on July 22, 2024

Thanks for the swift reply!

from dem-stitcher.

cmarshak avatar cmarshak commented on July 22, 2024

Here is another option from @mgovorcin using ISCE2:

import isce
from isceobj.Alos2Proc.runDownloadDem import download_wbd
# Download SRTM-SWDB water mask
# ISCE2 requires South, North, East, West extents (or ymin, ymax, xmin, xmax)
mask_filename = download_wbd(extent[1], extent[3], extent[0], extent[2])

from dem-stitcher.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.