I just imported a DEM that was sent to to in Erdas IMG format (HFA),
with r.in.gdal, and after importing I had to use r.mapcalc to make the
NODATA cells -- which were tagged as -32768 -- became NULL.
I was just wondering if there is a way to do this automatically? can I
pass the -32768 value as an option to r.in.gdal so the cell will be
imported as null?
cheers
Carlos
--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Visiting Researcher at Kingston University London - UK
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke
Carlos "Guâno" Grohmann schrieb:
I just imported a DEM that was sent to to in Erdas IMG format (HFA),
with r.in.gdal, and after importing I had to use r.mapcalc to make the
NODATA cells -- which were tagged as -32768 -- became NULL.
I was just wondering if there is a way to do this automatically? can I
pass the -32768 value as an option to r.in.gdal so the cell will be
imported as null?
cheers
Carlos
you can use r.null to set the null flag.
Yes, but I was thinking how to do this _at once_ ,in the import process.
C
On 7/19/07, WolfgangZ <wollez@gmx.net> wrote:
Carlos "Guâno" Grohmann schrieb:
> I just imported a DEM that was sent to to in Erdas IMG format (HFA),
> with r.in.gdal, and after importing I had to use r.mapcalc to make the
> NODATA cells -- which were tagged as -32768 -- became NULL.
>
> I was just wondering if there is a way to do this automatically? can I
> pass the -32768 value as an option to r.in.gdal so the cell will be
> imported as null?
>
> cheers
>
> Carlos
>
you can use r.null to set the null flag.
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Visiting Researcher at Kingston University London - UK
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke