Coder Social home page Coder Social logo

Process MAJA outside the SRTM range about maja HOT 10 CLOSED

cnes avatar cnes commented on June 18, 2024
Process MAJA outside the SRTM range

from maja.

Comments (10)

petket-5 avatar petket-5 commented on June 18, 2024 1

Hi,

It is possible to add this functionality for a new DEM type using the prepare_mnt.mnt.MNTBase class. You will need to implement the following:

  • Create a new class, <YourNewDEMType>.py inheriting from MNTBase. You can see an example of that in SRTM.py.
    In that class, implement:

  • prepare_mnt: Returns a filepath to the DEM at full resolution with the same extent and coordinate system as your input product extent - I.e. a single Sentinel2 tile. This is the important step that needs to be fulfilled in order to interface later with the to_maja_format() function.

  • get_raw_data (Optional): Download the DEM data from a given provider automatically and return the filenames to the downloaded archive(s).

  • Finally, add your new class to the MNTFactory.py

from maja.

octoflar avatar octoflar commented on June 18, 2024

I asked the same question two weeks ago (to myself). One obvious way to process outside the SRTM range is to create the files prepare_dtm would create – just filled with data taken from your (non-SRTM) digital elevation model and water body data.

You would need a tool that produces output which formally produces the same output as prepare_dtm does but takes other DEM and water body data for input. Would be nice if such a tool were included with Maja / Start-Maja.

from maja.

olivierhagolle avatar olivierhagolle commented on June 18, 2024

Yes, we would like to have that too, and its in our action list, but we are a small team...

from maja.

FerdinandKlingenberg avatar FerdinandKlingenberg commented on June 18, 2024

Hi @octoflar and @olivierhagolle

Thanks for the quick response. I will check the DTM and the water mask for one Sentinel-2 scene below 60 degrees north and try to convert with my own dataset. In the meantime, we look forward to the new features and the new version of Maja.

Kind regards,

from maja.

FerdinandKlingenberg avatar FerdinandKlingenberg commented on June 18, 2024

Thanks for this information @petket-5, this would help us a lot!

Kind regards,

from maja.

octoflar avatar octoflar commented on June 18, 2024

Thanks for this information @petket-5, this would help us a lot!

Kind regards,

Did you succeed with it? Do you also work on the WorldCover project?

from maja.

FerdinandKlingenberg avatar FerdinandKlingenberg commented on June 18, 2024

Thanks for this information @petket-5, this would help us a lot!
Kind regards,

Did you succeed with it? Do you also work on the WorldCover project?

Hi,
I am sorry, but I did not get enough time to finish the job. I will let you all know if I succeed. I hope that I will have more time next coming weeks. Meanwhile, I will be very happy if you share your knowledge if you succeed.

No, I do not work on WorldCover project, but it looks like a nice project after reading a little about it.

Kind regards,
Ferdinand Klingenberg

from maja.

FerdinandKlingenberg avatar FerdinandKlingenberg commented on June 18, 2024

Hi @octoflar,
I think I succeed to use our custom DEM, but since we still have not setup our hardware for our project I am not able to test it out properly. At least the modification I did on the branch "reprog-rc1" returned no error messages, and the DTM prep files is kind of similar to the original run (on SRTM data of southern Norway), but they differ because of different resolution of SRTM and our DEM.

If you want to try out, you can check my forked version: Link
Note, it is probably possible to clean up the code even more, but for now it is working, regardless if you processing with your own DEM either inside or outside the SRTM range.
If you want to test with my DEM (on the Sentinel-2 tile 32VMK), please let me know, and I can send it to you. I will be very pleased to know if it work properly.

Best regard,
Ferdinand Klingenberg

from maja.

octoflar avatar octoflar commented on June 18, 2024

Hi @FerdinandKlingenberg, thank you very much for your message 👍 I'll let you know my test results.

With best wishes,
Ralf

from maja.

FerdinandKlingenberg avatar FerdinandKlingenberg commented on June 18, 2024

We managed to manipulate the EU-DEM to use our own national wide DTM with the latest MAJA 4.2 version.

from maja.

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.