<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 face="Verdana" size="1"><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>