<div dir="ltr"><div dir="ltr"><div>Hi Stefan, <br></div><div><br></div><div>Sorry for my late response here... Yes, that sounds like something useful to me, with collections of satellite images such a case/problem might be pretty common. So, having the chance to select/filter only those scenes (fully) covering the current computational region is a good addition in my opinion. </div><div><br></div><div>Thanks Stefan!</div><div><br></div><div>Cheers,</div><div>Vero<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 20 dic 2022 a las 5:53, Paulo van Breugel (<<a href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

<div>
<div dir="auto">
<div dir="auto"><br></div><div dir="auto"><br></div>
<div id="m_-7882743181903119149aqm-original" style="color:black">
<div dir="auto">On December 14, 2022 15:24:28 Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@gmx.de" target="_blank">Stefan.Blumentrath@gmx.de</a>> wrote:</div>
<div><br></div>
<blockquote type="cite" class="gmail_quote" style="margin:0px 0px 0px 0.75ex;border-left:1px solid rgb(128,128,128);padding-left:0.75ex">
<div dir="auto">Hei,</div>
<div dir="auto"> </div>
<div dir="auto">I do have a use case where I would like to filter maps in a STRDS by spatial extent before e.g. t.rast.univar processes all registered maps.</div>
<div dir="auto">In particular, I want to process only maps from a STRDS that intersect with the current computational region.</div>
<div dir="auto"> </div>
<div dir="auto">The reason is that the maps registered in the STRDS are collections of single scenes of satellite images or collections of smaller mosaics that cover only parts of the total extent of the STRDS.</div>
<div dir="auto"> </div>
<div dir="auto">Currently, that does not seem to be supported by TGIS, and I see two options to address that:</div>
<div dir="auto">    a) patch the scenes together with a given granularity (e.g. daily mosaics), leave GRASS GIS functions untouched and hope that there is some coverage for reasonable region settings. or:</div>
<div dir="auto">    b) add a spatial filter to the "get_registered_maps"[1] function in abstract_space_time_dataset.py, and then subsequently flags to relevant modules that make use modified function...</div>
<div dir="auto"><br></div>
<div dir="auto">For b) I would think that the most efficient way to handle it would be to add a where clause like it was done for the semantic labels? In that case, it may make sense to add an index for north, south, east, and west too, no? Maybe also top and bottom...</div></blockquote></div><div id="m_-7882743181903119149aqm-original" style="color:black" dir="auto"><blockquote type="cite" class="gmail_quote" style="margin:0px 0px 0px 0.75ex;border-left:1px solid rgb(128,128,128);padding-left:0.75ex"><div dir="auto"></div>
<div dir="auto"><br></div>
<div dir="auto">My main question, however is if my case is just a corner case, or does some sort of spatial filteing possibility make sense in general / more broadly...</div></blockquote></div><div dir="auto"><br></div><div dir="auto">It seems a bit of a corner case, but in fact something I could use, of I understand it right. </div><div dir="auto"><br></div><div id="m_-7882743181903119149aqm-original" style="color:black" dir="auto"><blockquote type="cite" class="gmail_quote" style="margin:0px 0px 0px 0.75ex;border-left:1px solid rgb(128,128,128);padding-left:0.75ex"><div dir="auto"></div>
<div dir="auto"><br></div>
<div dir="auto">Any feedback is much appreciated, esp. before I evtl. start working on b).</div>
<div dir="auto"><br></div>
<div dir="auto">Kind regards,</div>
<div dir="auto">Stefan</div>
<div dir="auto"><br></div>
<div dir="auto">1) <a href="https://github.com/OSGeo/grass/blob/main/python/grass/temporal/abstract_space_time_dataset.py#L1604" target="_blank">https://github.com/OSGeo/grass/blob/main/python/grass/temporal/abstract_space_time_dataset.py#L1604</a></div>
<div dir="auto"><br></div>
<div dir="auto">_______________________________________________</div>
<div dir="auto">grass-dev mailing list</div>
<div dir="auto"><a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a></div>
<div dir="auto"><a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a></div>
</blockquote>
</div><div dir="auto"><br></div>
</div></div>

_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div>