[GRASS-user] Imported .tif maps lose all data
    Rich Shepard 
    rshepard at appl-ecosys.com
       
    Sat Sep 25 09:41:40 PDT 2021
    
    
  
On Sat, 25 Sep 2021, Micha Silver wrote:
> Just to check: did you set the current region to the imported raster
> before running r.report?
Micha,
Just did set the region to dtm_35 and re-ran r.report:
+-----------------------------------------------------------------------------+
|                         RASTER MAP CATEGORY REPORT                          |
|LOCATION: new_nevins_dock                            Sat Sep 25 09:35:06 2021|
|-----------------------------------------------------------------------------|
|          north: 106729    east: 1544180                                     |
|REGION    south:  60934    west: 1511876                                     |
|          res:        3    res:        3                                     |
|-----------------------------------------------------------------------------|
|MASK: none                                                                   |
|-----------------------------------------------------------------------------|
|MAP: (untitled) (dtm_35 in topography)                                       |
|-----------------------------------------------------------------------------|
|                   Category Information                     |     cell|   %  |
|#|description                                               |    count| cover|
|-----------------------------------------------------------------------------|
|*|no data. . . . . . . . . . . . . . . . . . . . . . . . . .|164373520|100.00|
|-----------------------------------------------------------------------------|
|TOTAL                                                       |164373520|100.00|
+-----------------------------------------------------------------------------+
and r.stats:
r.stats -l in=dtm_35 out=stats.txt
* no data
The data's still AWOL.
> Also, in your example, you imported to a GRASS raster named dtm_4, but you 
> then run r.report on a raster named dtm_35
That's becaue I copied from the input script and forgot to change it to
dtm_35 which is what I used for the examples.
Thanks,
Rich
    
    
More information about the grass-user
mailing list