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!
==sfsizes== {| class="wikitable" align="center" cellspacing="0" border="1" ! colspan="4" style="background:#ffdead;" | Display the size of RSF files. |- ! colspan="4" | sfsizes files=y human=n file1.rsf file2.rsf ... |- | colspan="4" | Prints the element size, number of elements, and number of bytes<br>for a list of RSF files. Non-RSF files are ignored. |- | ''bool '' || '''files=y''' || [y/n] || If y, print size of each file. If n, print only total. |- | ''bool '' || '''human=n''' || [y/n] || If y, print human-readable file size. If n, print byte count. |} This program computes the "theoretical" size in bytes of the data fork of RSF files. The actual space occupied on disk may be different and machine-dependent due to disk blocking factors, etc. This theoretical array size should be reproducible. It is also fast because the program only reads the RSF headers files, not the actual data. For example, to get the total size of all RSF files in a directory, in human-readable format, without listing each file: <pre> sfsizes files=n human=y *.rsf </pre> This will also work because sfsizes simply skips any non-RSF file: <pre> sfsizes files=n human=y * </pre>
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