Re: [GRASS-user] How to remove small closed lines

2013-11-06 Thread Rabotin Michael
Title: Signature electronique

  
  
Hi, maybe you can identify your closed
  lines with v.to.db command and the coordinate of the start point
  and the end point
  
  v.to.db map=mylines option=end type=line col=coordEnd
v.to.db map=mylines option=start type=line col=coordStart

  
  and tests if the coordinates of the startNode and the EndNode are
  equals, the line is closed and you can tag your lines .
  And use after the v.extract command to extract only the lines
  which are not closed.
  
  Hope it can be helpful
  
  Michael
  
  
  Le 06/11/2013 16:25, grass-user-requ...@lists.osgeo.org a crit:


  Date: Wed, 6 Nov 2013 12:59:29 +
From: BLANDENIER Lucien lucien.blanden...@unine.ch
To: "grass-user@lists.osgeo.org" grass-user@lists.osgeo.org
Subject: [GRASS-user] How to remove small closed lines
Message-ID:
	84f1ddbd03d55944aa4e63a2fe5eade5530ab...@mail-mbx-05.unine.ch
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I would like to know how to remove automatically small circles (closed lines, not area). I've tried with v.clean and v.generalize but I just get to remove line which are not closed.


Regards


Lucien



-- 
  
  
  
  

  

  
  

  
  

  

  
  
Michael
      Rabotin
  
  
Ingnieur
  d'Etude SIG / GIS Engineer
  
  
michael.rabo...@supagro.inra.fr
  
  
UMR
  LISAH - Centre de Montpellier
  
  
Tl.
: +33 (0)4 99 61 23 85
  
  
Mobile
: +33 (0)6 76 45 46 83
  
  
Fax : +33 (0)4 67 63 26 14
  

  

  
  

  
  

  
Bat 24 - 2 place Pierre
Viala
  
  
34060 Montpellier cedex 2
  
  
France
  
  
www.inra.fr
www.openfluid-project.org
  

  

  

  

  

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

Re: [GRASS-user] How to remove small closed lines

2013-11-06 Thread Rabotin Michael
Title: Signature electronique

  
  
So when you have identified in your
  lines map which lines are closed or not (with the coordinates
  equality), you can compute the length of all the lines and remove
  the closed ones which are under the threshold you want with
  v.extract. You can have two columns in your line map, one which
  identify if the line is closed or not and one whith the length.
  And you can used the v.extract command with where="coltag="closed"
  AND collengthxxx"
  
  Mick
  
  
  Le 06/11/2013 17:23, BLANDENIER Lucien a crit:


  In fact I need to remove some of the closed line according to their length.

Normally v.clean is able to remove small line with a threshold but it is not working for closed lines... I was wondering if there is an easy way to do this. Or maybe is there a possibility to cut the "closed" lines

regards


____
De : Rabotin Michael [rabo...@supagro.inra.fr]
Envoy : mercredi 6 novembre 2013 16:54
 : grass-user@lists.osgeo.org
Cc : BLANDENIER Lucien
Objet : Re: [GRASS-user] How to remove small closed lines

Hi, maybe you can identify your closed lines  with v.to.db command and the coordinate of the start point and the end point

v.to.db map=mylines option=end type=line col=coordEnd
v.to.db map=mylines option=start type=line col=coordStart


and tests if the coordinates of the startNode and the EndNode are equals, the line is closed and you can tag your lines .
And use after the v.extract command to extract only the lines which are not closed.

Hope it can be helpful

Michael


Le 06/11/2013 16:25, grass-user-requ...@lists.osgeo.orgmailto:grass-user-requ...@lists.osgeo.org a crit :

Date: Wed, 6 Nov 2013 12:59:29 +
From: BLANDENIER Lucien lucien.blanden...@unine.chmailto:lucien.blanden...@unine.ch
To: "grass-user@lists.osgeo.org"mailto:grass-user@lists.osgeo.org grass-user@lists.osgeo.orgmailto:grass-user@lists.osgeo.org
Subject: [GRASS-user] How to remove small closed lines
Message-ID:
84f1ddbd03d55944aa4e63a2fe5eade5530ab...@mail-mbx-05.unine.chmailto:84f1ddbd03d55944aa4e63a2fe5eade5530ab...@mail-mbx-05.unine.ch
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I would like to know how to remove automatically small circles (closed lines, not area). I've tried with v.clean and v.generalize but I just get to remove line which are not closed.


