1

Using the Copernicus Data Space Ecosystem dashboard I created a New Configuration that I am able to visualize on Folium using Python.

How can I specify an absolute timestamp? I want to visualize a specific date that can be selected programatically and not the most recent one. Here is my code:

m = folium.Map()
url = "https://sh.dataspace.copernicus.eu/ogc/wms/d9b6faf8-52af-...9"
w = folium.raster_layers.WmsTileLayer(url=url,
                                      name="Natural color",
                                      styles="RGB",
                                      fmt="image/png",
                                      transparent=True,
                                      layers="NATURAL-COLOR",
                                      overlay=True)
w.add_to(m)
m 

enter image description here

8
  • How does the WMS GetCapabilities response describe the time dimension?
    – nmtoken
    Sep 5 at 13:42
  • @nmtoken How can I check that? I know that plugins.TimestampedWmsTileLayers recognises the time dimension and that the time must be described according to TIME=2020-09-18T00:00:00.0Z/2020-09-19T00:00:00.0Z Sep 5 at 13:51
  • https://sh.dataspace.copernicus.eu/ogc/wms/d9b6faf8-52af-...9?service=WMS&request=GetCapabilities&
    – nmtoken
    Sep 5 at 13:53
  • <Dimension name="time" units="ISO8601"/> <Extent name="time" default="2023-09-05">1984-03-01/2023-09-05/P1D</Extent> Sep 5 at 13:56
  • 1
    so adding time="1984-03-01" to your parameters should work, P1D tells you that the period resolution is one day
    – nmtoken
    Sep 5 at 14:12

1 Answer 1

0

Add the name of the dimension (as described in the GetCapabilities response) to the list of parameters.

So if the GetCapabilities response gives:

<Dimension name="time" units="ISO8601"/>
<Extent name="time" default="2023-09-05">1984-03-01/2023-09-05/P1D</Extent>

then use a time string in the format YYYY-MM-DD, like time="1984-03-01"

P1D tells you that the time period resolution is one day.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.