[GRASS-dev] Re: [GRASS-GUI] how i can change the watershed analysis technique?

you run from grass shell
r.watershed --interface-description 2> gui.xml
open gui.xml in an text editor. parse the xml using some xml parsers i use pugixml and then create your own gui.
you can also make a standalone application if you link your application with libgrass* libraries

please see below your required xml output genreated by r.watershed

<?xml version="1.0" encoding="UTF-8"?> Watershed basin analysis program. raster Input map: elevation on which entire analysis is based name Input_options Input map: locations of real depressions name Input_options Input map: amount of overland flow per cell name Input_options Input map or value: percent of disturbed land, for USLE Input_options Input map: terrain blocking overland surface flow, for USLE name Input_options Output map: number of cells that drain through each cell name Output_options Output map: drainage direction name Output_options Output map: unique label for each watershed basin name Output_options Output map: stream segments name Output_options Output map: each half-basin is given a unique value name Output_options Output map: useful for visual display of results name Output_options Output map: slope length and steepness (LS) factor for USLE name Output_options Output map: slope steepness (S) factor for USLE name Output_options Input value: minimum size of exterior watershed basin Input_options Input value: maximum length of surface flow, for USLE Input_options Convergence factor for MFD (1-10) 1 = most diverging flow, 10 = most converging flow. Recommended: 5 5 Maximum memory to be used with -m flag (in MB) 300 Enable MFD flow (default is SFD (D8)) SFD: single flow direction, MFD: multiple flow direction Allow only horizontal and vertical flow of water Enable disk swap memory option: Operation is slow Only needed if memory requirements exceed available RAM; see manual on how to calculate memory requirements Use positive flow accumulation even for likely underestimates See manual for a detailed description of flow accumulation output Allow output files to overwrite existing files Verbose module output Quiet module output

On Mon, Nov 14, 2011 at 7:02 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

I want
1> to keep input option on required screen.
2> to keep only minimum size of exterior basis of input option.
3> to keep first and third parameter of output option.
All are in first screen( with required screen) .

please suggest me.

thanks and regards.

Sandip.

On Mon, Nov 14, 2011 at 5:30 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

what are changes you are planing. pleasse be more secific
and dont be shy to ask on grass-dev

On Mon, Nov 14, 2011 at 5:27 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd

I am planning to change in GUI for watershed basin analysis.

Actually the GUI asking to many datas. I want to fixed the parameter to make easy to handle.

please help me.

thanking for your suggetion and waiting for more suggetion.

sandip

On Mon, Nov 14, 2011 at 4:36 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

move to grass-dev ML.
gui is not very active now a days. and be specific when asking questions
r.watershed is the module you are looking for…

folder is raster/r.watershed . Its not gui in python its C code you need to familiar with and in my opinion should swich to UNIX-like PC for these work and its my own opnion.

please dont start operating system wars!!!

gui is gnerated from an xml format .Each grass module have interface-description and based on that gui parsers will generate the form structure. What changes are you planning to make.?

On Fri, Nov 11, 2011 at 5:06 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear sir,

I want to modify the existing code of watershed analysis.

Please tell me in which file or folder i should go for changing the code?

I have to change some or modify the form structure.

Please help me.

regards.

Sandip.


grass-gui mailing list
grass-gui@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-gui

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

IMHO for development it is better to have a Linux or Unix environment. so that you can compile from source modify code again recompile and follow the chain. In windows you have msys shell but you need to do a lot to setup an environment.

so switch to *NIX and come back. please dont start os or distro wars. dont ask the list to recommend an OS or linux distro. please…

On Tue, Nov 15, 2011 at 12:23 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

Thanks for your reply.

But i am using grass 6.5 -wxpython in windows. I cant able to run r.watershed.

Please tell me “how can i get grass shell?”

please help me.

Sandip

On Mon, Nov 14, 2011 at 7:17 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

you run from grass shell
r.watershed --interface-description 2> gui.xml
open gui.xml in an text editor. parse the xml using some xml parsers i use pugixml and then create your own gui.
you can also make a standalone application if you link your application with libgrass* libraries

please see below your required xml output genreated by r.watershed

<?xml version="1.0" encoding="UTF-8"?> Watershed basin analysis program. raster Input map: elevation on which entire analysis is based name Input_options Input map: locations of real depressions name Input_options Input map: amount of overland flow per cell name Input_options Input map or value: percent of disturbed land, for USLE Input_options Input map: terrain blocking overland surface flow, for USLE name Input_options Output map: number of cells that drain through each cell name Output_options Output map: drainage direction name Output_options Output map: unique label for each watershed basin name Output_options Output map: stream segments name Output_options Output map: each half-basin is given a unique value name Output_options Output map: useful for visual display of results name Output_options Output map: slope length and steepness (LS) factor for USLE name Output_options Output map: slope steepness (S) factor for USLE name Output_options Input value: minimum size of exterior watershed basin Input_options Input value: maximum length of surface flow, for USLE Input_options Convergence factor for MFD (1-10) 1 = most diverging flow, 10 = most converging flow. Recommended: 5 5 Maximum memory to be used with -m flag (in MB) 300 Enable MFD flow (default is SFD (D8)) SFD: single flow direction, MFD: multiple flow direction Allow only horizontal and vertical flow of water Enable disk swap memory option: Operation is slow Only needed if memory requirements exceed available RAM; see manual on how to calculate memory requirements Use positive flow accumulation even for likely underestimates See manual for a detailed description of flow accumulation output Allow output files to overwrite existing files Verbose module output Quiet module output

On Mon, Nov 14, 2011 at 7:02 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

I want
1> to keep input option on required screen.
2> to keep only minimum size of exterior basis of input option.
3> to keep first and third parameter of output option.
All are in first screen( with required screen) .

