[GRASS-dev] Simplified G_percent() output in batch jobs?

Markus Neteler neteler at osgeo.org
Mon Dec 29 14:04:56 EST 2008


On Mon, Dec 29, 2008 at 4:41 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Sun, Dec 28, 2008 at 12:54 PM, Markus Neteler <neteler at osgeo.org> wrote:
>> On Thu, Nov 6, 2008 at 11:21 AM, Markus Neteler <neteler at osgeo.org> wrote:
>>>> Markus Neteler wrote:
>>>>
>>>>> >> I am running a large number of processing jobs on a
>>>>> >> cluster and the job manager output is cluttered with
>>>>> >> control chars from G_percent().
>>>>> >> It would be great to have a switch (or detection magic)
>>>>> >> to output the plain ASCII style 0..10...20.. in this cases.
>>
>> This was submitted and one obtains now:
>>
>> export GRASS_MESSAGE_FORMAT=plain
>> r.slope.aspect elevation as=myaspect
>> 2..5..8..11..14..17..20..23..26..29..32..35..38..41..44..47..50..53..56..59..62..65..68..71..74..77..80..83..86..89..92..95..98..100..
>> Aspect raster map <aspect> complete
>>
>> Missing is a likewise change for lib/vector/Vlib/build_nat.c - (rather
>> trivial) patch attached. Objections that I submit it?
>
> thinking about it I have conditionalized it upon G_INFO_FORMAT_PLAIN
> to keep behaviour as closest to the previous behaviour.
>
> New patch attached.

... and submitted. Now also the vector modules should report
percentages in batch mode as seen above.

Markus


More information about the grass-dev mailing list