-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding your own topobathy data does not work #162
Comments
As discussed with @LuukBlom later that day, this is the way it is intended to be. The overviews in the dataset speed up both building the model and visualizing the dataset through the top menu in the "topography" tab. We could let go this "requirement, but then I'm pretty sure we will be runnning into memory issues whe visualizing the dataset. I have been thinking to automate this in the background, i.e. autoamtically adding the overviews, but this really changes existing datasets (that also might be quite big). Hence, I would propose to properly document on how to add these overviews, since there is plenty of options to do so, e.g. in QGIS, Python notebook or just command line code. One thing that is really broken, is the fact that "newly added datasets" only can be used once you restart the GUI ... This is because we have to re-initialize the model with the newly created data-catalog. As discussed with Luuk, we might just throw a warning saying something like "Adding your own datasets is beta functionality. Unfortunately, you have to restart the GUI to be able to use and visualize your own dataset ..." |
I added the automatic creation of the overviews to the gui including some warnings that this will increase the size and change the file + a warning that the user needs to restart to loading the datasets in the FloodAdapt ModelBuilder branch: Since this is the FA branch, I thought that'd be okay. |
Thanks for this explanation Roel. I like the warning you suggested at the end of your message. @Luuk ***@***.***> can we add that?
From: roeldegoede ***@***.***>
Sent: Friday, October 11, 2024 10:06 AM
To: Deltares-research/DelftDashboard ***@***.***>
Cc: Kathryn Roscoe ***@***.***>; Author ***@***.***>
Subject: Re: [Deltares-research/DelftDashboard] Adding your own topobathy data does not work (Issue #162)
Caution: This message was sent from outside of Deltares. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to ***@***.******@***.***>" as an attachment.
As discussed with @LuukBlom<https://github.com/LuukBlom> later that day, this is the way it is intended to be. The overviews in the dataset speed up both building the model and visualizing the dataset through the top menu in the "topography" tab. We could let go this "requirement, but then I'm pretty sure we will be runnning into memory issues whe visualizing the dataset.
I have been thinking to automate this in the background, i.e. autoamtically adding the overviews, but this really changes existing datasets (that also might be quite big). Hence, I would propose to properly document on how to add these overviews, since there is plenty of options to do so, e.g. in QGIS, Python notebook or just command line code.
One thing that is really broken, is the fact that "newly added datasets" only can be used once you restart the GUI ... This is because we have to re-initialize the model with the newly created data-catalog. As discussed with Luuk, we might just throw a warning saying something like "Adding your own datasets is beta functionality. Unfortunately, you have to restart the GUI to be able to use and visualize your own dataset ..."
-
Reply to this email directly, view it on GitHub<#162 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AS4ZATUQOVN7633H7C4D2PLZ26BHNAVCNFSM6AAAAABPWTP2JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWHAZDQOJTG4>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
|
Thanks Luuk, I just saw this message, so you can disregard my previous message!
From: LuukBlom ***@***.***>
Sent: Friday, October 11, 2024 10:15 AM
To: Deltares-research/DelftDashboard ***@***.***>
Cc: Kathryn Roscoe ***@***.***>; Author ***@***.***>
Subject: Re: [Deltares-research/DelftDashboard] Adding your own topobathy data does not work (Issue #162)
Caution: This message was sent from outside of Deltares. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to ***@***.******@***.***>" as an attachment.
I added the automatic creation of the overviews to the gui including some warnings that this will increase the size and change the file + a warning that the user needs to restart to loading the datasets in the FloodAdapt ModelBuilder branch:
see this PR<https://github.com/Deltares-research/DelftDashboard/pull/163/files>: src/delftdashboard/toolboxes/modelmaker_sfincs_hmt/bathymetry.py
Since this is the FA branch, I thought that'd be okay.
Let me know what you think!
-
Reply to this email directly, view it on GitHub<#162 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AS4ZATUVF74IK2EP6434SNDZ26CH3AVCNFSM6AAAAABPWTP2JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWHA3DEMBZGI>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
|
Okay cool, that's fine with me! One thing that you should change, that I didn't mention before, is that we would like to resample them using "averaging" method: process = subprocess.run(["rio", "overview", "--build", "auto", "--resampling", "average", fn[0]]) And I usually used rasterio functionality rather than the subprocess one, though they essentially should do the same ..
Anyway, this is not really important and we could maybe check performance of the latter, but this was just to stick a bit more to the already existing code (where we already have the dataset open with rasterio). Maybe also good to add a link to the manual of rasterio? https://rasterio.readthedocs.io/en/latest/topics/overviews.html Think this gives some more background of why we add these overviews? |
Preliminary Checklist
Severity Level
High
Steps to reproduce
Add your own .tif DEM and you get the error below
Current behaviour
Adding your own .tif DEM throws an error
Desired behaviour
Adding your own .tif DEM would work
Additional context
No response
The text was updated successfully, but these errors were encountered: