Giter Site home page Giter Site logo

Comments (9)

 avatar commented on July 29, 2024

Dear Prof. Fielding,

Actually, I have also the same problem in downloading the DEM file. When I checked this website (https://wiki.earthdata.nasa.gov/display/EL/How+To+Access+Data+With+cURL+And+Wget) and found that the configuration for the .netrc file should be the same as this website said.

Best regards,
Sayyed

from isce2.

piyushrpt avatar piyushrpt commented on July 29, 2024

We are happy to take PRs with the required changes.

from isce2.

EJFielding avatar EJFielding commented on July 29, 2024

Before we start working on a Pull Request, we have to decide whether to simply change the dem.py code to use NASADEM or to add an option to use that while leaving the default as SRTM v3.
Any suggestions?

from isce2.

piyushrpt avatar piyushrpt commented on July 29, 2024

The code should already work if a demstitcher.xml (or appropriately named xml) is created with the right base url in the folder where processing is being done. I assumed the suggestion was to change default to NASADEM.

from isce2.

dbekaert avatar dbekaert commented on July 29, 2024

@EJFielding believe changes would be:

  1. Add NASA DEM as an option to dem.py - i.e. add it to the input parser
    Believe the -s and -t arguments here:

    parser.add_argument('-s', '--source', type = int, default = 1, dest = 'source', help = 'Dem SRTM source. Possible values 1 or 3 (default: %(default)s)')

  2. Similar as to the past here woudl be the location for the URL and the extensions of the tiles:
    https://github.com/isce-framework/isce2/blob/master/contrib/demUtils/demstitcher/DemStitcherV3.py

  3. As the DEM is still behing earthdata log-on the rest shoudl work fine for pulling in tiles.

    command = 'curl -n -L -c $HOME/.earthdatacookie -b $HOME/.earthdatacookie -k -f -O ' + os.path.join(url,fileNow)

    The extension is critical as otherwise it will not find the nasadem tiles. Would recommend you try and construct it and then manual try to see if its correct with the online tile.

  4. Will let @piyushrpt to provide some guidance on keeping backward compatibility.

from isce2.

piyushrpt avatar piyushrpt commented on July 29, 2024

I think this is similar to adding a sensor.

  1. Add a new DEMStitcher in location that David pointed to. This stitcher handles the file naming weirdness - prefix, postfix, extra tags etc whatever it takes to build the right tile name.
  2. Then this is exposed via the init.py in demUtils folder - createDemStitcher method.
  3. Then type argument for dem.py (defaults to version3) can be set to nasadem and interface should work

from isce2.

sssangha avatar sssangha commented on July 29, 2024

@EJFielding I have made the above suggested updates under the PR "sss_nasadem"

from isce2.

piyushrpt avatar piyushrpt commented on July 29, 2024

Fixed in #118

from isce2.

EJFielding avatar EJFielding commented on July 29, 2024

Thanks!

from isce2.

Related Issues (20)

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.