Changes between Version 9 and Version 10 of Submitting/Python
- Timestamp:
- 06/23/14 17:24:35 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Submitting/Python
v9 v10 152 152 TODO: this needs to be fixed, it's more complicated 153 153 154 === Temporary region === 155 If your script needs to modify computational region, use the following functions: 156 {{{ 157 #!python 158 grass.use_temp_region() 159 # now you can safely modify the region 160 grass.run_command('g.region', rast='input') 161 # and when you are done: 162 grass.del_temp_region() 163 }}} 164 165 Note 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 154 167 === Checking inputs of a module === 155 168