From 33f34da660da4b3d2950b04f0584ea819c7f2337 Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Mon, 25 May 2026 11:17:45 +0530 Subject: [PATCH 1/4] Fix broken links and setup errors in time series tutorials --- content/tutorials/time_series/time_series_aggregations.qmd | 4 ++-- .../time_series_management_and_visualization.qmd | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/tutorials/time_series/time_series_aggregations.qmd b/content/tutorials/time_series/time_series_aggregations.qmd index 137fd6c..ad8b3d3 100644 --- a/content/tutorials/time_series/time_series_aggregations.qmd +++ b/content/tutorials/time_series/time_series_aggregations.qmd @@ -45,14 +45,14 @@ import subprocess # Ask GRASS where its Python packages are sys.path.append( - subprocess.check_output([grassbin, "--config", "python_path"], text=True).strip() + subprocess.check_output(["grass", "--config", "python_path"], text=True).strip() ) # Import the GRASS packages we need import grass.script as gs import grass.jupyter as gj -path_to_project = "eu_laea/italy_LST_daily" +path_to_project = "italy_eu_laea/italy_LST_daily" # Start the GRASS session session = gj.init(path_to_project); diff --git a/content/tutorials/time_series/time_series_management_and_visualization.qmd b/content/tutorials/time_series/time_series_management_and_visualization.qmd index 9ef878b..c77e25f 100644 --- a/content/tutorials/time_series/time_series_management_and_visualization.qmd +++ b/content/tutorials/time_series/time_series_management_and_visualization.qmd @@ -267,7 +267,7 @@ can create this file for you when you import data into GRASS. ::: {.callout-note} Have a look at the -t.register +t.register manual page and a dedicated [wiki](https://grasswiki.osgeo.org/wiki/Temporal_data_processing/maps_registration) with further examples. @@ -294,7 +294,7 @@ and observe topological relationships among STDS. #### Temporal plot for Trento, Italy -The temporal plot tool, [`g.gui.tplot`](https://grass.osgeo.org/grass83/manuals/g.gui.tplot.html), +The temporal plot tool, [`g.gui.tplot`](https://grass.osgeo.org/grass-stable/manuals/g.gui.tplot.html), allows to plot the time series values of raster or vector space-time datasets. In this case, we will plot the LST time series for the city of Trento, Italy. @@ -424,7 +424,7 @@ same filtering can be applied in tools to determine maps that will be processed. ### Descriptive statistics -The tool [`t.rast.univar`](https://grass.osgeo.org/grass-stable/manuals/t.vect.univar.html) +The tool [`t.rast.univar`](https://grass.osgeo.org/grass-stable/manuals/t.rast.univar.html) calculates univariate statistics from the non-null cells of each raster map within STRDS. By default it returns the name of the map, the start and end date of the From 978c32ea3db62ae7597ec53a171fbcbba454723d Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Sun, 31 May 2026 20:46:27 +0530 Subject: [PATCH 2/4] Define grassbin variable with default value for portability --- content/tutorials/time_series/time_series_aggregations.qmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/tutorials/time_series/time_series_aggregations.qmd b/content/tutorials/time_series/time_series_aggregations.qmd index ad8b3d3..e2bbf72 100644 --- a/content/tutorials/time_series/time_series_aggregations.qmd +++ b/content/tutorials/time_series/time_series_aggregations.qmd @@ -43,9 +43,11 @@ import os import sys import subprocess +grassbin = "grass" # change if your GRASS binary has a different name or path + # Ask GRASS where its Python packages are sys.path.append( - subprocess.check_output(["grass", "--config", "python_path"], text=True).strip() + subprocess.check_output([grassbin, "--config", "python_path"], text=True).strip() ) # Import the GRASS packages we need From 4bfacaa62bb11692bdb4f766b83288b94e54411f Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Mon, 1 Jun 2026 22:54:11 +0530 Subject: [PATCH 3/4] Use grass string directly in setup cell per maintainer feedback --- content/tutorials/time_series/time_series_aggregations.qmd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/tutorials/time_series/time_series_aggregations.qmd b/content/tutorials/time_series/time_series_aggregations.qmd index e2bbf72..ad8b3d3 100644 --- a/content/tutorials/time_series/time_series_aggregations.qmd +++ b/content/tutorials/time_series/time_series_aggregations.qmd @@ -43,11 +43,9 @@ import os import sys import subprocess -grassbin = "grass" # change if your GRASS binary has a different name or path - # Ask GRASS where its Python packages are sys.path.append( - subprocess.check_output([grassbin, "--config", "python_path"], text=True).strip() + subprocess.check_output(["grass", "--config", "python_path"], text=True).strip() ) # Import the GRASS packages we need From 5d0ff3d5028f2d93f5cea4eb3177f42f06c7944f Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Tue, 2 Jun 2026 16:21:39 +0530 Subject: [PATCH 4/4] Fix invalid tile name and stale versioned link in time series tutorials --- content/tutorials/time_series/time_series_aggregations.qmd | 2 +- content/tutorials/time_series/time_series_query_with_vector.qmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/tutorials/time_series/time_series_aggregations.qmd b/content/tutorials/time_series/time_series_aggregations.qmd index ad8b3d3..0669cb5 100644 --- a/content/tutorials/time_series/time_series_aggregations.qmd +++ b/content/tutorials/time_series/time_series_aggregations.qmd @@ -228,7 +228,7 @@ gs.run_command("t.rast.series", method="average") # Display raster map with interactive class -spw_map = gj.InteractiveMap(width = 500, use_region=True, tiles="CartoDark") +spw_map = gj.InteractiveMap(width = 500, use_region=True, tiles="CartoDB.DarkMatter") spw_map.add_raster("avg_spring_warming") spw_map.add_layer_control(position = "bottomright") spw_map.show() diff --git a/content/tutorials/time_series/time_series_query_with_vector.qmd b/content/tutorials/time_series/time_series_query_with_vector.qmd index dc2551b..37be6ce 100644 --- a/content/tutorials/time_series/time_series_query_with_vector.qmd +++ b/content/tutorials/time_series/time_series_query_with_vector.qmd @@ -306,7 +306,7 @@ need aggregated values for a set of points. :::{.callout-note} We could have also used -[t.sample](https://grass.osgeo.org/grass84/manuals/t.sample.html) +[t.sample](https://grass.osgeo.org/grass-stable/manuals/t.sample.html) to check which maps from `lst_daily` would be aggregated in the new column `lst_new` above.