DMelt:IO/5 DIF File Format

From jWork.ORG
Jump to: navigation, search
Limitted access. Reguest membership or login to this link first if you are already a member

DIF file format

Similar to CSV, the DIF file format is used to create readable text entries in the files.

You can use this format to fill spreadsheets and read them in spreadsheet programs ( 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 DataMelt data holders discussed in Data Structures section. The Java class for this format is called

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

from jhplot import *
from import *

p=P1D("X-Y values with error 0.5 on Y")


The output file "test.dif" can be read in OpenOffice or any other spreadsheet programs.

Here is a more complicated example:

More information on this topic is in DMelt books