[GRASS5] [bug #844] (grass) cheated by r.contour

Helena hmitaso at unity.ncsu.edu
Fri Nov 16 13:35:05 EST 2001


Glynn Clements wrote:

> Request Tracker wrote:
>
> > $ r.contour
> >
> > OPTION:   Name of an existing raster map
> >      key: input
> > required: YES
> >
> > Enter the name of an existing raster file
> > Enter 'list' for a list of existing raster files
> > Hit RETURN to cancel request
> > > topo
> > <topo>
> >
> > OPTION:   List of contour levels
> >      key: levels
> > required: NO
> > multiple: YES
> > enter option >
> >
> > OPTION:   Minimum contour level
> >      key: minlevel
> > required: NO <<<<<<<<<<<<<<<<<<<<<<see, it says NO
> > enter option >
>
> Yes; but this isn't what it's complaining about.
>
> > OPTION:   Maximum contour level
> >      key: maxlevel
> > required: NO
> > enter option >
> >
> > OPTION:   Increment between contour levels
> >      key: step
> > required: NO
> > enter option >
> >
> > OPTION:   Minimum number of points for a contour line (0 -> no limit)
> >      key: cut
> >  default: 0
> > required: NO
> > enter option >
> >
> > OPTION:   Name of output vector file
> >      key: output
> > required: YES
> > enter option > contour
> >
> > You have chosen:
> >   output=contour
> > Is this correct? (y/n) [y] y
> >
> > FLAG: Set the following flag?
> >     Suppress progress report & min/max information?(y/n) [n]
> >
> > FLAG: Set the following flag?
> >     Suppress single crossing error messages?(y/n) [n]
> > Reading data.
> > Percent complete:  100%
> > FPRange of data:    min =  40.000000 max = 278.000000
> > ERROR: Minimum parameters not set. <<<<<<<<<<<<<<<<<but it said it wasn't required
> > Either a step or a list of levels must be specified
>
> It isn't saying that the "minimum" parameter is required. It's saying
> that you haven't provided enough parameters. Saying "Insufficent
> parameters" may have been clearer.
>
> How about:
>
>         ERROR: neither "levels" nor "step" parameter specified.

Glynn, you could change the error message although that may still not satisfy
some users - in GRASS there are probably more programs with parameters like this
and it was assumed that user reads the manual (or at least thinks), so this isn't
really
a bug. The clean solution would be that if no parameters are given, but the name of
output
file is given the program gives warning that sufficient parameters were not set
and runs some default output, in this case
it can draw ten contours between minimum and max values.

But this really is not of great priority, unless it is an easy thing to do. It is not
too difficult
for any thinking person to figure out that he needs to give some info on which contours
to draw.

Helena

>
>
> ?
>
> --
> Glynn Clements <glynn.clements at virgin.net>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list