[ncl-talk] Writing Skew-T Data to csv File
Michelle Serino
mmserino at tamu.edu
Fri Apr 8 14:41:22 MDT 2016
Hi Mary,
Thanks for the advice. With your suggestion, I get output that looks like
this:
(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)
100
125
150
175
200
225
250
275
300
325
350
375
400
425
450
475
500
525
550
575
600
625
650
675
700
725
750
775
800
(0) ========================================
So, the pressure data get written, but the rest of the data do not. Any
more help would be much appreciated!
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
On Wed, Apr 6, 2016 at 4:44 PM, Mary Haley <haley at ucar.edu> wrote:
> 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/20160408/cb667cf6/attachment.html
More information about the ncl-talk
mailing list