Regards


Lucien


--
[INRA]http://www.inra.fr

Michael Rabotin
Ingnieur d'Etude SIG / GIS Engineer
michael.rabo...@supagro.inra.frmailto:#
UMR LISAH - Centre de Montpellier
Tl. : +33 (0)4 99 61 23 85
Mobile : +33 (0)6 76 45 46 83
Fax : +33 (0)4 67 63 26 14

Bat 24 - 2 place Pierre Viala
34060 Montpellier cedex 2
France
www.inra.frhttp://www.inra.fr www.openfluid-project.orghttp://www.openfluid-project.org






-- 
  
  
  
  

  

  
  

  
  

  

  
  
    Michael
  Rabotin
  
  
Ingnieur
  d'Etude SIG / GIS Engineer
  
  
michael.rabo...@supagro.inra.fr
  
  
UMR
  LISAH - Centre de Montpellier
  
  
Tl.
: +33 (0)4 99 61 23 85
  
  
Mobile
: +33 (0)6 76 45 46 83
  
  
Fax : +33 (0)4 67 63 26 14
  

  

  
  

  
  

  
Bat 24 - 2 place Pierre
Viala
  
  
34060 Montpellier cedex 2
  
  
France
  
  
www.inra.fr
www.openfluid-project.org
  

  

  

  

  

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

Re: [GRASS-user] grass-user Digest, Vol 90, Issue 35

2013-10-21 Thread Rabotin Michael
Title: Signature electronique

  
  
Le 21/10/2013 16:48,
  grass-user-requ...@lists.osgeo.org a crit:


  Send grass-user mailing list submissions to
	grass-user@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/grass-user
or, via email, send a message with subject or body 'help' to
	grass-user-requ...@lists.osgeo.org

You can reach the person managing the list at
	grass-user-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-user digest..."


Today's Topics:

   1. How to delete small closed lines, problems with v.edit and
  v.generalize (BLANDENIER Lucien)


--

Message: 1
Date: Mon, 21 Oct 2013 14:48:21 +
From: BLANDENIER Lucien lucien.blanden...@unine.ch
To: "grass-user@lists.osgeo.org" grass-user@lists.osgeo.org
Subject: [GRASS-user] How to delete small closed lines, problems with
	v.edit and v.generalize
Message-ID:
	84f1ddbd03d55944aa4e63a2fe5eade5530a7...@mail-mbx-05.unine.ch
Content-Type: text/plain; charset="iso-8859-1"

Hello,

I'm trying to simplify a contour map I've done with r.contour. I want to remove small area but when I use the command v.edit map=map tool=delete thresh=1000 query=length, only "non-closed map" are considered and the "closed line" (there are really lines, not polygons) remain.

Hello,
did you try to transform your line vector into a polygon vector and
use after a v.clean command with tool=rmarea ? So only the small
area will be removed and after you can again transform your polygon
vector into a lin vector 

Mick


  

I've the same problem with the command v.generalize.

Does someone knows how to consider all the lines ?

Attached is my shp.


Regards


Lucien


-- next part --
A non-text attachment was scrubbed...
Name: Head_Interp_Rast_contour.dbf
Type: application/octet-stream
Size: 10527 bytes
Desc: Head_Interp_Rast_contour.dbf
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20131021/1427281b/attachment.obj
-- next part --
A non-text attachment was scrubbed...
Name: Head_Interp_Rast_contour.prj
Type: application/octet-stream
Size: 389 bytes
Desc: Head_Interp_Rast_contour.prj
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20131021/1427281b/attachment-0001.obj
-- next part --
A non-text attachment was scrubbed...
Name: Head_Interp_Rast_contour.shp
Type: application/x-qgis
Size: 131476 bytes
Desc: Head_Interp_Rast_contour.shp
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20131021/1427281b/attachment.shp
-- next part --
A non-text attachment was scrubbed...
Name: Head_Interp_Rast_contour.shx
Type: application/x-qgis
Size: 2484 bytes
Desc: Head_Interp_Rast_contour.shx
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20131021/1427281b/attachment.shx

