<div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">Hello,</span></div><div class="protonmail_quote"><div style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;margin:0px"><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">I'm trying to load a specific time<span> </span><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">slice </span>from a WMS layer using QgsRasterLayer in PyQGIS.</div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">I've found a previous thread in this mailing list which is about how to make the layer "time-aware": </div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><a style="margin:0px" href="https://lists.osgeo.org/pipermail/qgis-developer/2021-May/063594.html" rel="noreferrer nofollow noopener" target="_blank">https://lists.osgeo.org/pipermail/qgis-developer/2021-May/063594.html</a><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">So far so good, I have a time aware layer - but how do I select a specific date out of the published capabilities? I couldn't find any documentation or examples on that. I've tried playing around with the temporalProperties of the layer, but without any success.</div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">Thanks in advance for any help / hints! </div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">PS:  I also have a question on gis.stackexchange about this, which could offer some more details as well as the current progress towards a solution:</div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><a style="margin:0px" href="https://gis.stackexchange.com/q/444332/68322" rel="noreferrer nofollow noopener" target="_blank">https://gis.stackexchange.com/q/444332/68322</a><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px"><br></div><div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">Thanks,</div><span style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">Val</span></div><div style="font-family: Arial; font-size: 14px;" class="protonmail_signature_block"><div class="protonmail_signature_block-proton">
    </div>
</div>

        <br>
    </div>