[GRASS-user] d.polar strange behavior when using MASK
Markus Neteler
neteler at itc.it
Wed Oct 3 09:38:50 EDT 2007
On Wed, Oct 03, 2007 at 03:11:30PM +0200, Glynn Clements wrote:
>
> Stefano Costa wrote:
>
> > I was trying to use d.polar on an aspect map.
> >
> > I've been able to produce EPS output w/o any problem, except when using a
> > raster MASK. My mask leaves out many (about 95%) of the cells in the
> > whole region. Without MASK it took 2 minutes for d.polar to complete.
> >
> > If I run d.polar on the same map w/ this MASK, I get no results, even
> > though I've been waiting (patiently :-) for more than 1 hour.
> >
> > Any suggestion about this problem? I saw d.polar is a shell script, thus
> > possibly slow, but I'm confused because on a larger number of cells it
> > works well.
>
> Try using "sh -x", e.g.
>
> sh -x `which d.polar` map=...
>
> That should provide some clues as to where it's hanging.
Due to g.parser, you have to actually edit the d.polar script
and add -x to the first line (in GRASS: edit $GISBASE/scripts/d.polar).
change:
#!/bin/sh
to:
#!/bin/sh -x
Then run the command.
Markus
------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------
More information about the grass-user
mailing list