next up previous contents
Next: The .autorc File Up: Running AUTO using Python Previous: Solution Files   Contents

Exporting output data for use by Python or external visualization tools.

The bifurcation and solution file classes have two methods that are particularily useful for creating data which can be used in other programs. First, there is a method called toArray which takes a bifurcation diagram or solution and returns a standard Python array. Second, there is a method called writeRawFilename which will create a standard ASCII file which contains the bifurcation diagram or the solution. In the solution ASCII file, the first element of each row will be the 't' value and the following elements will be the values of the components at that 't' value. Such ASCII files can be readily parsed and plotted by external tools such as Gnuplot and MATLAB.

For example, we assume that the parsed bifurcation diagram is contained in a variable b, for instance, using b=dg('ab'). If one wanted to have the bifurcation diagram returned as a Python array one would type b.toArray(). Similarily, if one wanted to write out the bifurcation diagram to the file outputfile one would type b.writeRawFilename('outputfile').

Now we assume that the parsed solution file is contained in a variable s, for example, using s=sl('ab'). To get the solution with label 57 returned as a Python array one would type s(57).toArray(). Similarily, if one wanted to write out the solution to the file outputfile one would type s(57).writeRawFilename('outputfile').


next up previous contents
Next: The .autorc File Up: Running AUTO using Python Previous: Solution Files   Contents
Gabriel Lord 2007-11-19