Hydromt is unable to infer the flow direction file #301
Replies: 3 comments 3 replies
-
Hi, it’s been 5 days since I posted my query, and I haven't received a response yet. Could someone please assist me with the error I encountered while generating the flow direction file using the code from the Hydromt website? I’ve attached the error screenshot and log file for reference. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Dear @AldenShadd1000, thank you for your question. Could you provide the full line of code that you are using to build the model? I suspect that the DataCatalog is missing. See also the final step in https://deltares.github.io/hydromt_wflow/latest/_examples/prepare_ldd.html#Exporting-the-newly-created-data-and-corresponding-data-catalog : here you create a DataCatalog, and in the model builder you can link the path to it using |
Beta Was this translation helpful? Give feedback.
-
Would it be possible for you to use the following notebook (https://github.com/Deltares/pyflwdir/blob/main/examples/basins.ipynb) to see if it is possible to delineate a basin with the given flowdirection data and the bbox? I would suggest loading the data using rasterio, clipping it given the bbox and then following the notebook with the outlet as provided by your example. As under the hood, HydroMT uses PyFlwDir to delineate the basin. |
Beta Was this translation helpful? Give feedback.
-
I generated a flow direction file from a DEM of resolution of 90 metres using the code provided at Hydromt website: (https://deltares.github.io/hydromt_wflow/latest/_examples/prepare_ldd.html) But, I encountered the following error:
I am attaching the log file below.
hydromt.log
Kindly guide on how to proceed on this.
Beta Was this translation helpful? Give feedback.
All reactions