Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-04-16 17:33:36
Size: 108
Editor: anonymous
Comment:
Revision 3 as of 2008-04-16 17:45:35
Size: 710
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

<<TableOfContents(2)>>

= Input/Output =

This lesson deals with the ways of reading and writing data

== Basic Python ==
The file object is used for reading and writing plain text as well as unformatted binary data. The following Codeline
writes a message in the file with the name ''out.txt''
{{{#!python
file('out.txt','wb').write('Hallo Datentraeger')
}}}

The data can be read in with the method '''.read()'''
{{{#!python
s=file('out.txt').read()
print s
'Hallo Datentraeger'
}}}




== NumPy/SciPy ==

== HDF ==

== netCDF ==

== Various Satellite data formats ==

SiaProgrammingPython

Input/Output

This lesson deals with the ways of reading and writing data

Basic Python

The file object is used for reading and writing plain text as well as unformatted binary data. The following Codeline writes a message in the file with the name out.txt

   1 file('out.txt','wb').write('Hallo Datentraeger')

The data can be read in with the method .read()

   1 s=file('out.txt').read()
   2 print s
   3 'Hallo Datentraeger'

NumPy/SciPy

HDF

netCDF

Various Satellite data formats

LehreWiki: SiaProgrammingPythonIo (last edited 2008-04-21 12:10:37 by anonymous)