--

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

End of grass-user Digest, Vol 90, Issue 35
**




-- 
  
  
  
  

  

  
  

  
  

  

  
  
    Michael
  Rabotin
  
  
Ingnieur
  d'Etude SIG / GIS Engineer
  
  
michael.rabo...@supagro.inra.fr
  
  
UMR
  LISAH - Centre de Montpellier
  
  
Tl.
: +33 (0)4 99 61 23 85
  
  
Mobile
: +33 (0)6 76 45 46 83
  
  
Fax : +33 (0)4 67 63 26 14
  

  

  
  

  
  

  
Bat 24 - 2 place Pierre
Viala
  
  
34060 Montpellier cedex 2
  
  
France
  
  
www.inra.fr
www.openfluid-project.org
  

  

  

  

  

___
grass-user mailing list
grass-u

[GRASS-user] Re: Removing small areas using v.clean

2011-09-23 Thread rabotin

Dear M Roudier,
maybe one of my development can help you. I developp a set of script  
for hydrologic modelling for my lab. One of the script (called  
m.dispolyg) dissolve small area with no removing effect like v.clean  
but it was developed in shell script and can be very long if you have  
lots of feature.

You can have informations here:

P. Lagacherie, M. Rabotin, F. Colin, R. Moussa, M. Voltz, Geo-MHYDAS:  
A landscape discretization tool for distributed hydrological modeling  
of cultivated areas, Computers amp; Geosciences, Volume 36, Issue 8,  
August 2010, Pages 1021-1032, ISSN 0098-3004,  
10.1016/j.cageo.2009.12.005.

