<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>Hello!</div>
<div><br>
</div>
<div>I'm working with pygrass, developing a new module for GRASS.</div>
<div><br>
</div>
<div>I need to create a new raster map during the execution. I'm using the commands:</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><b><span style="color: rgb(0, 111, 201);"><span>    </span><span>    </span>from
</span></b>grass.pygrass <span style="color: rgb(0, 111, 201);"><b>import </b></span>raster</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><span>    </span><span>    </span>newRasterMap = raster.RasterSegment('new')</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><span>    </span><span>    </span>newRasterMap.open('w', 'CELL')</div>
<div><br>
</div>
<div><br>
</div>
<div>I've noticed that new raster maps are created with the resolution of the current region in GRASS. I've noticed also that it is possible to change the current region during the execution of my new module using the script 'g.region'. However, it looks like
 if I want to change the resolution again, the script 'g.region' does not have any effect. My conclusion:
<u>GRASS can change the current region just 1 time during the execution of a module. Is that correct?</u></div>
<div><br>
</div>
<div>I would like to know <u>how can I develop a new module (using pygrass) where I could be able to create three new raster maps with different resolutions each?</u></div>
<div><br>
</div>
<div>Thank you all very much!</div>
<div>--</div>
<div>Dan</div>
<p></p>
</div>
</div>
</body>
</html>