[GRASS-user] g.gui.tplot opens plot when exporting csv from cli

Hi,

I’m trying to export in a csv the data used to plot a time series in a given point, and I have to run it in a script passing a series of coordinates, so the problem is that using g.gui.tplot from command line, it opens the plot and needs to be closed manually. Perhaps there is another tool more suitable for this purpose?

Thank you in advance

Regards,

···

Margherita Di Leo

Hi,
you might try to add the following line in before the call of g.gui.tplot in your script:

setenv DISPLAY /dev/null

This sends the gui to nowhere and is not visible and destroyed imediately hence.

regards

Stefan

Margherita Di Leo <diregola@gmail.com> hat am 12. Oktober 2018 um 10:39 geschrieben:

Hi,

I'm trying to export in a csv the data used to plot a time series in a
given point, and I have to run it in a script passing a series of
coordinates, so the problem is that using g.gui.tplot from command line, it
opens the plot and needs to be closed manually. Perhaps there is another
tool more suitable for this purpose?

Thank you in advance

Regards,

--
Margherita Di Leo
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi Margherita,

Try t.rast.what:

https://grass.osgeo.org/grass76/manuals/t.rast.what.html

Cheers,

Stefan

···

Hi,

I’m trying to export in a csv the data used to plot a time series in a given point, and I have to run it in a script passing a series of coordinates, so the problem is that using g.gui.tplot from command line, it opens the plot and needs to be closed manually. Perhaps there is another tool more suitable for this purpose?

Thank you in advance

Regards,

Margherita Di Leo