Comments (10)
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 fromMNTBase
. You can see an example of that inSRTM.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 theto_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.
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.
Yes, we would like to have that too, and its in our action list, but we are a small team...
from maja.
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.
Thanks for this information @petket-5, this would help us a lot!
Kind regards,
from maja.
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.
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.
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.
Hi @FerdinandKlingenberg, thank you very much for your message 👍 I'll let you know my test results.
With best wishes,
Ralf
from maja.
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)
- How to install MAJA 4 in Ubuntu 20.04 and Docker HOT 3
- [best practices] Processing by orbit HOT 11
- Using StartMaja with MAJA v3.2.2 HOT 1
- Solution for the error happening in case you try to use CAMS (if "NbNonInterpolate" in self._beforeFile.keys(): 'NoneType' object has no attribute 'keys') HOT 3
- Testing MAJA - Where to get "MAJA-DATA" and "MAJA-Validation"? HOT 1
- Github vs gitlab - which MAJA code should I use? HOT 3
- What are the differences between StartMaja scripts on different repositories? HOT 1
- License confusion HOT 2
- Access denied HOT 11
- Xml encoding in xml_tools.py HOT 2
- SRTM download link doesn't respond HOT 5
- Optimal parameters to get the best results (advice needed) HOT 10
- Inputs do not occupy the same physical space HOT 5
- CMake error for EXPAT when compiling MAJA HOT 11
- [best practices] Optimal parameters for rain forest region HOT 4
- Cmake error for GDAL while compiling MAJA
- SameFileError when processing with StartMaja HOT 1
- Repository no more active, please use MAJA's Forum for issues
- Directory of input files as symbolic links
- Maja creates L2A level data with empty cloud masks & 0 instead of -10000 for each band HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maja.