[GRASS-user] Unable to perform resampling

BHARATH RAM br11 at iitbbs.ac.in
Mon Nov 23 13:19:16 PST 2020


Hello everyone,

    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.

*Details about originally imported DEM model:*
*projection: 3 (Latitude-Longitude)*











*zone:       0datum:      wgs84ellipsoid:  wgs84north:      29Nsouth:
 28:06Nwest:       72Eeast:       77:24Ensres:      0:00:01.08ewres:
 0:00:01.08rows:       3000cols:       18000cells:      54000000*

*MY AIM:* To convert a fine grid DEM (30 m resolution) to coarse grid DEM
(8km)

*APPROACH 1: Using r.resample.rst*

*g.region raster=test5_r1*

*r.resamp.rst input=test5_r1 ew_res=8000 ns_res=8000   *
  In this second command's execution, I get error (log attached below):
*                Processing all selected output files will require **4
bytes of disk space for temp files.*



*                Temporarily changing the region to desired resolution ...
              Changing back to the original region ...
Percent complete:                ERROR: Unable to seek: Invalid argument*

*APPROACH 2: Using r.resample.stats*
*g.region raster=test5_r1*
*g.region nsres=8000 ewres=8000 *// problematic part
*r.resamp.stats -w input=test5_r1 output=test5_r1_8km*
   In this second command's execution the entire map seems to get clubbed
into a single large pixel. I have attached results of *g.region -ap* below:
*                projection: 3 (Latitude-Longitude)*











*                 zone:       0                 datum:      wgs84
      ellipsoid:  wgs84                 north:      29N
south:      28:06N                 west:       72E                 east:
    77:24E                 nsres:      0:54                 ewres:
 5:24                 rows:       1                 cols:       1
      cells:      1*


Also, can you tell me which method will be more suitable for my final goal?

Thanks & Regards,
Bharath

-- 
*Disclaimer: *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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20201124/8771a9c5/attachment.html>


More information about the grass-user mailing list