[GRASS-user] Perform resample a raster using another image as a reference for the process?
Eddison Araya
eddisonjose at gmail.com
Wed Aug 3 19:40:35 PDT 2016
2016-08-03 15:17 GMT-06:00 Nikos Alexandris <nik en nikosalexandris.net>:
>
> Eddison wrote:
>>
>> >>> Hello thank you very much , you can put some screenshots of the
>>>> >>> process?
>>>>
>>>
>> Helmut Kudrnovsky:
>>
>> >> have a look at https://grass.osgeo.org/grass70/manuals/g.region.html
>>>> >> -a Align region to resolution raster=name[,name,...]
>>>>
>>>
>> See also
>>>> https://grasswiki.osgeo.org/wiki/Computational_region
>>>>
>>>
>> >> Set region to match raster map(s)
>>>> >> g.region -a raster=your_raster_you_want_align_to
>>>>
>>>
>> Nikos Alexandris:
>>
>> > Also useful (to read and use):
>>>> > https://grass.osgeo.org/grass70/manuals/r.resample.html
>>>>
>>>
>> Markus Neteler:
>>
>> For an overview, see also
>>>> https://grasswiki.osgeo.org/wiki/Interpolation
>>>>
>>>
>> PS: I have now added the second link to all relevant manual pages
>>>>
>>>
>> Eddison Araya:
>>
>> Hello thank you very much , then the command is as follows:
>>> g.region -a -p raster=lsat5_1987_10 align=urban ?
>>>
>>
>>
>> Eddison, the command is as Helmut proposed in one of his first posts
>> (see below).
>>
>> Essentialy, you want to set the extent of the region (within which
>> grass' raster modules will operate) to match a raster map's dimensions.
>>
>> That is,
>>
>> g.region raster=Your_Raster_Map
>>
>> And, even more, you want to force the alignment of the extent to this
>> map. This is done by addin the -a flag:
>>
>> g.region -a raster=Your_Raster_Map
>>
>> That's it, nothing more.
>>
>
> Eddison, seems I was to fast (and writing out of memory) and your above
> command is correct, I guess. The -a will align the region's extent, to,
> well, as the manual explains, the resolution.
>
> So, you'd need your `align=` part.
>
> Nikos
>
Hello, thank you very much to all of you for your answers, for their
willingness to cooperate , very friendly. regards Eddison
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160803/34075c7a/attachment-0001.html>
More information about the grass-user
mailing list