Hands-on: Input and output
In this exercise we study how to read and write arrays to disk.
Source code for this exercise is located in
numpy/input-output/xy-coordinates.dat contains a list of (x,y) value
pairs. Read the data with
numpy.loadtxt(). Add then 2.5 to all y values and
write the new data into a file using
© CSC - IT Center for Science Ltd.