(http://www.sciencedirect.com/science/article/pii/S0098300410001068)
Keywords: Landscape; Hydrology; Discretization; Topology; GIS;  
Cultivated catchment



And the software can be downloaded here
http://www.umr-lisah.fr/openfluid/index.php?page=dloadsmhylang=fr

Cheers

Michael Rabotin


This message was sent using IMP, the Internet Messaging Program.

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


[GRASS-user] using r.in.gdal to import dted raster in a grass location

2011-02-22 Thread rabotin

Dear all,
I download a free dted file from http://data.geocomm.com for a Kenyan study
I need to import this data in grass and i try to use the r.in.gdal 
command but I fail because I don't know how to implement the command

I try something like this :
r.in.gdal input=/home/rabotin/.../DTED_E30S0  output=test location=test
but i had the following error
ERROR 4: `/home/rabotin/.../DTED_E30S0' not recognised as a supported 
file format.

In DTED_E30S0  folder, I have the following subfolders and files :
 - dted
- e030
- n00.avg
- n00.dto
- n00.max
- n00.min
- 
- ...
- e039
 - text
- onc.dir
- dmed

Is anyone can explain to me what is the correct syntax for importing 
dted format with r.in.gdal command ?


Thanks a lot

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique / GIS Engineer

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème

UMR LISAH Montpellier SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1
FRANCE

Laboratory Interactions between Soils, Agrosystems and Hydrosystems (LISAH)
Multi-Institute Research Unit (UMR)
French National Institute for Agricultural Research (INRA)
French Institute for Research and Overseas Development (IRD)
International Center for Higher Education in Agricultural Sciences (Montpellier 
SupAgro)

Téléphone / Phone number :  33 (0)4 99 61 23 85
Secrétariat / Secretariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr
Site web / website: http://www.umr-lisah.fr/
Site web OpenFLUID / OpenFLUID website: http://www.umr-lisah.fr/openfluid/
*






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


[GRASS-user] Developing GRASS scritps in C language

2010-07-07 Thread rabotin

Dear all,
since several years I developed my own scripts in shell languages 
(linux) for GRASS 6.4. Now, I want to develop my future scripts in C 
language (because it's more convenient than shell language), but the 
beginning is quite difficult.
I begin by developing several litlle scripts in C which are able to 
print on screen the number of features of a vector, list the category or 
calculate area of polygons, etc ...
But making more complex scripts is still not so easy for me : as I'm a 
beginner on C language too but also because finding development 
documentation for beginner in C language is not easy (I read the pages 
in the WIKI GRASS and in the GRASS programmer manual).
So I'm searching people who are agree to exchange with a newbie in C to 
help me :  by email, phone or even I can travel for a one day meeting or 
formation !! I'm located in France so I search in priority european (or 
French !!) people. As I work for a public research organisation, I can 
plan some exchange with other research organizations quite easily .


Thanks for any response

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique / GIS Engineer

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème

UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


LISAH : Laboratory Interactions between Soils, Agrosystems and Hydrosystems
Multi-Institute Research Unit (UMR)
French National Institute for Agricultural Research (INRA)
French Institute for Research and Overseas Development (IRD)
School of Agronomy of Montpellier (SupAgro)

Téléphone / Phone number :  33 (0)4 99 61 23 85
Secrétariat / Secretariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr
Site web / website: http://www.umr-lisah.fr/
Site web OpenFLUID / OpenFLUID website: http://www.umr-lisah.fr/openfluid/
*






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


Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-28 Thread rabotin

It finally works !
For information, the issue was here
setenv(GISBASE,/usr/lib/grass64/dist.i486-pc-linux-gnu,0);

I replace by this following line
setenv(GISBASE,/usr/lib/grass64/,0);
and it works

Thanks again for your help Glynn


Michael Rabotin

Glynn Clements a écrit :

rabotin wrote:

  

If (inside a GRASS session), I access with  v.db.connect -p map=GU0507
it looks ok :

Vector map gu0...@simon9 is connected by:
layer 1 table GU0507 in database 
/home/rabotin/grassdata/Roujan/simon9/dbf/ through driver dbf with 
key cat


Do you know how to launch a grass command (e.g. v.db.connect) inside a C 
script

I try this line in my C progam

system(v.db.connect -p map=GU0507)

but I have an error message

sh: v.db.connect: not found



That indicates the $GISBASE/bin isn't in $PATH.

For a list of envionment variables which may be useful, I suggest
reading this:

http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly

  



--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-27 Thread rabotin

If (inside a GRASS session), I access with  v.db.connect -p map=GU0507
it looks ok :

Vector map gu0...@simon9 is connected by:
layer 1 table GU0507 in database 
/home/rabotin/grassdata/Roujan/simon9/dbf/ through driver dbf with 
key cat


Do you know how to launch a grass command (e.g. v.db.connect) inside a C 
script

I try this line in my C progam

system(v.db.connect -p map=GU0507)

but I have an error message

sh: v.db.connect: not found

Michael R



Glynn Clements a écrit :

rabotin wrote:

  

std::cout  driver  std::endl;
  

And I got a zero value return . So my driver isn't set ?
Is the problem from the following lines :
setenv(DBF_DRIVER,dbf,1);
setenv(DB_DATABASE,$GISDBASE/$LOCATION_NAME/$MAPSET/dbf,1);



These will be ignored. The default DBMI settings are taken from the
VAR file, not the environment. But you're use the settings from an
existing vector map.

  

I didn't write but I use grass 6.4 on ubuntu 9.10.
Do you know other commands to test or to set the dbf driver than 
db_start_driver command ?



The code looks okay. Can you access the map's attribute table using
existing GRASS modules, e.g.v.db.connect -p ...?

  



--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-26 Thread rabotin

Thanks for helping me,
as you wrote I change

std::cout  driver  std::endl;
  

to:



std::cout  driver  std::endl;

And I got a zero value return . So my driver isn't set ?
Is the problem from the following lines :
setenv(DBF_DRIVER,dbf,1);
setenv(DB_DATABASE,$GISDBASE/$LOCATION_NAME/$MAPSET/dbf,1);

I didn't write but I use grass 6.4 on ubuntu 9.10.
Do you know other commands to test or to set the dbf driver than 
db_start_driver command ?


Cheers

Mick




Glynn Clements a écrit :

rabotin wrote:

  

After that , using db_open_database(driver,handle) command launch a
segmentation fault. Is it because my handle is a null value ?



Possibly; change:

  

std::cout  driver  std::endl;



to:

  

std::cout  driver  std::endl;



to confirm this.

  

Are some commands missing to access or start dbf driver in my script ?



I can't see anything wrong, other than failing to check the return
value from db_start_driver().

  



--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] Setting GRASS environment variable in a C program

2010-05-21 Thread rabotin

Dear all,
i'm trying to access to my grass data without launching an active grass 
session with a c program. I'm encoutering issues with the GRASS 
environment variables definitions.

Here my C script

#include iostream
#include stdio.h
#include stdlib.h
#include string.h

extern C {

#include grass/config.h
#include grass/gis.h
#include grass/Vect.h
#include grass/glocale.h
#include grass/dbmi.h
}


int main(int argc, char *argv[])
{
   char 
name[GNAME_MAX],gisdbase[GNAME_MAX],location[GNAME_MAX],mapset[GNAME_MAX];

   struct Map_info In;
  
   // Setting the grass environment

   G__setenv(GISDBASE,/home/rabotin/grassdata);
   G__setenv(LOCATION_NAME,Roujan);
   G__setenv(MAPSET,PERMANENT);
   G__setenv(MAPSET,simon9);

 
   G_gisinit(argv[0]);

   std::cout  G_getenv(G_gisdbase())  std::endl;
   std::cout  G_getenv(G_location())  std::endl;
   std::cout  G_getenv(G_mapset())  std::endl;
}

When launshing this script in command terminal (outside an active grass 
session), I've got a segmentation fault.


Does anybody try to access grassdata with C program without launching a 
grass session ? And does anybody can share with me the solutions he 
found to solve same issues ?


Thanks in advance

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] Using GRASS_BATCH_JOB but with a c++ program

2010-05-17 Thread rabotin

Dear all,
I'm trying to launch a grass work with a script to automate calcul.
I try successfully with calling a shell script with GRASS_BATCH_JOB 
parameter (which call the test_algo.sh)

with the following shell script

#!/bin/bash
  chmod u+x $HOME/test_algo.sh
  export GRASS_BATCH_JOB=$HOME/test_algo.sh
  grass ~/grassdata/Roujan/simon9/
  unset GRASS_BATCH_JOB

I'm trying now to do the same thing with a c++ program which call the 
same shell script (test_algo.sh) and having the following lines (here 
the .cpp file):


#include stdio.h
#include stdlib.h

const char chmod[]=chmod u+x /home/rabotin/test_algo.sh;
const char expor[]=export GRASS_BATCH_JOB=/home/rabotin/test_algo.sh;
const char grass[]=grass -text ~/grassdata/Roujan/simon9/;
const char unset[]=unset GRASS_BATCH_JOB;

int main()
{
   printf (Launching grass test!);
 system(chmod);
 system(expor);
 system(grass);
 system(unset);
 printf (Launched grass test!);

   return 0;
}


But it doesnt' work well: GRASS is well launched, but no call to 
test_algo.sh and GRASS doesnt' end successfully


Can anyone have any idea to help me ?

Friendly,

Michael Rabotin



--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] Coding agree.aml script into GRASS

2010-02-16 Thread rabotin

Dear all,
i'm working on terrain modification for hydrology modeling and I'm 
interested in the agree.aml script which is :


AGREE is a surface reconditioning system for Digital Elevation Models 
(DEMs).
/*The system adjusts the surface elevation of the DEM to be consistent 
with a
/*vector coverage.  The vecor coverage can be a stream or ridge line 
coverage.


It's a script developed by

Hellweger, R., 1996. Agree.aml. Center for Research in Water
Resources, The University of Texas at Austin, Austin, TX.

I know that r.carve in GRASS is quite similar but I need to use agree 
algorithm into GRASS. Do you know if someone already develop it into a 
grass module ?

If no, I think I will need to develop by myself ;)

Thanks for any information

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] Questions about GRASS license and other more restrictive licenses

2009-10-14 Thread rabotin

Hello all,
I've got a question concerning the license of GRASS.
I'm working for a public french research center (INRA : French National 
Institute for Agricultural Research) ; we have developped a series of 
scripts in shell and perl languages for GRASS.
These procedures are made for an informatic platform which is able to 
download under a license more restrictive than GPL license .
And these procedures for GRASS will be accessible for download under 
this license too.
So my question is : is this kind of license (a license more restrictive 
than GPL license) compatible with developing shell scripts for GRASS (as 
GRASS license is GPL license) or not ?

Thanks for any informations you can provide

Here you can read the following lines in the license provided with the 
informatic platform (and this license will be the same for these GRASS 
scripts) :


2) License of the software
==
a) INRA grants to You by this agreement a non-exclusive, world-wide and
royalty-free license to use the software to the end described hereunder
in the domain of the license, as long as You will comply with the terms
and conditions of this agreement.
b) You are authorised to download, install, execute the software on your
computer within the limit of one license for one computer (one hard
disk).
c) Except specific and written agreement of INRA, You are not allowed
to download, install or execute the software on a server.
d) You are not authorised to rent, sell, sublease, distribute, assign,
transfer, license, sublicense or otherwise share the software or one of
INRA’s rights on the software.
e) You are authorised to make a back-up copy of the software provided
You will not use it on any else computer. You are responsible of the
physical security of this copy and of the software.
f) You may personalize the set up of the software or extend its
functions. As well, You may translate, adapt, fix, modify the software
when theses acts are necessary for the use of the software in accordance
with this agreement.
g) INRA reserves the right to correct errors and to determine the
specific forms to which the following acts will be submitted:
The copy of the source code of the software or the translation of this
code are allowed when they are essential for the good working order of
the software with other softwares and when they are essential for the
use of the software in the domain of the license.
Furthermore, You are not authorized to reverse engineer, disassemble or
decompile the software.
Necessary information for good working order with other softwares is
available by INRA, without implying as regard to INRA any undertaking
to supply any assistance or services associated with the software.
h) You are not authorised to extract (that is transfer permanently or
temporarily) whole or a part of the content of the software (data) onto
an other medium, by any mean and in any form. Moreover, you are neither
authorised to re-use (that is to put at the public’s disposal) whole or
a part of the content of the software (data) whatever the form may be.
i) Your are allowed to produce supplementary modules for the software,
to improve or adapt the software provided however that the use of these
modules, supplementary versions, improvements, additions or upgrades
will be used in accordance with this agreement and strictly in the
domain of the licence.
In particular, You undertake to communicate these improvements or
modules to INRA and to allow INRA to use them for its own research
purposes.
If the improvements or modules are dependant upon the software
(according to code de la propriété intellectuelle), You may not disclose
or transfer them to third parties without the prior and written consent
of INRA on the forms of this distribution.
If the improvement or modules are not dependant upon the software
(according to code de la propriété intellectuelle), You may disclose
and transfer them to third parties, provided You indemnify and hold
harmless INRA with respect to any suit, claim or proceeding brought by
a third party.

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] 2nd call for papers - 2010 Conference on Integrative Landscape Modeling, Linking environmental, social and computer sciences

2009-09-24 Thread rabotin

Hello dear Grass - users,



2010 Conference on Integrative Landscape Modeling
Linking environmental, social and computer sciences
Montpellier, France, February 3rd-5th, 2010

2nd call for papers

The 2010 international conference on integrative landscape modelling 
will gather leading scientists in each of the main disciplines dealing 
with ecosystems and landscape simulation and management, complex dynamic 
modelling and assessment of vulnerability, resilience and adaptation of 
agro- and eco-systems under human influence.

The main objectives of the conference are:
To discuss the objectives, priorities and expectations when modelling 
the functioning of landscapes;
To share experience about landscape modelling and to identify major 
existing conceptual and technological gaps;

To release a ‘state of the art’ about landscape modelling and simulation;
To start building an international network on integrative ecosystems and 
landscape modelling.
If you are interested in attending this conference, please send an 
extended abstract of your original work related to any aspect (thematic, 
conceptual, epistemological, technical) of integrative landscape 
modelling (4 pages max. including figures and tables and references), no 
later than October, 31st.
You will be notified whether your paper is accepted for an oral or 
poster session by November, 30th.


More information and online pre-registration:
http://www.umr-lisah.fr/rtra-projects/landmod2010.html

Steering committee
Jean-Christophe FABRE, Laboratory of study of interactions among soils, 
agrosystems and hydrosystems, INRA Montpellier, France
Marc JAEGER, Botany and computational plant architecture laboratory, 
Cirad Montpellier, France
Xavier LOUCHART, Laboratory of study of interactions among soils, 
agrosystems and hydrosystems, INRA Montpellier, France
Jean-Pierre MULLER, Renewable resources and environment management 
laboratory, Cirad Montpellier, France


Scientific committee
Philippe ACKERER, Institute of Fluids Mechanics, University of 
Strasbourg, France

Richard ASPINALL, Macaulay Institute, Aberdeen, UK
Daniel AUCLAIR, Research Unit AMAP Botany and Computational Plant 
Architecture, Cirad, Montpellier, France
Olivier BARRETEAU, Research Unit G-EAU Water Management, Stakeholders, 
Uses, CEMAGREF, Montpellier, France
Lluís BROTONS, Landscape Ecology Group, Technological Forestry Centre of 
Catalonia, Solsona, Spain
Yves BRUNET, Research Unit of Functional Ecology and Environmental 
Physics, INRA Bordeaux, France
Christine FURST, Institute for Soil Science and Site Ecology, Dresden 
University of Technology, Germany
Cédric GAUCHEREL, Research Unit AMAP Botany and Computational Plant 
Architecture, Cirad, Montpellier, France
Volker GRIMM, Department of Ecological Modelling, Helmholtz Center for 
Environmental Research, Leipzig, Germany
Sandra LUQUE, Dynamics and management of mountain ecosystems, CEMAGREF, 
Grenoble, France

Dawn PARKER, School of planning, University of Waterloo, Canada
Tom A. VELDKAMP, Landscape Centre, Wageningen, The Netherlands

Secretariat:
LandMod2010
UMR LISAH - 2 place P. Viala
F-34060 Montpellier cedex 1 – France
Tel : +33 (0)4 99 61 21 60
Fax : +33 (0)4 67 63 26 14
br...@supagro.inra.fr

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] html page for an addon script

2009-02-25 Thread rabotin

Dear Grass users,
my problem is concerning the html page which we can create with scripts.
I created a shell script (called m.dispolyg) and his html page for 
helping user (m.dispolyg.html).
I put my shell script and the html file in the following directory: 
usr/lib/grass/addons


and in my /$HOME/$USER/.bashrc I put these two lines:
GRASS_ADDON_PATH=/usr/lib/grass/addons
export GRASS_ADDON_PATH

With this I can launch my script in grass but when I write
g.manual m.dispolyg
I've got the following error:
ERROR: No HTML manual page entry for m.dispolyg.

Should I put the m.dispolyg.html file in this directory or in another 
directory like

usr/share/doc/grass-doc/html  ?

I run grass 6.3. on ubuntu 8.10,
grass is in the following directory:
/usr/lib/grass

Thanks for any help

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions entre Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

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


[GRASS-user] problem importing hdf files in grass

2008-03-13 Thread Michaël Rabotin
Hi Everybody,
I've got some problems to import hdf file in grass 6.2.3 on ubuntu
I've got hdf file with AST05, AST07,AST08 and AST09 format
for each bands of these hdf file with a little shell script, I imported in
grass with following commands:

#gdalinfo to have the band name:
gdalinfo $INPUTHDF$i |grep SUBDATASET_[0-9]*_NAME|cut -d= -f2|grep
Band /tmp/bast2

#gdalwarp to project the band
gdalwarp -s_srs '+proj=utm +zone=31 +datum=WGS84' -t_srs '+proj=utm +zone=31
+datum=WGS84' -order 3 $j /tmp/band$jj 2/dev/null

#and r.in;gdal to import
r.in.gdal -o -e input=/tmp/band$jj output=band$jj 2/dev/null

Everything is correct for the AST05,AST07 and AST09 file.
But for my AST08, the image is very deformed and the rows and columns number
aren't corrects (usually AST05 and AST08 have the same number of row and
column, but not my grass rasters).

Does anybody have the same problem with importing ast08 hdf file?
Is anybody know if the AST08 format is specific ? And if the import protocol
for ast08 is different then the others ast formats ?

Thanks

Mick
-- 
M.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] how and where download GEM 1.03

2008-01-15 Thread Michaël Rabotin
Hi Everybody,
I want to download GEM (grass extension manager) but I don't find a valid
link to do it
Can somebody explain to me where I can download this software
Thanks

Mick

-- 
M.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] how and where download GEM 1.03

2008-01-15 Thread Michaël Rabotin
Hi Everybody,
I want to download GEM (grass extension manager) but I don't find a valid
link to do it
Can somebody explain to me where I can download this software
Thanks

Mick

-- 
M.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user