<div dir="ltr"><div dir="ltr"><div>If the outlet points are correctly positioned on the stream network (i.e. you don't need to "snap" them to the streams) and you're able to install and run GRASS addons, you should be able to just use r.accumulate with the outlet= option to specify the layer of outlet points, and the subwatershed= option to tell it to calculate watersheds.</div><div>If you want to run it as a QGIS processing algorithm, you'll need to create a description file.  This is mine, but you don't need most of it if you're not wanting to use other features of r.accumulate.:</div><div><br></div><div><div>r.accumulate</div><div>Calculates weighted flow accumulation, subwatersheds, stream networks, and longest flow paths using a flow direction map.</div><div>Raster (r.*)</div><div>QgsProcessingParameterRasterLayer|direction|Drainage direction input raster|None|False</div><div>*QgsProcessingParameterEnum|format|Format of drainage direction input raster|auto;degree;45degree|False|0|False</div><div>*QgsProcessingParameterNumber|threshold|Minimum flow accumulation for streams|QgsProcessingParameterNumber.Integer|4000|True|4000|None</div><div>*QgsProcessingParameterRasterLayer|input_accumulation|Flow Accumulation input raster|None|True</div><div>*QgsProcessingParameterRasterLayer|input_subaccumulation|Flow subaccumulation input raster|None|True</div><div>*QgsProcessingParameterBoolean|-n|Use negative flow accumulation for likely underestimates|False</div><div>*QgsProcessingParameterBoolean|-0|Use 0s instead of nulls for no flow accumulation (faster)|False</div><div>*QgsProcessingParameterBoolean|-a|Calculate accumulated longest flow paths|True</div><div>*QgsProcessingParameterBoolean|-c|Delineate streams across confluences|False</div><div>*QgsProcessingParameterBoolean|-r|Use recursive algorithms|False</div><div>QgsProcessingParameterPoint|coordinates|Coordinates of outlet point|None|True</div><div>QgsProcessingParameterFeatureSource|outlet|Outlet points input vector layer|0|None|True</div><div>QgsProcessingParameterRasterDestination|accumulation|Flow accumulation output raster|None|True</div><div>QgsProcessingParameterRasterDestination|subaccumulation|Flow subaccumulation output raster|None|True</div><div>QgsProcessingParameterRasterDestination|subwatershed|Watersheds output raster|None|True</div><div>QgsProcessingParameterVectorDestination|stream|Streams output vector layer|QgsProcessing.TypeVectorLine|None|True</div><div>QgsProcessingParameterVectorDestination|longest_flow_path|Longest flow path output vector layer|QgsProcessing.TypeVectorLine|None|True</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Jan 2024 at 09:01, <<a href="mailto:qgis-user-request@lists.osgeo.org">qgis-user-request@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send QGIS-User mailing list submissions to<br>
        <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:qgis-user-request@lists.osgeo.org" target="_blank">qgis-user-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:qgis-user-owner@lists.osgeo.org" target="_blank">qgis-user-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of QGIS-User digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Calculate upslope catchment areas for multiple points? (Ben Jones)<br>
   2. Re: Calculate upslope catchment areas for multiple points? (kirk)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 14 Jan 2024 17:15:58 +1100<br>
From: Ben Jones <<a href="mailto:bmjones@iprimus.com.au" target="_blank">bmjones@iprimus.com.au</a>><br>
To: Qgis <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
Subject: [Qgis-user] Calculate upslope catchment areas for multiple<br>
        points?<br>
Message-ID: <<a href="mailto:0734D400-0095-4DAB-8C53-853157B5552F@iprimus.com.au" target="_blank">0734D400-0095-4DAB-8C53-853157B5552F@iprimus.com.au</a>><br>
Content-Type: text/plain;       charset=utf-8<br>
<br>
Hello All,<br>
<br>
I have used SAGA to generate channel networks and r.watershed to generate catchment sub-basins from Copernicus 30 m DEM data to assist with planning a stream sediment sampling program. Once samples are collected I would like to generate polygons that define the upslope area for each sample point.<br>
<br>
I understand that this can be done using SAGA Terrain Analysis ?Upslope area? tool that requires manually copying and pasting the X and Y coordinates for each sample point (one point at a time which works but is not practical for 100?s of samples, or in batches which is still not ideal and doesn?t appear to work?).<br>
<br>
Is there an easy way to import a point file with multiple points (100?s of points) to SAGA or another tool to automatically calculate upslope catchment areas for each of the points?<br>
<br>
I have come across two potential solutions:<br>
<br>
1) ?Qgis SAGA Upslope Area for several points automation?:<br>
<a href="https://gis.stackexchange.com/questions/342333/qgis-saga-upslope-area-for-several-points-automation" rel="noreferrer" target="_blank">https://gis.stackexchange.com/questions/342333/qgis-saga-upslope-area-for-several-points-automation</a><br>
2) ?Snap pour points and delineate multiple catchments in QGIS?:<br>
<a href="https://www.youtube.com/watch?v=Hqc_1CMadhA" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=Hqc_1CMadhA</a><br>
<br>
However, both are three years old and it appears there are complications using both these methods in newer versions of QGIS3. Are there alternative methods?<br>
<br>
I am using QGIS 3.28.11a on macOS Monterey.<br>
<br>
Thanks,<br>
<br>
Ben<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 14 Jan 2024 09:48:54 -0400<br>
From: kirk <<a href="mailto:kirk@nortekresources.com" target="_blank">kirk@nortekresources.com</a>><br>
To: Ben Jones <<a href="mailto:bmjones@iprimus.com.au" target="_blank">bmjones@iprimus.com.au</a>>, Qgis<br>
        <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
Subject: Re: [Qgis-user] Calculate upslope catchment areas for<br>
        multiple points?<br>
Message-ID: <<a href="mailto:1705240136977.2864c2306c2b3915@nortekresources.com" target="_blank">1705240136977.2864c2306c2b3915@nortekresources.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Ben.The python script should work in your version since it is written in python 3.? It us,a relatively simple routine which iterates over each sample point and rund the saga tool.? It nay take a while to run 100s of points but it should finish.Saga is a third party, open source software suite that is developed independantly of QGIS.? It is very powerful and fast for most raster processing.? Saga also has native batch or scripting capability which may be an option for you.? Just a note that the module syntax can change? with versions. So and older script may not complete on a new release.Kirk SchmidtSent from my Galaxy<br>
-------- Original message --------From: Ben Jones via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> Date: 2024-01-14  2:23?a.m.  (GMT-04:00) To: Qgis <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> Subject: [Qgis-user] Calculate upslope catchment areas for multiple points? Hello All,I have used SAGA to generate channel networks and r.watershed to generate catchment sub-basins from Copernicus 30 m DEM data to assist with planning a stream sediment sampling program. Once samples are collected I would like to generate polygons that define the upslope area for each sample point.I understand that this can be done using SAGA Terrain Analysis ?Upslope area? tool that requires manually copying and pasting the X and Y coordinates for each sample point (one point at a time which works but is not practical for 100?s of samples, or in batches which is still not ideal and doesn?t appear to work?).Is there an easy way to import a point file with multiple points (100?s of points) to SAGA or another tool to automatically calcu<br>
 late upslope catchment areas for each of the points?I have come across two potential solutions:1) ?Qgis SAGA Upslope Area for several points automation?:<a href="https://gis.stackexchange.com/questions/342333/qgis-saga-upslope-area-for-several-points-automation2" rel="noreferrer" target="_blank">https://gis.stackexchange.com/questions/342333/qgis-saga-upslope-area-for-several-points-automation2</a>) ?Snap pour points and delineate multiple catchments in QGIS?:<a href="https://www.youtube.com/watch?v=Hqc_1CMadhAHowever" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=Hqc_1CMadhAHowever</a>, both are three years old and it appears there are complications using both these methods in newer versions of QGIS3. Are there alternative methods?I am using QGIS 3.28.11a on macOS Monterey.Thanks,Ben_______________________________________________QGIS-User mailing listQGIS-User@lists.osgeo.orgList info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe</a>: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20240114/7b593769/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20240114/7b593769/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
------------------------------<br>
<br>
End of QGIS-User Digest, Vol 215, Issue 20<br>
******************************************<br>
</blockquote></div></div></div>