[GRASSLIST:3041] Re: Can't use r.resample

Eric G. Miller egm2 at jps.net
Wed Jan 30 01:41:46 EST 2002


On Tue, 29 Jan 2002 22:34:29 -0500, Ben Logan <ben at wblogan.net> wrote:

> On Tue, Jan 29, 2002 at 06:26:53PM -0800, Eric G. Miller wrote:
> > On Tue, 29 Jan 2002 19:58:10 -0500, Ben Logan <ben at wblogan.net> wrote:
> > 
> > > I have a 24k DEM of my area which I have successfully imported as a
> > > GRASS raster map (using r.in.gdal).  I wanted to create a smaller
> > > raster map which covered only the southeast quarter of the original.
> > > So I ran g.region and set the north and west bounds to the mean of the
> > > north/south and east/west bounds respectively.
> > > 
> > > I then ran r.resample, and here's what I got:
> > > 
> > > GRASS:~/grass5.0 > r.resample input=elev at laurel_fork output=se at laurel_fork
> > > percent complete:  100%
> > > Creating support files for se at laurel_fork
> > > WARNING: unable to find
> > >          [/home/ben/grass5.0/grass_data/blueridge/laurel_fork/cell_misc/se/f_format]
> > > creating new cats file...
> > > 
> > > The newly created (or not, apparently) raster map is unusable.  Can
> > > anyone tell me what I'm doing wrong?
> > 
> > Is "laurel_fork" the current mapset?  If not, the bug is that it even tried
> > to do anything.
> 
> Sorry, I should have specified that before.  Yes, "laurel_fork" is the
> current mapset, and "blueridge" is the location.

Usually it's pointless to try to specify an output argument with a
mapset qualifier (most modules will/should just exit with an error).

Anyway, what version of GRASS do you have?  I fixed a bug about 1.5 months
ago that could lead to such a problem if the output name was a GRASS
fully qualified name (<name>@<mapset>).  I presume this doesn't happen if
you don't use a fully qualified output name?

-- 
Eric G. Miller <egm2 at jps.net>



More information about the grass-user mailing list