[GRASS-user] Problem exporing rasters

Hamish hamish_b at yahoo.com
Wed Jun 17 05:26:47 EDT 2009


after importing try setting the computation bounds with e.g.
  g.region rast=studyarea


raster mapcalc and output work on the current region settings.


Hamish




--- On Wed, 6/17/09, Milton Cezar Ribeiro <miltinho.astronauta at gmail.com> wrote:

> From: Milton Cezar Ribeiro <miltinho.astronauta at gmail.com>
> Subject: Re: [GRASS-user] Problem exporing rasters
> To: "Richard Feldman" <richard.feldman at mail.mcgill.ca>
> Cc: "grass-user at lists.osgeo.org" <grass-user at lists.osgeo.org>
> Date: Wednesday, June 17, 2009, 1:27 AM
> Hi Richard,
>  
> Send the outputs of the command below to the
> list:
>  
> g.region -p
> r.info studyarea
> r.info elevation
> r.info newelevation
>  
> This will help the helpers :-)
>  
> Bests,
>  
> milton
> brazil=toronto
>  
> 2009/6/16 Richard Feldman <richard.feldman at mail.mcgill.ca>
> 
> Hi,
> 
> I have two rasters. One is an elevation dataset from
> Worldclim, imported into GRASS using r.in.bin. The other is
> a MODIS raster, which I had previously worked on in ArcGIS.
> Consequently, I imported this raster (.adf) into GRASS using
> r.in.gdal. Both rasters display and manipulate properly in
> GRASS. I used r.mapcalc to mask the raster
> 
> 
> newelevation=if(studyarea at mapset, elevation at mapset)
> 
> and wished to export this new raster as an ascii grid. When
> using either r.out.gdal or r.out.arc, the exported file is
> only 1KB and does not contain any data e.g. elevations).
> (Again, this new raster displays fine in GRASS). With
> r.out.gdal, I have tried both .grd and .tif formats as well
> as “byte,” “int16,” “uint16” and “int32”
> file types. Every time the export takes 0 sec and produces a
> 1-2KB file.
> 
> 
> I have tried exporting elevation.dem from the spearfish
> dataset and it exports fine. I'm using GRASS6-SVN on
> Windows Vista.
> 
> What am I doing wrong?
> 
> 
> Richard
> Feldman_______________________________________________
> 
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 
> 
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 


      



More information about the grass-user mailing list