Re: [GRASS-user] d.rast in python script
Nikos Alexandris <[email protected]> Wed, 24 Oct 2018 15:14:55 +0200
| Newsgroups | gmane.comp.gis.grass.devel,gmane.comp.gis.grass.user |
|---|---|
| Message-ID | <[email protected]> |
* Frank David <[email protected]> [2018-10-24 12:04:43 +0200]: > >Le 24/10/2018 à 11:58, Nikos Alexandris a écrit : >>* Frank David <[email protected]> [2018-10-24 11:35:07 +0200]: >> >>>Stephan, >>> >>>The G_OPT_OUTPUT option generate well the check box "add tree >>>layer" in my script GUI. >>> >>>My problem, now is how to add the raster output while I want to >>>set his name by the script ? I succeed with g.copy my_raster_name >>>to output_raster_name. The copy is well displayed but this creates >>>a copy what is not very convenient... >> >>g.rename >> >>? > >Nikos, > >g.rename works too. But it's not more convenient because I need to >keep my raster in his original name. > >Cheers, > >Frank > Frank, apologies, but I think I missed the point of what you need to do. Is the "copy" not convenient because of "wasting" space? If yes, here another suggestion then: https://grasswiki.osgeo.org/wiki/LANDSAT#Hint:_Minimal_disk_space_copies In Python, something like: r.reclass( input=input_raster, output=output_raster, rules='-', stdin='*=*', verbose=False, quiet=True) Nikos -- Nikos Alexandris | Remote Sensing & Geomatics GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3 _______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEAREKAB0WIQRvnUUG88ooOAl00xqQU1NLaTxPswUCW9BwTwAKCRCQU1NLaTxP s6bYAP9KaWIQXxJEWeSR6xqleV0A2Mffhq+aoHjjGPqipwn4ggD/RuCrqCp8UUGb CpCrQehUBe/kViT1gEoiE98C2WX/cpY= =JLfI -----END PGP SIGNATURE-----