Hi all,
I’m preparing a lesson and I tried to use TimeSeriesMap.
I have a STRDS with 8 maps like the following
name|mapset|start_time|end_tim
e
sentinel_ndvi_0|PERMANENT|2024-04-12 00:00:00|2024-04-13 00:00:00
sentinel_ndvi_1|PERMANENT|2024-07-14 00:00:00|2024-07-15 00:00:00
sentinel_ndvi_2|PERMANENT|2024-07-31 00:00:00|2024-08-01 00:00:00
sentinel_ndvi_3|PERMANENT|2024-08-10 00:00:00|2024-08-11 00:00:00
sentinel_ndvi_4|PERMANENT|2024-08-30 00:00:00|2024-08-31 00:00:00
sentinel_ndvi_5|PERMANENT|2024-09-29 00:00:00|2024-09-30 00:00:00
sentinel_ndvi_6|PERMANENT|2024-10-22 00:00:00|2024-10-23 00:00:00
sentinel_ndvi_7|PERMANENT|2024-10-29 00:00:00|2024-10-30 00:00:00
My code is the following
ndvi_map = gj.TimeSeriesMap()
ndvi_map.add_raster_series(“sentinel_ndvi”, fill_gaps=False)
out_file = “{}.gif”.format(tempfile.mkstemp()[1])
I set duration to 1 to speed up
Image(ndvi_map.save(out_file, duration=1))
I was thinking of printing only the 8 maps instead of printing all the days.
Is it a bug or is it a feature?
–
ciao
Luca