Know more

Our use of cookies

Cookies are a set of data stored on a user’s device when the user browses a web site. The data is in a file containing an ID number, the name of the server which deposited it and, in some cases, an expiry date. We use cookies to record information about your visit, language of preference, and other parameters on the site in order to optimise your next visit and make the site even more useful to you.

To improve your experience, we use cookies to store certain browsing information and provide secure navigation, and to collect statistics with a view to improve the site’s features. For a complete list of the cookies we use, download “Ghostery”, a free plug-in for browsers which can detect, and, in some cases, block cookies.

Ghostery is available here for free:

You can also visit the CNIL web site for instructions on how to configure your browser to manage cookie storage on your device.

In the case of third-party advertising cookies, you can also visit the following site:, offered by digital advertising professionals within the European Digital Advertising Alliance (EDAA). From the site, you can deny or accept the cookies used by advertising professionals who are members.

It is also possible to block certain third-party cookies directly via publishers:

Cookie type

Means of blocking

Analytical and performance cookies

Google Analytics

Targeted advertising cookies


The following types of cookies may be used on our websites:

Mandatory cookies

Functional cookies

Social media and advertising cookies

These cookies are needed to ensure the proper functioning of the site and cannot be disabled. They help ensure a secure connection and the basic availability of our website.

These cookies allow us to analyse site use in order to measure and optimise performance. They allow us to store your sign-in information and display the different components of our website in a more coherent way.

These cookies are used by advertising agencies such as Google and by social media sites such as LinkedIn and Facebook. Among other things, they allow pages to be shared on social media, the posting of comments, and the publication (on our site or elsewhere) of ads that reflect your centres of interest.

Our EZPublish content management system (CMS) uses CAS and PHP session cookies and the New Relic cookie for monitoring purposes (IP, response times).

These cookies are deleted at the end of the browsing session (when you log off or close your browser window)

Our EZPublish content management system (CMS) uses the XiTi cookie to measure traffic. Our service provider is AT Internet. This company stores data (IPs, date and time of access, length of the visit and pages viewed) for six months.

Our EZPublish content management system (CMS) does not use this type of cookie.

For more information about the cookies we use, contact INRA’s Data Protection Officer by email at or by post at:

24, chemin de Borde Rouge –Auzeville – CS52627
31326 Castanet Tolosan CEDEX - France

Dernière mise à jour : Mai 2018

Menu Logo Principal

Soil Science Research Unit


The GARS software

« Generate A Rough Surface »

Rugosite © INRA

The shape of a surface controls numerous phenomena (alteration, flow, etc.), from the microscopic scale to the scale of the landscape.

While our laboratory is equipped to measure the roughness of soil surface with a millimeter resolution, it is sometimes useful to generate surfaces numerically. Hence, on can control its properties and generate numerous statistically-identical surfaces.

Measured © INRA
Generated © INRA

Surface measured in the field                                                 Surface generated with GARS

The surfaces generated with GARS can look like very much to surfaces measured in the field.

Dark gray: low height.   Light gray: high height.

Generation method

The surface generated with GARS can include:

  • A random change generated by inverse Fourier transform in 2 dimensions. The power spectrum (slope, correlation length) can be set, the phase spectrum being random.
  • A general slope, which value and direction is set by the user.
  • A sinusoidal wave which characteristics (amplitude, wave length and direction) can be parameterized.T


You can try GARS on line.
To be kept informed of the changes of GARS, ask for a subscription to the diffusion list GARS-infos@ by sending an email to

GARS : a free source code

GARS is a free software distributed under the license CeCILL-B (BSD-compatible). Hence, you can access to the whole source code (in C), and you are free to use it and to modify it as long as you cite it.
In practice, to make your improvements known to the community, the simplest way is to integrate directly your code lines into GARS: contact us at

Distribution : Free source code, in English.

Download: Source code

Documentation and information : Help on GARS

Contact : Frédéric DARBOUX

See also :
FullSWOF, a code simulating flows and that can use surfaces generated by GARS as an input
Rugosimetry laser, a tool to measure a surface with a 0.5 mm resolution.