<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Juan,</div><div>That sounds like it might be what this GRASS addon does: <a href="https://grass.osgeo.org/grass82/manuals/addons/r.prominence.html" target="_blank">r.prominence - GRASS GIS manual (osgeo.org)</a></div><div>Does it do what you intend your plugin to do?  This discussion might also help: <a href="https://www.mail-archive.com/grass-user@lists.osgeo.org/msg11209.html" target="_blank">Re: [GRASS-user] r.prominence (mail-archive.com)</a></div><div><br></div><div>QGIS includes GRASS GIS and a processing provider allowing us to run GRASS modules in QGIS, so if that does what you want, you should probably look at writing an algorithm description for the QGIS processing provider to be able to use it.  That way you are using an existing tool and don't have to write the python code.  You can probably copy another algorithm description easily enough, but see the documentation here (the version in your QGIS install is probably very out of date - I just updated it recently): <a href="https://github.com/qgis/QGIS/blob/master/python/plugins/grassprovider/grass7.txt" target="_blank">QGIS/python/plugins/grassprovider/grass7.txt at master · qgis/QGIS · GitHub</a></div><div><br></div><div>I have done some work to allow users to install GRASS addons and create algorithm descriptions for them, so hopefully this will be available in a QGIS release soon (my second pull request hasn't been approved and merged yet).</div><div>See <a href="https://github.com/qgis/QGIS/issues/53048" target="_blank">Add support for GRASS addons · Issue #53048 · qgis/QGIS (github.com)</a></div><div><br></div><div>If you want to write algorithm descriptions for GRASS addons in the meantime, you will need to install them in the QGIS installation directory, which may require administrator rights on your computer.</div><div dir="ltr"><br></div><div>Regards,</div><div>Alister</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Jun 2023 at 06:44, <<a href="mailto:qgis-user-request@lists.osgeo.org" target="_blank">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. consultation (Juan Pablo Moreno Sebastian)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 21 Jun 2023 18:42:57 +0000<br>
From: Juan Pablo Moreno Sebastian <<a href="mailto:jpablotop@hotmail.com" target="_blank">jpablotop@hotmail.com</a>><br>
To: "<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>" <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
Subject: [Qgis-user] consultation<br>
Message-ID:<br>
        <<a href="mailto:AM7PR09MB3750218EC65EBA100C6C66CBBE5DA@AM7PR09MB3750.eurprd09.prod.outlook.com" target="_blank">AM7PR09MB3750218EC65EBA100C6C66CBBE5DA@AM7PR09MB3750.eurprd09.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Good afternoon.<br>
<br>
I'm Juan Pablo Moreno.<br>
<br>
I have to develop a plugin for QGIS that calculates the orographic prominence of the hills and then goes on to classify the points.<br>
I will now explain my idea more slowly.<br>
<br>
1? The plugin must load an MDT.<br>
2? Locate hills by analysis of each cell of the MDT and those of its surroundings. I locate a cell and if the surroundings are of lower level it will be a possible hill, the holes would be the other way around.<br>
3? Calculation of the orographic prominence of each hill.<br>
??????<br>
??????Prominence:<br>
??????The prominence of a mountain is a notion used in orography for the classification of mountains. It is defined as the minimum slope that must be descended from the top of a mountain to ascend to a higher one. The more prominent a mountain is, the more it will stand out among those around it, regardless of its altitude.<br>
?????<br>
??????????????????Prominence = mountain altitude - altitude minimum point<br>
<br>
??????[cid:134c04d1-db0c-4fb6-becb-4ec2ae026d73]<br>
<br>
To calculate the prominence, a program would have to be developed that did something similar to the following:<br>
<br>
An analogy widely used to explain these relationships and, incidentally, to illustrate a possible procedure for detecting hills and hills, alludes to the myth of the universal flood. We imagine that the earth has been flooded under a thick blanket of water that covers it completely, without leaving a single piece of land emerged. After the end of the flood, the evaporation of water causes small islands to begin to emerge. The first to appear is the summit of Everest and the following, other summits of the Himalayas. As the sea level drops due to evaporation, the surface area occupied by each island increases and there comes a time when the level is low enough for the island to merge with another land mass through some isthmus that has been exposed.  The exact point at which the connection of two islands occurs coincides with a col and is associated with the summit of the lower altitude island to determine its prominence. The value is obtained from the difference in height between the<br>
  hill and the associated hill, as can be seen from its definition.<br>
<br>
We apologize for the inconvenience.<br>
If you find the subject interesting or were so kind as to guide me a little?, tell me if it sounds like something or know something similar?, give me some advice on where or how to start?, or if you have another idea on the subject, I am very lost in python programming and everything would be very helpful,  I would be very grateful.<br>
<br>
Thank you very much for everything.<br>
Best regards.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20230621/680e45f8/attachment.htm" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20230621/680e45f8/attachment.htm</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image.png<br>
Type: image/png<br>
Size: 43302 bytes<br>
Desc: image.png<br>
URL: <<a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20230621/680e45f8/attachment.png" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20230621/680e45f8/attachment.png</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 208, Issue 38<br>
******************************************<br>
</blockquote></div></div></div></div></div></div></div></div>