next up previous [pdf]

Next: Implementation: system/main/get.c Up: Main programs Previous: sfdottest: Generic dot-product test

sfget: Output parameters from the header.

sfget parform=y all=n par1 par2 ...

bool all=n [y/n] If output all values.
bool parform=y [y/n] If y, print out parameter=value. If n, print out value.

The sfget program extracts a parameter value from an RSF file. It is useful mostly for scripting. Here is, for example, a quick calculation of the maximum value on the first axis in an RSF dataset (the output of sfspike) using the standard Unix bc calculator.

bash$ ( sfspike n1=100 | sfget n1 d1 o1; echo "o1+(n1-1)*d1" ) | bc
.396
See also sfput.



Subsections
next up previous [pdf]

Next: Implementation: system/main/get.c Up: Main programs Previous: sfdottest: Generic dot-product test

2012-07-19