Hi Mark, i followed your instructions, so i put in command-line <br>
<br>
g.region rast=MASK@default nsres=0:00:07.5 ewres=0:00:07.5<br>
<br>
Now, I get the same number of columns and rows. However, the cell size
isn't the same that ArcMAP output file...so i think it can be the reason
of non-similar extend and origin.... <br>
<br>
Below i show you the output gdalinfo,<br>
<br>
Driver: AAIGrid/Arc/Info ASCII Grid<br>
Files: D:\gras_data\temp\test5.asc<br>
Size is 5245, 4800<br>
Coordinate System is `'<br>
Origin = (-60.924999999999997,-0.001600000000000)<br>
Pixel Size = (0.002083000000000,-0.002083000000000)<br>
Corner Coordinates:<br>
Upper Left ( -60.9250000, -0.0016000) <br>
Lower Left ( -60.9250000, -10.0000000) <br>
Upper Right ( -49.9996650, -0.0016000) <br>
Lower Right ( -49.9996650, -10.0000000) <br>
Center ( -55.4623325, -5.0008000) <br>
Band 1 Block=5245x1 Type=Int32, ColorInterp=Undefined<br>
NoData Value=-9999<br>
<br>
Do you have others ideas?<br>
------<br>
<br>
Jacquie, thanks for your comments, i hope the next SPs versions fix these kind of bugs.<br>
<br>
regards,<br><br><div class="gmail_quote">2012/5/8 Alejandro Coca Castro <span dir="ltr"><<a href="mailto:acocac@gmail.com" target="_blank">acocac@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, i tried to convert the following enviroments settings to GRASS g.region and r.mask for the next ARCGIS output (ASCII file):<br><br> fileTIF = r"x:\test\fileTIF.tif"<br> MASK = r"x:\test\mask_file" <br>
env.extent = fileTIF<br> env.snapRaster = MASK<br> env.mask = MASK<br> fileGRD = r"x:\test\fileGRD"<br> outCon = Con(fileTIF, fileTIF, "", "VALUE >= 0")<br> outCon.save(fileGRD)<br>
fileASC = r"x:\test\fileASC.asc"<br> env.workspace = fileGRD<br> RasterToASCII_conversion(fileGRD,fileASC)<br><br>So, i put on the GRASS command-line:<br><br>r.mask input=mask_file@default <br>g.region rast=fileTIF@default res=0.00208333333 align=MASK@default <br>
r.mapcalc fileGRD = if(fileTIF@default < 0 , null(), fileTIF@default) <br>r.out.arc input= fileGRD@default output=x:\test\fileASC_grass.asc<br> <br>However, the ArcGIS and GRASS outputs had a different extend and curiously the GRASS output didn't snap their cells with the MASK. Also, when i observe the GRASS output cellsize, it only has the first 6 decimals (f.e. 0.002083)....<br>
<br>Finally i tried to setup the parameters of g.region with the ArcGIS output but GRASS output definetly didnt have the same properties of ArcGIS output (cellsize, columns and rows, extend)<br><br>If somebody knows how can i fix it, i'll be grateful,<br>
<br>Thanks in advance,<br><br>Alejandro<br>
</blockquote></div><br><br clear="all"><br>-- <br><b><i><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#404040">Alejandro Coca Castro</span></i></b><b><i><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:black"></span></i></b><b><i><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#00502e"></span></i></b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#404040"></span>
<b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black" lang="ES-CO"></span></i></b><i><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#404040"></span></i><br>