Update Madagascar and try “\F17” and “\F18”, respectively. The ligatures can be found in Wiki page: http://en.wikipedia.org/wiki/Hiragana and http://en.wikipedia.org/wiki/Katakana.
January 28, 2010 Celebration No comments
Update Madagascar and try “\F17” and “\F18”, respectively. The ligatures can be found in Wiki page: http://en.wikipedia.org/wiki/Hiragana and http://en.wikipedia.org/wiki/Katakana.
October 15, 2008 FAQ No comments
Update: If you generate Geophysics manuscripts using rsf.tex, the font change should happen automatically. Otherwise, use font= parameter.
See also:
October 27, 2007 Uncategorized 10 comments
The collection of fonts in Vplot is small and goes back to so-called “Hershey fonts” (created originally by Dr. A.V. Hershey at the U. S. National Bureau of Standards).
You can use \F# directives to switch between different fonts.
In general, there are two sorts of escape sequences, those that take an argument and those that do not. Here is a complete list of escape sequences that do not take an argument:
The following escape sequences take an integer argument immediately after, with a required space after the integer to delineate the end. This space is not printed.
The following example is from rsf/rsf/sfgraph:
The line to create this title is
.
You can find a set of tests for different fonts in pens/tests:
Thanks to Joe Dellinger for help with this answer! For more information, see his presentation on Vplot and vplotttext.m.
April 13, 2013 FAQ No comments
The configure script will try to find and test matlab and mex executibles on your system. If they are not in your PATH, you can specify them with
Install Madagascar as usual, set MATLAB path to $RSFROOT/lib, and you will able to read and write RSF files from MATLAB using rsf_read, rsf_write, and other functions from the Madagascar interface.
% get in=, n1=, and n2= parameters from file.rsf
[stat,in] = unix(‘sfget in parform=n < file.rsf’)
in = strtrim(in)
[stat,n1] = unix(‘sfget n1 parform=n < file.rsf’)
n1 = str2num(n1)
[stat,n2] = unix(‘sfget n2 parform=n < file.rsf’)
n2 = str2num(n2)
% read binary data
fid = fopen(in,‘rb’)
data = fread(fid,n1*n2,‘float32’);
% reshape to 2-D matrix
data = reshape(data,n1,n2);
August 9, 2011 Programs 4 comments
sfgraph belongs to the family of plotting programs and is used for plotting explicitly defined 2-D curves.
Here are 10 basic facts about this program:
March 20, 2011 FAQ No comments
The Geophysics instructions to authors state
Preferred formats for production are Microsoft Word and LaTeX, in that order.
Never mind the order. If you use LaTeX, you are not alone. According to SEG staff, half of submitted papers use LaTeX, including papers from many of the SEG editors. The SEGTeX package has been downloaded from SourceForge more than 5,000 times. Here are some useful trips for producing a Geophysics paper with SCons and rsf.tex:
1. If you don’t use Madagascar for your computations but would like to use the SCons setup for papers, you can download and install the madagascar-framework Python package.
2. To prepare a paper called article.tex for submission, put
in you SConstruct, then run scons article.pdf to produce the manuscript or scons article.read to display it on the screen. If your paper is named paper.tex, you can also put the options in
and use simply scons pdf and scons read. See the wiki documentation for more options and explanations.
3. Submit your paper by login into ManuscriptCentral.
4. After your paper goes through a round of revisions, you will be asked to prepare and submit both the new version and the revised version with the revision clearly marked. Use \old{} and \new{} macros to mark your changes, as shown in the example. You can produce both PDF files from once source using something like
use rsf.tex
Paper('article',options='manuscript')
Command('article-revised.tex','article.tex','cp $SOURCE $TARGET')
Paper('article-revised', options='manuscript,revised')
5. When submitting the final version, you will be asked to submit the LaTeX file that includes bibliography. If you use BibTeX, do the following:
6. When submitting the final version, you will be asked to submit high-resolution figures in EPS format. Run scons article.figs to generate figures suitable for submission.
7. Geophysics may insist that the labels on the vertical axis in your Madagascar plots should run horizontally, rather than vertically. To comply with this bizarre requirement, you may need to regenerate your plots using parallel2=n option.
See also:
February 8, 2009 FAQ No comments
In reverse order, the 10 most popular programs in Madagascar are:
10. sftransp Transpose two axes in a dataset (used in 83 projects)
9. sfadd Add, multiply, or divide RSF datasets (used in 92 projects)
8. sfgraph Graph plot (used in 99 projects)
7. sfspike Generate simple data: spikes, boxes, planes, constants (used in 109 projects)
6. sfcat Concatenate datasets (used in 110 projects)
5. sfput Input parameters into a header (used in 118 projects)
4. sfmath Mathematical operations on data files (used in 143 projects)
3. sfdd Convert between different formats (used in 163 projects)
2. sfwindow Window a portion of a dataset (used in 216 projects)
1. sfgrey Generate raster plot (used in 260 projects)
More documentation on these and other programs – in Guide to Madagascar programs.
The three most popular programs in the “generic” category (signal processing programs applicable to any kind of data) are sffft1 (Fast Fourier Transform along the first axis), sfnoise (Add random noise to the data), and sfsmooth (Multi-dimensional triangle smoothing).
The three most popular programs in the “seismic” category (signal processing programs applicable to seismic data) are sfmutter (Muting), sfricker1 (Convolution with a Ricker wavelet), and sfsegyread (Convert a SEG-Y or SU dataset to RSF).
Here is a simple Python script that extracts the popularity information:
#!/usr/bin/env python
from rsfdoc import progs
import rsfprog
def nuses(p):
‘how many times a program is used’
n=0
uses = progs[p].uses
for book in uses.keys():
for chapter in uses[book].keys():
n = n + len(uses[book][chapter])
return n
programs = progs.keys()
programs.sort(lambda x,y: nuses(y)-nuses(x))
for prog in programs:
print ‘%s is used in %d projects’ % (prog,nuses(prog))
March 17, 2006 Programs No comments
At the suggestion of Gilles Hennenfent, certain RSF programs now recognize unit1=, unit2=, etc keywords in addition to label1=, label2=, etc. This allows for more control on physical dimensionality.
Here is an example of having some fun with physical units:
bash$ sfunits unit2=ft spike.rsf >> spike.rsf Converting "km" to "ft" on axis 2 bash$ sfin spike.rsf spike.rsf: in="/var/scratch/spike.rsf@" esize=4 type=float form=native n1=100 d1=0.004 o1=0 label1="Time" unit1="s" n2=100 d2=328.084 o2=0 label2="Distance" unit2="ft" 10000 elements 40000 bytes
sfunits is a new script for unit conversion. It relies on the Unix units utility.
bash$ < spike.rsf sffft1 | sffft3 axis=2 > fft.rsf sffft3: padded to 200 bash$ sfin fft.rsf fft.rsf: in="/var/scratch/fft.rsf@" esize=8 type=complex form=native n1=55 d1=2.31481 o1=0 label1="Frequency" unit1="1/s" n2=200 d2=1.524e-05 o2=-0.001524 label2="Wavenumber" unit2="1/ft" 11000 elements 88000 bytes
Warning: this is a substantial change that affects many programs and examples. Please report any problems.
August 3, 2005 FAQ No comments
I would like to contribute my program to RSF. What do I do?
Update: Please see Adding new programs to madagascar.
June 3, 2005 Examples No comments
You can now time the execution of processing flows in Scons using a TIMER option. Use it like this:
scons TIMER=y <target>
An example from rsftour: