Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : csv_readwrite details
Login with GitLab

csv_readwrite

fast dedicated scilab functions to read and write csv files
(2627 downloads for this version - 31207 downloads for all versions)
Details
Version
0.3
A more recent valid version with binaries for Scilab 5.3 exists: 0.5
Author
Allan CORNET
Owner Organization
Scilab - DIGITEO
Maintainers
Allan CORNET
Michael BAUDIN
Category
License
Creation Date
January 28, 2011
Source created on
Scilab 5.3.x
Binaries available on
Scilab 5.3.x:
Linux 32-bit Windows 32-bit macOS Linux 64-bit
Install command
--> atomsInstall("csv_readwrite")
Description
            Purpose
-------

The purpose of this module is to read and write 
Comma Separated Values (CSV) data files. 
The goal of this toolbox is to improve the flexibility, consistency and speed of

CSV reading and writing with respect to Scilab built-in 
write_csv and read_csv functions. 

On some large data files, we observed a 100x improvement of the 
speed.

Features
--------

 * csv_default : Get or set defaults for csv files.
 * csv_getToolboxPath : Returns the path to the current module.
 * csv_read : Read comma-separated value file
 * csv_stringtodouble : Convert a matrix of strings to a matrix of doubles.
 * csv_textscan : Read comma-separated value in a matrix of strings
 * csv_write : Write comma-separated value file



To compare speed:

with optimized functions:
stacksize('max');
M = ones(1000, 1000);
tic();
csv_write(M, TMPDIR + "/csv_write_1.csv");
toc()

tic();
r = csv_read(TMPDIR + "/csv_write_1.csv")
toc()


with default scilab functions (be patient):
stacksize('max');
M = ones(1000, 1000);
tic();
write_csv(M, TMPDIR + "/csv_write_1.csv");
toc()

tic();
r = read_csv(TMPDIR + "/csv_write_1.csv")
toc()
            
Files (5)
[84.86 kB]
Source code archive

[84.92 kB]
Linux 32-bit binary for Scilab 5.3.x
Linux 32-bit
Automatically generated by the ATOMS compilation chain

[431.19 kB]
Windows 32-bit binary for Scilab 5.3.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[80.72 kB]
macOS binary for Scilab 5.3.x
MacOSX version
Automatically generated by the ATOMS compilation chain

[85.90 kB]
Linux 64-bit binary for Scilab 5.3.x
Linux 64-bit
Automatically generated by the ATOMS compilation chain

News (0)
Comments (1)     Leave a comment 
Comment -- March 1, 2011, 02:47:39 PM    
Here is the change log for the v0.3.


csv_readwrite (0.3)
    * csv_write can write complex matrix (fix bug 8349).
    * csv_read can read complex matrix (fix bug 8349).
    * csv_textscan added.
    * csv_default added to set default paramaters.
    * csv_stringtodouble added.
      csv_stringtodouble used to replace evstr for double conversion (faster)
    * increase precision of csv_write (16 digits)
    * some part of code factorized
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.