please suggest me.

thanks and regards.

Sandip.

On Mon, Nov 14, 2011 at 5:30 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

what are changes you are planing. pleasse be more secific
and dont be shy to ask on grass-dev

On Mon, Nov 14, 2011 at 5:27 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd

I am planning to change in GUI for watershed basin analysis.

Actually the GUI asking to many datas. I want to fixed the parameter to make easy to handle.

please help me.

thanking for your suggetion and waiting for more suggetion.

sandip

On Mon, Nov 14, 2011 at 4:36 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

move to grass-dev ML.
gui is not very active now a days. and be specific when asking questions
r.watershed is the module you are looking for…

folder is raster/r.watershed . Its not gui in python its C code you need to familiar with and in my opinion should swich to UNIX-like PC for these work and its my own opnion.

please dont start operating system wars!!!

gui is gnerated from an xml format .Each grass module have interface-description and based on that gui parsers will generate the form structure. What changes are you planning to make.?

On Fri, Nov 11, 2011 at 5:06 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear sir,

I want to modify the existing code of watershed analysis.

Please tell me in which file or folder i should go for changing the code?

I have to change some or modify the form structure.

Please help me.

regards.

Sandip.


grass-gui mailing list
grass-gui@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-gui

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

I havent done any any grass development in windows. So I dont know how to setup windows build
youy have osgeo4w to build grass on windows see compiling on windows
http://trac.osgeo.org/grass/wiki/CompileOnWindows

If you are going with window I cant help you :frowning:

On Wed, Nov 16, 2011 at 10:57 AM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

I am not starting any os war.

Anyway i have to delivary the product in windows.

Try to understand my case.

Please tell me how can i compile source using msys.

I used this following command in grass65 -text.

“r.watershed --interface-description> gui.xml”

gui.xml is created but no data with zero bytes.

please help.

thanking you

Sandip

On Tue, Nov 15, 2011 at 9:46 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

IMHO for development it is better to have a Linux or Unix environment. so that you can compile from source modify code again recompile and follow the chain. In windows you have msys shell but you need to do a lot to setup an environment.

so switch to *NIX and come back. please dont start os or distro wars. dont ask the list to recommend an OS or linux distro. please…

On Tue, Nov 15, 2011 at 12:23 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

Thanks for your reply.

But i am using grass 6.5 -wxpython in windows. I cant able to run r.watershed.

Please tell me “how can i get grass shell?”

please help me.

Sandip

On Mon, Nov 14, 2011 at 7:17 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

you run from grass shell
r.watershed --interface-description 2> gui.xml
open gui.xml in an text editor. parse the xml using some xml parsers i use pugixml and then create your own gui.
you can also make a standalone application if you link your application with libgrass* libraries

please see below your required xml output genreated by r.watershed

<?xml version="1.0" encoding="UTF-8"?> Watershed basin analysis program. raster Input map: elevation on which entire analysis is based name Input_options Input map: locations of real depressions name Input_options Input map: amount of overland flow per cell name Input_options Input map or value: percent of disturbed land, for USLE Input_options Input map: terrain blocking overland surface flow, for USLE name Input_options Output map: number of cells that drain through each cell name Output_options Output map: drainage direction name Output_options Output map: unique label for each watershed basin name Output_options Output map: stream segments name Output_options Output map: each half-basin is given a unique value name Output_options Output map: useful for visual display of results name Output_options Output map: slope length and steepness (LS) factor for USLE name Output_options Output map: slope steepness (S) factor for USLE name Output_options Input value: minimum size of exterior watershed basin Input_options Input value: maximum length of surface flow, for USLE Input_options Convergence factor for MFD (1-10) 1 = most diverging flow, 10 = most converging flow. Recommended: 5 5 Maximum memory to be used with -m flag (in MB) 300 Enable MFD flow (default is SFD (D8)) SFD: single flow direction, MFD: multiple flow direction Allow only horizontal and vertical flow of water Enable disk swap memory option: Operation is slow Only needed if memory requirements exceed available RAM; see manual on how to calculate memory requirements Use positive flow accumulation even for likely underestimates See manual for a detailed description of flow accumulation output Allow output files to overwrite existing files Verbose module output Quiet module output

On Mon, Nov 14, 2011 at 7:02 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd,

I want
1> to keep input option on required screen.
2> to keep only minimum size of exterior basis of input option.
3> to keep first and third parameter of output option.
All are in first screen( with required screen) .

please suggest me.

thanks and regards.

Sandip.

On Mon, Nov 14, 2011 at 5:30 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

what are changes you are planing. pleasse be more secific
and dont be shy to ask on grass-dev

On Mon, Nov 14, 2011 at 5:27 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd

I am planning to change in GUI for watershed basin analysis.

Actually the GUI asking to many datas. I want to fixed the parameter to make easy to handle.

please help me.

thanking for your suggetion and waiting for more suggetion.

sandip

On Mon, Nov 14, 2011 at 4:36 PM, Mohammed Rashad <mohammedrashadkm@gmail.com> wrote:

move to grass-dev ML.
gui is not very active now a days. and be specific when asking questions
r.watershed is the module you are looking for…

folder is raster/r.watershed . Its not gui in python its C code you need to familiar with and in my opinion should swich to UNIX-like PC for these work and its my own opnion.

please dont start operating system wars!!!

gui is gnerated from an xml format .Each grass module have interface-description and based on that gui parsers will generate the form structure. What changes are you planning to make.?

On Fri, Nov 11, 2011 at 5:06 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear sir,

I want to modify the existing code of watershed analysis.

Please tell me in which file or folder i should go for changing the code?

I have to change some or modify the form structure.

Please help me.

regards.

Sandip.


grass-gui mailing list
grass-gui@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-gui

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India

Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India