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 functions to read and write csv files
(816 downloads for this version - 31197 downloads for all versions)
Details
Version
0.5
A more recent valid version exists: 0.6.1
Authors
Allan CORNET
Michael Baudin
Owner Organization
Scilab - DIGITEO
Maintainers
Allan CORNET
Michael BAUDIN
Category
License
Creation Date
November 14, 2011
Source created on
Scilab 5.3.x
Binaries available on
Scilab 5.3.x:
Windows 32-bit Windows 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()


csv_readwrite (0.5)
* Fixed ticket #481, #576: csv_read crashed Scilab, if there were negative
values in file            
Files (3)
[150.44 kB]
Source code archive

[232.43 kB]
Windows 32-bit binary for Scilab 5.3.x
Mise à jour du fichier de Description.
[234.56 kB]
Windows 64-bit binary for Scilab 5.3.x
Mise à jour d fichier de Description.
News (0)
Comments (4)     Leave a comment 
Comment from Joachim Sender -- November 18, 2011, 04:01:43 PM    
I experienced the same probs(crash) with csv_readwrite_0.4.1 under Linux-X64 (Ubuntu
Natty) using scilab-5.3.1.
Is there a compiled version for Linux available?

I tried to compile csv_readwrite by myself, but I haven't found any description how to do
this. 
Starting 'exec builder.sce' from csv_readwrite/ Scilab complains that it requires a local
built of Scilab.
Having done apt-get source scilab & dpkg-buildpackage the situation remains the same,
i.e.
still stating that a local built is not available.
After having replaced the original /usr/share/scilab with that one used for building
scilab, csv-readwrite/builder.sce is done without errors. 
loader.sce loads the module/atom, but how to install the new module? Otherwise an autoload
seems not to be possible.

atomInstall(['csv-readwrite' '0.5-1']) says The package csv_readwrite - 0.5-1 is not
available.





Comment from Allan CORNET -- November 18, 2011, 04:10:19 PM    
Others platforms will be quickly available

Allan
Comment from David Chèze -- December 20, 2011, 11:35:13 AM    
Hello,

atomInstall('csv_readwrite') says the package is not available when trying to install it
on scilab 5.4 alpha1 W7 32 bits. I was using it with my previous scilab 5.3.2 installation
: another way to use it with 5.4 version ?

Thanks
Answer from Administrator ATOMS -- December 20, 2011, 12:48:00 PM    
Hi,
I just compiled the 0.5.1 version, that makes it available for scilab 5.4. An 
atomsSystemUpdate should allow you to see and install it.
> Hello,
> 
> atomInstall('csv_readwrite') says the package is not available when trying to install
> it
> on scilab 5.4 alpha1 W7 32 bits. I was using it with my previous scilab 5.3.2
> installation
> : another way to use it with 5.4 version ?
> 
> Thanks
Comment from Fernando Schimidt -- October 7, 2012, 08:31:48 AM    
Dear Friends

When I need to install this ZIP file?
Thanks for any help!
Answer from Administrator ATOMS -- October 8, 2012, 09:03:06 AM    
In your Scilab, execute
atomsInstall('csv_readwrite')
and it will download the file and install it. Afterwards, you either restart your Scilab, 
or execute 
atomsLoad('csv_readwrite')
and the module will be available.
> Dear Friends
> 
> When I need to install this ZIP file?
> Thanks for any help!
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.