sfcsv2rsf (2.0-git)
index
user/ivlad/Mcsv2rsf.py
Documentation
Convert a delimited-text ASCII file to RSF binary floating point or int.

 
Synopsis
        sfcsv2rsf delimiter=, dtype=float verb=n debug=n trunc=n header=n o1=0. o2=0. d1=1. d2=1. unit1=unknown unit2=unknown label1=unknown label2=unknown
Zeros will be added if number of elements is not the same in each row.
n1 and n2 are computed automatically. For consistency with sfdisfil and
sfmatmult, output is C-style order (row-first), i.e. rows in input file
become dimension-1 columns in output. Output encoding is native. If n2=1 in
output, the second dimension will not be written to the header.

 
Parameters
       
 
float d1=1.

 
float d2=1.

 
bool debug=n [y/n]
Extra verbosity for debugging
 
string delimiter=,
Separator between values in input file
 
string dtype=float
Input type
 
bool header=n [y/n]
If the first line is a header
 
string label1=unknown

 
string label2=unknown

 
float o1=0.

 
float o2=0.

 
bool trunc=n [y/n]
Truncate or add zeros if nr elems in rows differs
 
string unit1=unknown

 
string unit2=unknown

 
bool verb=n [y/n]
Whether to echo n1, n2, infill/truncation

 
Used In
       

 
GEO384S
        hw1/color

 
RSF
        tutorials/colormaps
tutorials/petro1