[GRASS-user] Imported .tif maps lose all data

Carlos Henrique Grohmann de Carvalho carlos.grohmann at gmail.com
Sat Sep 25 13:44:49 PDT 2021


Hi Micha

You're right. That's what happens when I try to answer quickly while
keeping an eye on a 5-year old. Thanks.

Carlos



On Sat, Sep 25, 2021 at 3:32 PM Micha Silver <tsvibar at gmail.com> wrote:

> Hi Carlos:
>
>
> On 9/25/21 9:16 PM, Carlos Henrique Grohmann de Carvalho wrote:
>
> Rich
>
> I believe r.in.gdal will require the region to match each of the tifs
> you're importing. Try using r.import with the option extent set to
>
> "input", so it won't do region cropping
>
>
> I don't think that is correct. r.in.gdal is one of the (very few) raster
> modules that does NOT honor the current region settings. You can import a
> raster from "anywhere", but then, as always, you must set the current
> region to match that raster for further analysis.
>
>
> What's more, in your previous post you mentioned that r.import "overrides
> region settings". IMHO this is also not correct. r.import will reproject
> an input dataset to current Location's coordinate system, if necessary.
> Regarding the region settings, by default with the extent parameter left at
> "input", the whole input raster will be imported. If you set the the extent
> parameter to "region" then only that subset of the input raster that falls
> in the current region will be imported. But in both cases, the current
> region is not altered.
>
>
> Best,
>
> Micha
>
>
>
> C
>
>
>
> On Sat, Sep 25, 2021 at 1:43 PM Rich Shepard <rshepard at appl-ecosys.com>
> wrote:
>
>> On Sat, 25 Sep 2021, Carlos Henrique Grohmann de Carvalho wrote:
>>
>> > How is your region settings? Do they match the DEMs? Maybe importing
>> with
>> > r.import will help, as it can override region settings
>>
>> Carlos,
>>
>> Initially it was the default region. But, I changed the region to a test
>> map, dtm_35, and re-ran r.report and r.stats. There's still no data in any
>> of the cells.
>>
>> Thanks,
>>
>> Rich
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Energy and Environment - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> http://orcid.org/0000-0001-5073-5572
> ________________
> Can’t stop the signal.
>
> _______________________________________________
> grass-user mailing listgrass-user at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/grass-user
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> cell: +972-523-665918
>
>

-- 
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
________________
Can’t stop the signal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210925/8ce2f33e/attachment.html>


More information about the grass-user mailing list