[GRASS-user] Problem exporing rasters

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@gmail.com> wrote:

From: Milton Cezar Ribeiro <miltinho.astronauta@gmail.com>
Subject: Re: [GRASS-user] Problem exporing rasters
To: "Richard Feldman" <richard.feldman@mail.mcgill.ca>
Cc: "grass-user@lists.osgeo.org" <grass-user@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 :slight_smile:

Bests,

milton
brazil=toronto

2009/6/16 Richard Feldman <richard.feldman@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@mapset, elevation@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----Inline Attachment Follows-----

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user