[GRASS-user] Filling Null values in a MODIS image
Markus Metz
markus.metz.giswork at googlemail.com
Wed Aug 4 04:38:56 EDT 2010
Hanlie Pretorius wrote:
> Hi,
>
> I have a MODIS land cover image that contains NULL values according to r.univar:
> -----
> r.univar map=modis_land_cover_type1_2001_primary at PERMANENT
> total null and non-null cells: 41884
> total null cells: 17145
> -----
>
> So, I tried to fill it with r.fillnulls
> -----
...
>
> Output of g.region -p:
> -----
> nsres: 0:00:15.210751
> ewres: 0:00:15.269511
> -----
>
> Output of r.info:
> -----
> r.info map=modis_land_cover_type1_2001_primary at PERMANENT
> Res: 0:00:00.36001
> Res: 0:00:00.36002
Adjust the resolution of the current region to the MODIS image, either
g.region rast=modis_land_cover_type1_2001_primary at PERMANENT
or
g.region align=modis_land_cover_type1_2001_primary at PERMANENT
if you want to work with custom bounds.
That should do the trick
Markus M
More information about the grass-user
mailing list