[GRASS-user] TIN to raster conversion module - <v.tin.to.rast>

Hello all!

I have corrected and adapted to recent GRASS versions (6.4.* and 7.0) the script of Antonio Alliegro “tin.to.raster”.

These are 2 separate scripts for 6.4.* and 7.0:
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G64.py
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G70.py

Could you test them, please? Maybe some errors or enhancements? Thanks in advance!

Hello,

···

On Sun, Apr 5, 2015 at 5:02 AM, Alexander Muriy <amuriy@gmail.com> wrote:

Hello all!

I have corrected and adapted to recent GRASS versions (6.4.* and 7.0) the script of Antonio Alliegro “tin.to.raster”.

These are 2 separate scripts for 6.4.* and 7.0:
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G64.py
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G70.py

Could you test them, please? Maybe some errors or enhancements? Thanks in advance!

thank you for your contribution. I tried the G7 version and works great, just fix please the clean up, you use old g.remove interface, it should be:
grass.run_command(‘g.remove’, type=‘raster’, name=tmp).

Also I would remove stderr = nuldev from all run_commands, not sure why they are there.

Have you considered uploading the scripts in the official GRASS addons repository? It would be easier for people to install it then. And it could be maintained by other developers too.
http://trac.osgeo.org/grass/wiki/HowToContribute#WriteaccesstotheGRASS-Addons-SVNrepository

Cheers,

Anna


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Thanks for your answer, Anna :slight_smile: I’m not sure about <g.region> stuff, but I’m ready to upload scripts to grass-addons SVN.

···

2015-04-05 21:33 GMT+03:00 Anna Petrášová <kratochanna@gmail.com>:

Hello,

On Sun, Apr 5, 2015 at 5:02 AM, Alexander Muriy <amuriy@gmail.com> wrote:

Hello all!

I have corrected and adapted to recent GRASS versions (6.4.* and 7.0) the script of Antonio Alliegro “tin.to.raster”.

These are 2 separate scripts for 6.4.* and 7.0:
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G64.py
https://github.com/amuriy/GRASS-scripts/blob/master/Python/v.tin.to.rast_G70.py

Could you test them, please? Maybe some errors or enhancements? Thanks in advance!

thank you for your contribution. I tried the G7 version and works great, just fix please the clean up, you use old g.remove interface, it should be:
grass.run_command(‘g.remove’, type=‘raster’, name=tmp).

Also I would remove stderr = nuldev from all run_commands, not sure why they are there.

Have you considered uploading the scripts in the official GRASS addons repository? It would be easier for people to install it then. And it could be maintained by other developers too.
http://trac.osgeo.org/grass/wiki/HowToContribute#WriteaccesstotheGRASS-Addons-SVNrepository

Cheers,

Anna


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

you use old g.remove interface, it should be:
grass.run_command('g.remove', type='raster', name=tmp).

[...]

I'm not sure about <g.region> stuff, but I'm ready to upload scripts to
grass-addons SVN.

change to new g.remove syntax for g7, see:
http://lists.osgeo.org/pipermail/grass-commit/2015-April/035894.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/TIN-to-raster-conversion-module-v-tin-to-rast-tp5200006p5200031.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Thanks for edits, Helmut! I will be more careful with Python scripts parameters.

···

2015-04-06 0:45 GMT+03:00 Helmut Kudrnovsky <hellik@web.de>:

you use old g.remove interface, it should be:
grass.run_command(‘g.remove’, type=‘raster’, name=tmp).
[…]
I’m not sure about <g.region> stuff, but I’m ready to upload scripts to
grass-addons SVN.

change to new g.remove syntax for g7, see:
http://lists.osgeo.org/pipermail/grass-commit/2015-April/035894.html


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/TIN-to-raster-conversion-module-v-tin-to-rast-tp5200006p5200031.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user