[GRASS-user] raster boxplots wrong assignment

sibylle.stoeckli at gmx.ch sibylle.stoeckli at gmx.ch
Fri May 31 00:35:36 PDT 2024


Dear community

 

I tested the r.boxplot addon and it is definitively possible to run the
addon with more than 20 classes/regions/sites/squares.

Furthermore I realised the reason for the wrong assignment of class to
raster, but I am not yet able to fix it.

*	The challenge is, that (at the moment) I have raster data for one
class (one square), but in total I have 150 squares. So at the moment it
just selects the first square (either by cat oder ID_Quadrat).
*	It seems however, if I have raster data for all squares, r.boxplot
is working fine.
*	My question: Is it possible to assign raster data for one individual
class/squares, of you have missing data for other classes/squares?

 

Kind regards

Sibylle

 

First using this code here:

v.to.rast input=Untersuchungsquadrate_2020_2024 at PERMANENT output=Quadrate
use=attr attribute_column="ID_Quadrat" label_column="ID_Quadrat"

r.boxplot -o input=U803174_abgeschnitten zones=Quadrate bx_sort=ascending
raster_statistics=median

 



 

 

 

Second using this code here:

v.to.rast input=Untersuchungsquadrate_2020_2024 at PERMANENT output=Quadrate
use=attr attribute_column=cat label_column="ID_Quadrat"

r.boxplot -o input=U803174_abgeschnitten zones=Quadrate bx_sort=ascending
raster_statistics=median

 

 



From: sibylle.stoeckli at gmx.ch <sibylle.stoeckli at gmx.ch> 
Sent: Thursday, May 30, 2024 9:27 AM
To: 'grass-user at lists.osgeo.org' <grass-user at lists.osgeo.org>
Subject: RE: raster boxplots wrong assignment

 

Dear community

 

I am still wondering, if the r.boxplot addon is working with just a limited
number of areass/sites/regions?

 

Kind regards

Sibylle

 

From: sibylle.stoeckli at gmx.ch <mailto:sibylle.stoeckli at gmx.ch>
<sibylle.stoeckli at gmx.ch <mailto:sibylle.stoeckli at gmx.ch> > 
Sent: Saturday, May 25, 2024 3:48 PM
To: 'grass-user at lists.osgeo.org' <grass-user at lists.osgeo.org
<mailto:grass-user at lists.osgeo.org> >
Subject: raster boxplots wrong assignment

 

Dear community

 

I would like to plot boxplots from a raster _pres_apple_spring_merged  for
different 1 km2 squares (38 squares, Fig. 1, layer “Untersuchungsquadrate”).
I was using the same code as used before for 12 regions:

https://ecodiv.earth/post/drawing-boxplots-of-raster-values/ (Author Paulo
van Breugel). All layers have the same projection (EPSG:2056, CH1903+/LV95).
However, when loading the layer squares (Untersuchungsquadrate) GRASS GIS
was asking for reprojection.

 

*	I got now a warning message, that I have a lot of categories,
however, the modelling time was fast (Fig 2)
*	The error is now, that the boxplot is not showing all squares  (e.g.
ID_Quadrat 803174) and the boxplots are assigned to the wrong square
(ID_Quadrat) (Fig. 3)

 

Kind regards

Sibylle Stöckli

 

Fig. 1

 



 

Fig. 2

 



 

Figure 3

 



 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 55410 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 42731 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 48805 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 117720 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 128422 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240531/d3c2c868/attachment-0009.png>


More information about the grass-user mailing list