Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-28 Thread Vaclav Petras
On Wed, Sep 28, 2016 at 4:35 PM, Markus Metz wrote: > On Tue, Sep 27, 2016 at 5:55 PM, Vaclav Petras > wrote: > > > > On Mon, Sep 26, 2016 at 5:50 PM, Vaclav Petras > wrote: > >> > >> If the --help is just for scanning and the issue is that it simply too > >> long, hiding some parameters is not

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-28 Thread Sören Gebbert
Hi, [snip] > > > > As an example, when aiming at processing all Sentinel-2 tiles > > globally, we speak about currently 73000 scenes * up-to-16 tiles along > > with global data, analysis on top of other global data is more complex > > when doing each job in its own mapset and reintegrate it in a s

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-28 Thread Markus Metz
On Sun, Sep 25, 2016 at 9:49 PM, Markus Neteler wrote: > On Fri, Sep 23, 2016 at 11:30 PM, Markus Metz > wrote: >> On Fri, Sep 23, 2016 at 11:22 PM, Markus Neteler wrote: >>> On Fri, Sep 23, 2016 at 11:05 PM, Markus Metz >>> wrote: On Fri, Sep 23, 2016 at 1:11 PM, Markus Neteler wrote: >>

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-28 Thread Markus Metz
On Tue, Sep 27, 2016 at 5:55 PM, Vaclav Petras wrote: > > On Mon, Sep 26, 2016 at 5:50 PM, Vaclav Petras wrote: >> >> If the --help is just for scanning and the issue is that it simply too >> long, hiding some parameters is not the only option we have. For many (and >> more in the future hopefull

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Vaclav Petras
On Tue, Sep 27, 2016 at 5:38 PM, Sören Gebbert wrote: > However, the correct use of GRASS_REGION is still unclear to me. There is a function in grass.script [1] which can generate the right string. It calls g.region with -u, so you can modify the region with g.region, but without actually chang

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Vaclav Petras
On Tue, Sep 27, 2016 at 5:01 PM, Sören Gebbert wrote: > From my understanding, the GRASS_REGION environmental variable is > supported by G_get_window() [1]. However, most raster modules > uses Rast_window_rows() and Rast_window_cols() to get the current > computational region rows and cols. Henc

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Sören Gebbert
Hi, > On Sun, Sep 25, 2016 at 5:40 PM, Sören Gebbert < >> soerengebb...@googlemail.com> wrote: >> >>> >r.mapclac --raster-region= --north= --south= --west= --east= --res= >--ewres= --nsres= --vect-region --raster-align= ... >>> >> I like this in the sense that if the region setting for t

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Sören Gebbert
Hi, 2016-09-26 4:16 GMT+02:00 Vaclav Petras : > > On Sun, Sep 25, 2016 at 5:40 PM, Sören Gebbert < > soerengebb...@googlemail.com> wrote: > >> >r.mapclac --raster-region= --north= --south= --west= --east= --res= >>> >--ewres= --nsres= --vect-region --raster-align= ... >>> >> > I like this in the

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Vaclav Petras
On Mon, Sep 26, 2016 at 5:50 PM, Vaclav Petras wrote: > If the --help is just for scanning and the issue is that it simply too > long, hiding some parameters is not the only option we have. For many (and > more in the future hopefully) parameters we have (short) label and (longer) > description.

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Margherita Di Leo
On Tue, Sep 27, 2016 at 9:15 AM, Margherita Di Leo wrote: > Hi, > > On Tue, Sep 27, 2016 at 7:13 AM, Moritz Lennert < > mlenn...@club.worldonline.be> wrote: > >> On 26/09/16 23:50, Vaclav Petras wrote: >> >>> >>> On Mon, Sep 26, 2016 at 5:24 PM, Veronica Andreo >> > w

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Newcomb, Doug
+1 On Mon, Sep 26, 2016 at 6:11 PM, Vaclav Petras wrote: > > On Fri, Sep 23, 2016 at 5:22 PM, Markus Neteler wrote: > >> * various commands: "Use the low-memory version" - also more advanced > > > I guess this is a typical example where we need to be careful. I can > imagine a situation when a

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Rainer M Krug
Moritz Lennert writes: > On 26/09/16 23:50, Vaclav Petras wrote: >> >> On Mon, Sep 26, 2016 at 5:24 PM, Veronica Andreo > > wrote: >> >> I'm with MaDi in that if I see a very long list of flags and >> parameters in the terminal when using --h, i just go to the

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-27 Thread Margherita Di Leo
Hi, On Tue, Sep 27, 2016 at 7:13 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 26/09/16 23:50, Vaclav Petras wrote: > >> >> On Mon, Sep 26, 2016 at 5:24 PM, Veronica Andreo > > wrote: >> >> I'm with MaDi in that if I see a very long list of flags

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Moritz Lennert
On 26/09/16 23:50, Vaclav Petras wrote: On Mon, Sep 26, 2016 at 5:24 PM, Veronica Andreo mailto:veroand...@gmail.com>> wrote: I'm with MaDi in that if I see a very long list of flags and parameters in the terminal when using --h, i just go to the manual... I just use --h in CLI for

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Vaclav Petras
On Fri, Sep 23, 2016 at 5:22 PM, Markus Neteler wrote: > * various commands: "Use the low-memory version" - also more advanced I guess this is a typical example where we need to be careful. I can imagine a situation when a beginner has a lot of data and low-end hardware. By hiding an parameter

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Vaclav Petras
On Fri, Sep 23, 2016 at 5:22 PM, Markus Neteler wrote: > Maybe not hide then but at least group the parameters and flags rather > than alpha-order or random mix. > This is something which can be done right now. The options and flags are presented in the order as they are defined in the source co

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Vaclav Petras
On Mon, Sep 26, 2016 at 5:24 PM, Veronica Andreo wrote: > I'm with MaDi in that if I see a very long list of flags and parameters in > the terminal when using --h, i just go to the manual... I just use --h in > CLI for a quick recalling of flags/options... A reduced list of most > commonly used f

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Veronica Andreo
Hello I'm with MaDi in that if I see a very long list of flags and parameters in the terminal when using --h, i just go to the manual... I just use --h in CLI for a quick recalling of flags/options... A reduced list of most commonly used flags would be nice, but still keep the possibility to get t

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Margherita Di Leo
Hi, On Fri, Sep 23, 2016 at 12:00 AM, Markus Neteler wrote: > Hi, > > in order to not hinder the addition of important new flags/parameters > to modules while keeping things optionally easy it would be good to > implement some expert mode to the parser. > > The flags and parameters for advanced

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-26 Thread Blumentrath, Stefan
:28 To: Markus Neteler Cc: GRASS developers list ; Markus Metz Subject: Re: [GRASS-dev] Adding an expert mode to the parser On Sun, Sep 25, 2016 at 3:49 PM, Markus Neteler mailto:nete...@osgeo.org>> wrote: when doing each job in its own mapset and reintegrate it in a single target mapset

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-25 Thread Vaclav Petras
On Sun, Sep 25, 2016 at 3:49 PM, Markus Neteler wrote: > when doing each job in its own mapset and reintegrate it in a single > target mapset as if able to process then in parallel in one mapset by > simply specifying the respective region to the command of interest. > Yes, different from the cur

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-25 Thread Vaclav Petras
On Sun, Sep 25, 2016 at 5:40 PM, Sören Gebbert wrote: > >r.mapclac --raster-region= --north= --south= --west= --east= --res= >> >--ewres= --nsres= --vect-region --raster-align= ... >> > I like this in the sense that if the region setting for the module is something which should be managed by thes

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-25 Thread Sören Gebbert
[snip] > >r.mapclac --raster-region= --north= --south= --west= --east= --res= > >--ewres= --nsres= --vect-region --raster-align= ... > > Can't you do this at a higher level, i.e using the GRASS Python API's > use_temp_region ? > This is exactly what i'm doing right now[1,2], covering a single mod

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-25 Thread Sören Gebbert
Hi, Here an example of hidden region settings for modules utilized in the temporal framework: Imagine you have a Landsat location that contains many thousand scenes (time series) from all over the world including all bands. Each band of the time series is managed in a specific space-time dataset.

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-25 Thread Markus Neteler
On Fri, Sep 23, 2016 at 11:30 PM, Markus Metz wrote: > On Fri, Sep 23, 2016 at 11:22 PM, Markus Neteler wrote: >> On Fri, Sep 23, 2016 at 11:05 PM, Markus Metz >> wrote: >>> On Fri, Sep 23, 2016 at 1:11 PM, Markus Neteler wrote: >> ... >>> Your motivation is to provide a specialized CLI interfa

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Markus Metz
On Fri, Sep 23, 2016 at 11:22 PM, Markus Neteler wrote: > On Fri, Sep 23, 2016 at 11:05 PM, Markus Metz > wrote: >> On Fri, Sep 23, 2016 at 1:11 PM, Markus Neteler wrote: > ... >> Your motivation is to provide a specialized CLI interface for HPC >> processing? > > No, not the case. > >> We used

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Markus Neteler
On Fri, Sep 23, 2016 at 11:05 PM, Markus Metz wrote: > On Fri, Sep 23, 2016 at 1:11 PM, Markus Neteler wrote: ... > Your motivation is to provide a specialized CLI interface for HPC > processing? No, not the case. > We used GRASS with HPC processing for years and the > problems we faced were ca

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Markus Metz
On Fri, Sep 23, 2016 at 1:11 PM, Markus Neteler wrote: > On Fri, Sep 23, 2016 at 10:15 AM, Moritz Lennert > wrote: >> On 23/09/16 02:37, Anna Petrášová wrote: > ... >>> How do we decide which options are advanced. > > We simply keep 95% of all as-is. > But those we need for example for improved H

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Moritz Lennert
On 23/09/16 13:11, Markus Neteler wrote: On Fri, Sep 23, 2016 at 10:15 AM, Moritz Lennert mailto:mlenn...@club.worldonline.be>> wrote: On 23/09/16 02:37, Anna Petrášová wrote: ... Probably not so complicated, but I would be more concerned with the decisions coming with this. For example, what

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Markus Neteler
On Fri, Sep 23, 2016 at 10:15 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 23/09/16 02:37, Anna Petrášová wrote: ... >> Probably not so complicated, but I would be more concerned with the >> decisions coming with this. For example, what should the online manual >> show? Using the

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-23 Thread Moritz Lennert
On 23/09/16 02:37, Anna Petrášová wrote: On Thu, Sep 22, 2016 at 6:00 PM, Markus Neteler wrote: Hi, in order to not hinder the addition of important new flags/parameters to modules while keeping things optionally easy it would be good to implement some expert mode to the parser. The flags and

Re: [GRASS-dev] Adding an expert mode to the parser

2016-09-22 Thread Anna Petrášová
On Thu, Sep 22, 2016 at 6:00 PM, Markus Neteler wrote: > Hi, > > in order to not hinder the addition of important new flags/parameters > to modules while keeping things optionally easy it would be good to > implement some expert mode to the parser. > > The flags and parameters for advanced users s