[ncl-talk] Writing Skew-T Data to csv File

Mary Haley haley at ucar.edu
Wed Apr 6 15:44:38 MDT 2016


Michelle,

I think the issue is that you are trying to write float data using "%s".
Try changing

 write_table("test.csv", "a", data, "%s") ;fill in data
to:

write_table("test.csv", "a", data, "%g") ;fill in data

--Mary




On Mon, Apr 4, 2016 at 9:16 PM, Michelle Serino <mmserino at tamu.edu> wrote:

> Hi all,
>
> With the attached script and RUC data (
> https://www.dropbox.com/s/926ue7ad7vngnhc/ruc2anl_130_20090605_2100_000.grb2?dl=0),
> I am plotting a skew-T, and I would like to save that data to a csv file.
> When I run the script, I get
>
> (0) location=(41.147,-104.801)  grid=(41.1275,-104.777)
>
> (0) ====== Contents of 'test.csv' ======
>
> Pressure(hPa) Height(km) Temperature(C) Dew Point(C) Wind Speed(m/s) Wind
> Direction(deg)
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> ?
>
> (0) ========================================
>
> or something similar.  I feel that I am close to getting this, but the way
> I am looping through the data is what is confusing me.  I appreciate the
> help.
>
> Thank you,
>
> Michelle
>
> Michelle M. Serino
> M.S. Candidate
> Texas A&M University
> Atmospheric Sciences Dept.
> Eller O&M, Suite 1017
> College Station, TX 77843
> (484) 769-0949
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160406/8a538db2/attachment.html 


More information about the ncl-talk mailing list