Grass jupyter TimeSeriesMap fill_gaps

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

Is this related to [Bug] t.rast.list method=gran gets stuck with small granularity, large temporal extent STDS · Issue #2688 · OSGeo/grass · GitHub?

Try fill_gaps=True and see if that gives what you’re expecting:

ndvi_map.add_raster_series(“sentinel_ndvi”, fill_gaps=True)

Otherwise maybe it’s related to the bug Anna mentioned? If so, try gj.SeriesMap().

Caitlin

On Wed, Apr 16, 2025 at 9:55 AM Anna Petrasova via OSGeo Discourse <noreply@discourse.osgeo.org> wrote:

annakrat
April 16

Is this related to [Bug] t.rast.list method=gran gets stuck with small granularity, large temporal extent STDS · Issue #2688 · OSGeo/grass · GitHub?


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.