{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":840081932,"defaultBranch":"main","name":"Subcatchment-from-Raster","ownerLogin":"ashainp","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-08-08T23:55:53.000Z","ownerAvatar":"https://github.com/avatars/u/64067141?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1723161354.0","currentOid":""},"activityList":{"items":[{"before":"159fac97485b8296271461eccff153c0d992353b","after":"1e09ff101dcda7c27b21530241bd764fefc343ab","ref":"refs/heads/main","pushedAt":"2024-09-12T04:28:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"ashainp","name":"Ash Perera","path":"/ashainp","primaryAvatarUrl":"https://github.com/avatars/u/64067141?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"595060559bd40ebb95f5da59a3c6033631e57c0d","after":"159fac97485b8296271461eccff153c0d992353b","ref":"refs/heads/main","pushedAt":"2024-08-09T00:07:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"ashainp","name":"Ash Perera","path":"/ashainp","primaryAvatarUrl":"https://github.com/avatars/u/64067141?s=80&v=4"},"commit":{"message":"subcatchments_from_raster.py\n\nQGIS Automated Catchment Delineation with WhiteboxTools\r\n\r\nThis project is designed to streamline the process of catchment delineation in QGIS by leveraging the powerful geospatial analysis capabilities of WhiteboxTools. The script automates several critical steps involved in hydrological modeling and watershed analysis, making it an invaluable tool for GIS professionals and hydrologists.\r\n\r\nKey Functionalities:\r\nDepression Filling:\r\nThe script uses the Wang and Liu method to fill depressions in a Digital Elevation Model (DEM). This step is crucial for ensuring that the DEM accurately represents hydrological flow paths, which is essential for reliable watershed analysis.\r\n\r\nIsobasin Generation:\r\nAfter filling depressions, the script generates isobasins. These are nearly equal-sized sub-watersheds that divide the landscape. By specifying a target basin size, users can control the granularity of the analysis, allowing for tailored watershed delineation based on specific project requirements.\r\n\r\nVectorization of Isobasins:\r\nThe final step involves converting the raster-based isobasins into vector polygons. This transformation enables further spatial analysis, integration with other GIS layers, and easy export to different formats for use in hydrological models or other geospatial applications.\r\n\r\nWhy Use This Script?\r\n1. Efficiency: Automating these processes reduces the time and effort required to manually process DEMs and generate catchment areas, especially for large or complex landscapes.\r\n2. Accuracy: By using advanced algorithms like Wang and Liu for depression filling, the script ensures high accuracy in the hydrological representation of the landscape.\r\n3. Flexibility: Users can easily modify the target basin size to suit different project scales, from large river basins to small urban watersheds.\r\n4. Integration: The vectorized outputs can be easily integrated into other QGIS projects or exported to formats compatible with various hydrological modeling software, such as HEC-HMS, InfoWorks ICM, or SWMM.\r\n\r\nInstallation and Setup:\r\nTo run this script, you need to have QGIS installed on your system with Python support, along with the WhiteboxTools Python library. The installation of WhiteboxTools is straightforward:\r\n\r\nCopy code\r\npip install whitebox\r\nOnce installed, the script can be executed within the QGIS Python Console, making it a seamless addition to your QGIS-based workflows.\r\n\r\nUsage Scenarios:\r\n1. Urban Flood Modeling: Delineate catchments in urban areas for flood risk assessment and stormwater management.\r\n2. Environmental Impact Studies: Use the script to analyze watersheds and sub-watersheds in environmental impact assessments.\r\n3. Watershed Management: Generate catchments for managing water resources and planning conservation efforts in large basins.\r\n4. Hydrological Research: Support academic research by providing a reliable tool for creating and analyzing watershed boundaries.\r\n\r\nFuture Enhancements:\r\nThis project is open to contributions. Future enhancements could include the addition of more advanced hydrological analysis tools, integration with cloud-based GIS services, or the development of a graphical user interface (GUI) for easier script execution.","shortMessageHtmlLink":"subcatchments_from_raster.py"}},{"before":"c6d8878ead538ca22803fcfc9b7bef3ac528fbe2","after":"595060559bd40ebb95f5da59a3c6033631e57c0d","ref":"refs/heads/main","pushedAt":"2024-08-09T00:04:07.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"ashainp","name":"Ash Perera","path":"/ashainp","primaryAvatarUrl":"https://github.com/avatars/u/64067141?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"9be8a7362745c2d6b942f6d0af30efdc4f47a392","after":"c6d8878ead538ca22803fcfc9b7bef3ac528fbe2","ref":"refs/heads/main","pushedAt":"2024-08-09T00:02:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"ashainp","name":"Ash Perera","path":"/ashainp","primaryAvatarUrl":"https://github.com/avatars/u/64067141?s=80&v=4"},"commit":{"message":"Update README.md\n\nExplanation of the use of the script to generate delineated subcatchments using a raster DEM layer","shortMessageHtmlLink":"Update README.md"}},{"before":null,"after":"9be8a7362745c2d6b942f6d0af30efdc4f47a392","ref":"refs/heads/main","pushedAt":"2024-08-08T23:55:54.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"ashainp","name":"Ash Perera","path":"/ashainp","primaryAvatarUrl":"https://github.com/avatars/u/64067141?s=80&v=4"},"commit":{"message":"Initial commit","shortMessageHtmlLink":"Initial commit"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0xMlQwNDoyODo0Ny4wMDAwMDBazwAAAASz7AQZ","startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0xMlQwNDoyODo0Ny4wMDAwMDBazwAAAASz7AQZ","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOC0wOFQyMzo1NTo1NC4wMDAwMDBazwAAAASVw01A"}},"title":"Activity ยท ashainp/Subcatchment-from-Raster"}