<div dir="ltr"><div>Hello Bharath, <br></div><div><br></div><div>I think your problem is that you are working in a latlong location and trying to set a resolution of 8000 degrees, which is not possible. If your desired final resolution is ~8 km, you will need to set the region resolution to its equivalent in degrees (the unit of latlong CRS). Otherwise, work with projected CRS like UTM for example (recommended).</div><div><br></div><div>Furthermore, if you want to go from high res to lower res (upscaling), r.resamp.stats is your friend, so the second approach would be fine. The problem lays in the resolution you are setting.</div><div><br></div><div>HTH, <br></div><div>Vero<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun, 23 nov 2020 a las 22:20, BHARATH RAM (<<a href="mailto:br11@iitbbs.ac.in">br11@iitbbs.ac.in</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>    I am interested in performing resampling of a fine resolution DEM Model (which is imported as a GTiff file in grass GIS). I tried the following 2 approaches and neither of them was successful. Can you help me figure out where I went wrong? Thanks in Advance. </div><div><br></div><div><u>Details about originally imported DEM model:</u></div><div><i>projection: 3 (Latitude-Longitude)</i></div><i>zone:       0<br>datum:      wgs84<br>ellipsoid:  wgs84<br>north:      29N<br>south:      28:06N<br>west:       72E<br>east:       77:24E<br>nsres:      0:00:01.08<br>ewres:      0:00:01.08<br>rows:       3000<br>cols:       18000<br>cells:      54000000</i><div><u><br></u></div><div><u>MY AIM:</u> To convert a fine grid DEM (30 m resolution) to coarse grid DEM (8km)</div><div><br></div><div><u>APPROACH 1: Using <b>r.resample.rst</b></u></div><div><br></div><div><b>g.region raster=test5_r1</b></div><div><b>r.resamp.rst input=test5_r1 ew_res=8000 ns_res=8000   <u><br></u></b></div><div>  In this second command's execution, I get error (log attached below):</div><div><i>                Processing all selected output files will require </i><i>4 bytes of disk space for temp files.</i></div><i>                Temporarily changing the region to desired resolution ...<br>                Changing back to the original region ...<br>                Percent complete:<br>                ERROR: Unable to seek: Invalid argument</i><div>  </div><div><u>APPROACH 2: Using <b>r.resample.stats</b></u>        </div><div><b>g.region raster=test5_r1</b></div><div><b>g.region nsres=8000 ewres=8000 </b>// problematic part</div><div><b>r.resamp.stats -w input=test5_r1 output=test5_r1_8km</b></div><div><b>   </b>In this second command's execution the entire map seems to get clubbed into a single large pixel. I have attached results of <b>g.region -ap</b> below:</div><div><i>                projection: 3 (Latitude-Longitude)</i></div><i>

               

zone:       0<br>

               

datum:      wgs84<br>

               

ellipsoid:  wgs84<br>

               

north:      29N<br>

               

south:      28:06N<br>

               

west:       72E<br>

               

east:       77:24E<br>

               

nsres:      0:54<br>

               

ewres:      5:24<br>

               

rows:       1<br>

               

cols:       1<br>

               

cells:      1</i><div>                   <br></div><div><br></div><div>Also, can you tell me which method will be more suitable for my final goal?</div><div><br></div><div>Thanks & Regards,</div><div>Bharath</div><div><br></div><div><br></div><div><u><br></u></div></div>

<br>
<hr><font size="1" face="Verdana"><b>Disclaimer: </b>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.</font>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div>