Re: Writing multiple variables of data to an ASCII file

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 18 2013 - 08:53:17 MST

Hi Brian,

You didn't say what kind of problem you were having, but I recommend not using asciiwrite if you want to write a mix of data. I recommend "write_table":

Please see our "output ASCII" examples page:

In particular, look at examples write_asc_2.ncl and write_asc_4.ncl, which use "write_table".


On Nov 14, 2013, at 2:43 PM, brianjs <> wrote:

> Good Afternoon.
> I am attempting to write WRF data to an ASCII file. The data is the u, v wind components and wind magnitude, all which are a function of latitude, longitude, and height. For lat/lon, there is 122X122 points at 14 defined vertical levels for these three variables.
> I am attempting a loop which would produce an ASCII file for each 3-hr time interval or output of the WRF model data (hence why I kept the procedure for writing the ASCII table in the time loop), but I have been struggling to make this work. I imagine sub-scripting would be important in this case. I have attached my code for reference.
> Any advice regarding how to do this would be greatly appreciated!
> Brian Squitieri
> Graduate Research Assistant
> Department of Geological and Atmospheric Sciences
> Iowa State University
> <regridWRF.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Nov 18 08:53:25 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 09:36:32 MST