Changes between Version 9 and Version 10 of Submitting/Python


Ignore:
Timestamp:
06/23/14 17:24:35 (10 years ago)
Author:
annakrat
Comment:

added note about temporary region

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/Python

    v9 v10  
    152152TODO: this needs to be fixed, it's more complicated
    153153
     154=== Temporary region ===
     155If your script needs to modify computational region, use the following functions:
     156{{{
     157#!python
     158grass.use_temp_region()
     159# now you can safely modify the region
     160grass.run_command('g.region', rast='input')
     161# and when you are done:
     162grass.del_temp_region()
     163}}}
     164
     165Note that changing computational region is usually not necessary and not even expected. Typically, user sets region before running the script and expects all computations to be done within this region.
     166
    154167=== Checking inputs of a module ===
    155168