Editing
Guide to madagascar programs
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==sfdisfil== {| class="wikitable" align="center" cellspacing="0" border="1" ! colspan="4" style="background:#ffdead;" | Print out data values. |- ! colspan="4" | sfdisfil < in.rsf number=y col=0 format= header= trailer= |- | colspan="4" | <br>Alternatively, use sfdd and convert to ASCII form. |- | ''int '' || '''col=0''' || || Number of columns. :The default depends on the data type: :10 for int and char, :5 for float, :3 for complex |- | ''string '' || '''format=''' || || Format for numbers (printf-style). :The default depends on the data type:<br> "%4d " for int and char,<br> "%13.4g" for float,<br> "%10.4g,%10.4gi" for complex |- | ''string '' || '''header=''' || || Optional header string to output before data |- | ''bool '' || '''number=y''' || [y/n] || If number the elements |- | ''string '' || '''trailer=''' || || Optional trailer string to output after data |} The <tt>sfdisfil</tt> program simply dumps the data contents to the standard output in a text form. It is used mostly for debugging purposes to quickly examine RSF files. Here is an example: <pre> bash$ sfmath o1=0 d1=2 n1=12 output=x1 > test.rsf bash$ < test.rsf sfdisfil 0: 0 2 4 6 8 5: 10 12 14 16 18 10: 20 22 </pre> The output format is easily configurable. <pre> bash$ < test.rsf sfdisfil col=6 number=n format="%5.1f" 0.0 2.0 4.0 6.0 8.0 10.0 12.0 14.0 16.0 18.0 20.0 22.0 </pre> Along with <tt>sfdd</tt>, <tt>sfdisfil</tt> provides a simple way to convert RSF data to an ASCII form.
Summary:
Please note that all contributions to Madagascar are considered to be released under the GNU Free Documentation License 1.3 or later (see
My wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Getting Madagascar
download
Installation
GitHub repository
SEGTeX
Introduction
Package overview
Tutorial
Hands-on tour
Reproducible documents
Hall of Fame
User Documentation
List of programs
Common programs
Popular programs
The RSF file format
Reproducibility with SCons
Developer documentation
Adding programs
Contributing programs
API demo: clipping data
API demo: explicit finite differences
Community
Conferences
User mailing list
Developer mailing list
GitHub organization
LinkedIn group
Development blog
Twitter
Slack
Tools
What links here
Related changes
Special pages
Page information