[GRASS-dev] PyGRASS: changing description and comments

Hi all,

is there a way of modifying the contents of the description and comments fields associated with rasters? I could also use r.support, but it would be more elegant to use the API.

···

Thank you.

Luís Moreira de Sousa

Bowlespark 8

6701 DN Wageningen

The Netherlands

Phone: +31 628 544 755

Email: luis.de.sousa@protonmail.ch

RingID: ring:7ca91d83f4f9dec82fec9f1144b8e5c1ef2a110c

URL: https://ldesousa.github.io

Sent with ProtonMail Secure Email.

Il giorno sab 10 nov 2018, 17:46 Luí­s Moreira de Sousa <luis.de.sousa@protonmail.ch> ha scritto:

Hi all,

Hi Luis,

is there a way of modifying the contents of the description and comments fields associated with rasters? I could also use r.support, but it would be more elegant to use the API.

It seems that description and comments are not possible to be modified by the API, other values instead are [0]

[0] https://grass.osgeo.org/grass70/manuals/libpython/pygrass.raster.html#module-pygrass.raster.history

Thank you.

Ciao
Luca

On Tue, Nov 13, 2018 at 9:03 AM Luca Delucchi <lucadeluge@gmail.com> wrote:

Il giorno sab 10 nov 2018, 17:46 Luí­s Moreira de Sousa <luis.de.sousa@protonmail.ch> ha scritto:

Hi all,

Hi Luis,

is there a way of modifying the contents of the description and comments fields associated with rasters? I could also use r.support, but it would be more elegant to use the API.

It seems that description and comments are not possible to be modified by the API, other values instead are [0]

[0] https://grass.osgeo.org/grass70/manuals/libpython/pygrass.raster.html#module-pygrass.raster.history

... grass70 is a bit dated, better:
https://grass.osgeo.org/grass74/manuals/libpython/pygrass.raster.html#module-pygrass.raster.history

even better
https://grass.osgeo.org/grass76/manuals/libpython/pygrass.raster.html#module-pygrass.raster.history

It will not change much but old API descriptions may lead to confusion.

Markus