From: Michael V. De P. <mde...@ma...> - 2006-04-29 18:57:52
|
On Sat, Apr 29, 2006 at 08:41:48AM -1000, Eric Firing wrote: > How easy it is to do this depends on your ascii file format, and how the > data are organized in it. Are the points in order? e.g. > > x0, y0, z00 > x0, y1, z01 > x0, y2, z02 > x1, y0, z10 > x1, y1, z11 > x1, y2, z12 This is precisely the ordering. > Are the values space-delimited, or comma-delimited, or in some other > format? The values are space-delimited. The way I am reading them in is with readline, then splitting the resulting string and appending to a list of x, y, and z values. > Is the grid uniform in the sense that all the x-intervals are the same > and all the y-intervals are the same? Unfortunately, the grid is not uniform. From the responses I have been getting thus far, it's looking like this is going to be far more complicated than I had hoped... Would it in principle be difficult to write a function similar to imshow that can take 3 arrays and plot z (in color, say) as a function of x and y? To me, it would seem that it would essentially be the same as the plot function, except that it takes an extra array... Mike |