Re: [GRASS-dev] PyGRASS: changing description and comments

2018-11-13 Thread Markus Neteler
On Tue, Nov 13, 2018 at 9:03 AM Luca Delucchi  wrote:
> Il giorno sab 10 nov 2018, 17:46 Luí­s Moreira de Sousa 
>  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
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] PyGRASS: changing description and comments

2018-11-13 Thread Luca Delucchi
Il giorno sab 10 nov 2018, 17:46 Luí­s Moreira de Sousa <
luis.de.so...@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
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] PyGRASS: changing description and comments

2018-11-10 Thread Luí­s Moreira de Sousa
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.so...@protonmail.ch
RingID: ring:7ca91d83f4f9dec82fec9f1144b8e5c1ef2a110c
URL: https://ldesousa.github.io

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev