You are a guest. Restricted access. Read more.
SCaVis manual

CSV files

Cross platform I/O can be also achieved using Comma-separated values (CVS) files.

Snippet from Wikipedia: Comma-separated values

A comma-separated values (CSV) (also sometimes called character-separated values, because the separator character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form. Plain text means that the file is a sequence of characters, with no data that has to be interpreted instead, as binary numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record consists of fields, separated by some other character or string, most commonly a literal comma or tab.

You can use this format to fill spreadsheets and read them in spreadsheet programs (OpenOffice.org Calc, Excel, Gnumeric, StarCalc). The format is a text file, encoded in ASCII, with a header and body. This is especially useful for a number of ScaVis data holders discussed in Data Structures section. The Java class for this format is called jhplot.io.HFileCSV.

Here is a simple Python example showing how to create a CSV file

from jhplot import *
from jhplot.io import *
 
p=P1D("X-Y values with error 0.5 on Y")
p.add(1,2,0.5)
p.add(2,10,0.5)
p.add(3,61,0.5)
 
f=HFileCSV("test.csv","w")
f.write(p)
f.close()

The output file “test.csv” can be read in OpenOffice or any other spreadsheet programs.

Here is a more complicated example:

Unregistered users have a limited access to this section. You can unlock advanced pages after becoming a full member.

Unregistered users have a limited access to this section. You can unlock advanced pages after becoming a full member.

ASCII, Gauss, Matlab, Excel data formats

SCaVis can read data (timeseries) in variety of formats, such as ASCII, Gauss, Matlab, Excel. Data can be modified, showed as tables/ One can plot such data and perform a statistical analysis. One can also save such data into files. Read timeseries for detail since this topic is closely related to financial calculations

Third-party IO classes

click here if you want to know more

click here if you want to know more

click here if you want to know more

here are a lot of other Java-based I/O classes designed for storing and retrieving data. A complete description of how to use Java, Jython and SCaVis for scientific analysis is described in the book Scientific data analysis using Jython and Java published by Springer Verlag, London, 2010 (by S.V.Chekanov)

Sergei Chekanov 2010/03/07 17:35

man/io/csv.txt · Last modified: 2014/01/27 19:50 by admin
CC Attribution-Share Alike 3.0 Unported
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5