<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can do this using techniques that have been shown on this list recently, and a little creativity. All you really need are a couple of loops and a "write()" command. I have attached a script that does this. This script writes data for each longitude in one column of the output file, and each latitude in one row. The&nbsp;longitude or latitude is shown at the start of&nbsp;each column or row (respectively). All values are separated with single spaces.<div><br></div><div>If you want latitudes in columns and longitudes in rows (as shown in your example file), you will need to change x, y, lat and lon where needed in the script. If you want more spaces or other characters between the values, you can also revise the script to do that.</div><div><br></div><div>Matthias<br><div><br></div><div></div></div></body></html>