<div dir="ltr"><div><div><div><div><div><div>I am trying to repeatedly change the region in a script. To get the current region I would normally use <br><br>>>>reg1 = grass.script.region()<br><br></div>When using pygrass, I can also use<br><br></div><div>>>>import grass.pygrass.gis.region as region<br></div>>>>reg2 = region.Region()<br><br></div>The first time I run this reg1 = reg2<br><br></div>Now, when I change the region, and run again:<br><br>>>>reg3 = grass.script.region()<br><br></div>The reg3 values reflect the new region settings. However, when I run<br><br>>>>reg2 = region.Region()<br><br></div>The reg4 values are the same as reg2<br><div><div><div><div><div><div><div><div><div><br></div>How do I get a Region object with the current / changed region settings?<br><br><br><br><br><br><br><br></div></div></div></div></div></div></div></div></div>