Madagascar (software)


title: "Madagascar (software)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["articles-with-example-python-(programming-language)-code", "free-science-software"] topic_path: "general/articles-with-example-python-programming-language-code" source: "https://en.wikipedia.org/wiki/Madagascar_(software)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::data[format=table title="Infobox software"]

FieldValue
nameMadagascar
logo[[Image:Madagascar 2x.png
releasedJune 12, 2006
latest release version4.2
latest release date
programming languageC, C++, Python
operating systemPosix
genreGeophysical software
licenseGNU General Public License
websiteahay.org
latest_preview_versionThrough Github
::

| name = Madagascar | logo = [[Image:Madagascar 2x.png|Madagascar logo|200px]] | released = June 12, 2006 | latest release version = 4.2 | latest release date = | programming language = C, C++, Python | operating system = Posix | genre = Geophysical software | license = GNU General Public License | website = ahay.org | latest_preview_version = Through Github

Madagascar is a software package for multidimensional data analysis and reproducible computational experiments.

Technology developed using the Madagascar project management system is transferred in the form of recorded processing histories, which become "computational recipes" to be verified, exchanged, and modified by users of the system.

Features

The Madagascar environment consists of:

  1. Standalone programs for out-of-core data analysis;
  2. Standalone programs for geophysical data processing and imaging;
  3. A development kit for C, C++, Java, Fortran-77, Fortran-90, Python, Matlab, and Octave;
  4. A framework for reproducible numerical experiments, based on SCons;
  5. A framework for scientific publications, based on SCons and LaTeX;
  6. A collection of reproducible scientific articles also used as usage examples and regression tests for the standalone programs;
  7. A collection of datasets used as input to reproducible numerical experiments.

Example script

An example file is shown below ::code[lang=python] from rsf.proj import *

Fetch("wz.35.H", "wz")

Flow("wind", "wz.35.H", "dd form=native | window n1=400 j1=2 | smooth rect1=3") Plot("wind", "pow pow1=2 | grey")

Flow("mute", "wind", "mutter v0=0.31 half=n") Plot("mute", "pow pow1=2 | grey")

Result("denmark", "wind mute", "SideBySideAniso")

End() ::

Note that by itself does not do any job other than setting rules for building different targets. The targets get built when one executes on the command line. Running produces bash$ scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... retrieve(["wz.35.H"], []) wind.rsf wind.vpl mute.rsf mute.vpl /RSF/bin/vppen yscale=2 vpstyle=n gridnum=2,1 wind.vpl mute.vpl Fig/denmark.vpl scons: done building targets.

License

Madagascar is free software and is licensed under the GPL.

History

Madagascar was first publicly presented at the EAGE Workshop in Vienna in June 2006. The work on the package (previously named RSF) was started by Sergey Fomel in 2003. Since then, many people have contributed to it.

While being written mostly from scratch, Madagascar borrows ideas from the design of SEPlib, an open-source package maintained by Bob Clapp at the Stanford Exploration Project (SEP). Generations of SEP students and researchers contributed to SEPlib. Most important contributions came from Rob Clayton, Jon Claerbout, Dave Hale, Stew Levin, Rick Ottolini, Joe Dellinger, Steve Cole, Dave Nichols, Martin Karrenbach, Biondo Biondi, and Bob Clapp.

Madagascar also borrows ideas from Seismic Unix (SU), a package maintained by John Stockwell at the Center for Wave Phenomenon (CWP) at the Colorado School of Mines (Stockwell, 1997; Stockwell, 1999). Main contributors to SU included Einar Kjartansson, Shuki Ronen, Jack Cohen, Chris Liner, Dave Hale, and John Stockwell. SU adopted an open-source BSD-style license starting with release 40 (April 10, 2007).

References

References

  1. {{mono. bei/sg/denmark example https://github.com/ahay/src/blob/master/book/bei/sg/denmark/SConstruct
  2. S. Fomel and G. Hennenfent, 2007, Reproducible computational experiments using SCons: 32nd International Conference on Acoustics, Speech, and Signal Processing (ICASSP), IV/1257-1260.
  3. AUTHORS.txt file https://github.com/ahay/src/blob/master/AUTHORS.txt
  4. Stockwell, J. W., 1997, Free software in education: A case study of CWP/SU: Seismic Unix: The Leading Edge, '''16''', 1045--1049.
  5. --------, 1999, The CWP/SU: Seismic Un*x package: Computers and Geosciences, '''25''', 415--419.

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

articles-with-example-python-(programming-language)-codefree-science-software