<div dir="ltr"><div><div><div>Thank you very much Denis,<br></div>You did exactly what i fighting with.<br><br></div><div>Now, I looking how to calculate mean over selected days. <br></div><div>First, I am trying to fill unavailable level with missing value. <br></div><div>So that each day will have the same number of level. <br></div><div>In this case I can easily perform my analysis.<br></div><div><br></div>Best regards,<br><br></div>Appo<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-29 21:29 GMT+01:00 Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>See attached<br><br></div><div>For example:<br></div><div><br>%> cd /Users/appo/Data/IGRA2<br><br><br>drwxr-xr-x 4 2200 136 Apr 29 13:43 RAOB/<br>-rw-r--r--@ 1 2200 3008 Apr 29 12:06 igra2-country-list.txt<br>-rw-r--r--@ 1 2200 245729 Apr 29 12:07 igra2-station-list.txt<br>-rw-r--r-- 1 2200 8489 Apr 29 14:21 rdIGRA2.ncl<br><br></div><div>The RAOB directory could have many files but for test just one.<br><br>-rw-rw-r--@ 1 2200 12956441 Apr 27 16:42 GBM00064500-data.txt<br></div><div><br></div>%> ncl rdIGRA2.ncl<br><br></div><div>[The actual print out looks nicer. ]<br><br></div><div><br>0) <br>(0) ------------- nr=0 id=GBM00064500 lat=0.45 lon=9.4167 ------------<br>(0) yyyy=1973 mm=1 dd=1 hh=12 rt=9999 nlev=6<br>(0) <br>(0) l1 l2 etim pres pf zgph zf temp tf rhum dpdp wspd wdir<br>(0) 1 0 -9999 85000 -9999 -9999.0 -9999.0 -9999.0 4 60.0<br>(1) 1 0 -9999 70000 -9999 -9999.0 -9999.0 -9999.0 14 60.0<br>(2) 1 0 -9999 50000 -9999 -9999.0 -9999.0 -9999.0 16 80.0<br>(3) 1 0 -9999 40000 -9999 -9999.0 -9999.0 -9999.0 14 80.0<br>(4) 1 0 -9999 30000 -9999 -9999.0 -9999.0 -9999.0 8 70.0<br>(5) 1 0 -9999 25000 -9999 -9999.0 -9999.0 -9999.0 5 60.0<br>(0) <br>(0) ------------- nr=1 id=GBM00064500 lat=0.45 lon=9.4167 ------------<br>(0) yyyy=1973 mm=1 dd=2 hh=12 rt=9999 nlev=10<br>(0) <br>(0) l1 l2 etim pres pf zgph zf temp tf rhum dpdp wspd wdir<br>(0) 1 0 -9999 85000 -9999 -9999.0 -9999.0 -9999.0 3 100.0<br>(1) 1 0 -9999 70000 -9999 -9999.0 -9999.0 -9999.0 13 60.0<br>(2) 1 0 -9999 50000 -9999 -9999.0 -9999.0 -9999.0 14 80.0<br>(3) 1 0 -9999 40000 -9999 -9999.0 -9999.0 -9999.0 9 50.0<br>(4) 1 0 -9999 30000 -9999 -9999.0 -9999.0 -9999.0 3 0.0<br>(5) 1 0 -9999 25000 -9999 -9999.0 -9999.0 -9999.0 7 60.0<br>(6) 1 0 -9999 20000 -9999 -9999.0 -9999.0 -9999.0 10 80.0<br>(7) 1 0 -9999 15000 -9999 -9999.0 -9999.0 -9999.0 18 100.0<br>(8) 1 0 -9999 10000 -9999 -9999.0 -9999.0 -9999.0 17 90.0<br>(9) 1 0 -9999 7000 -9999 -9999.0 -9999.0 -9999.0 22 70.0<br><br></div>[SNIP]<br><br>0) <br>(0) ------------- nr=12141 id=GBM00064500 lat=0.45 lon=9.4167 ------------<br>(0) yyyy=2017 mm=4 dd=26 hh=12 rt=1046 nlev=74<br>(0) <br>(0) l1 l2 etim pres pf zgph zf temp tf rhum dpdp wspd wdir<br>(0) 2 1 -9999 101100 B -9999 30.2 B -9999.0 10.0 5 180.0<br>(1) 1 0 -9999 100000 110 B 27.8 B -9999.0 10.0 5 150.0<br>(2) 1 0 -9999 92500 796 B 23.4 B -9999.0 10.0 9 125.0<br>(3) 1 0 -9999 85000 1530 B 20.0 B -9999.0 13.0 7 150.0<br>(4) 1 0 -9999 70000 3173 B 9.6 B -9999.0 6.0 15 80.0<br>(5) 1 0 -9999 50000 5900 B -6.1 B -9999.0 3.9 5 65.0<br>(6) 1 0 -9999 40000 7610 B -15.7 B -9999.0 6.0 7 75.0<br>(7) 1 0 -9999 30000 9730 B -30.5 B -9999.0 18.0 8 40.0<br>(8) 1 0 -9999 25000 10990 B -40.9 B -9999.0 13.0 7 25.0<br>(9) 1 0 -9999 20000 12470 B -53.7 B -9999.0 31.0 9 70.0<br>(10) 1 0 -9999 15000 14250 B -68.7 B -9999.0 27.0 16 75.0<br>(11) 2 2 -9999 10100 -9999 -77.5 B -9999.0 24.0 7 30.0<br>(12) 1 0 -9999 10000 16630 B -77.5 B -9999.0 24.0 6 35.0<br>(13) 2 0 -9999 9320 -9999 -75.5 B -9999.0 25.0 -9999 -9999.0<br>(14) 2 0 -9999 9180 -9999 -9999.0 -9999.0 -9999.0 12 310.0<br>(15) 2 0 -9999 8520 -9999 -9999.0 -9999.0 -9999.0 18 280.0<br>(16) 2 2 -9999 8500 -9999 -78.3 A -9999.0 24.0 18 275.0<br>(17) 2 0 -9999 7970 -9999 -9999.0 -9999.0 -9999.0 11 260.0<br>(18) 2 0 -9999 7440 -9999 -76.1 A -9999.0 25.0 -9999 -9999.0<br>(19) 2 0 -9999 7230 -9999 -9999.0 -9999.0 -9999.0 10 320.0<br>(20) 1 0 -9999 7000 18660 B -78.7 A -9999.0 24.0 8 325.0<br>(21) 2 0 -9999 6740 -9999 -80.1 A -9999.0 24.0 -9999 -9999.0<br>(22) 2 0 -9999 6500 -9999 -9999.0 -9999.0 -9999.0 3 235.0<br>(23) 2 0 -9999 6150 -9999 -9999.0 -9999.0 -9999.0 7 190.0<br>(24) 2 0 -9999 5890 -9999 -70.7 A -9999.0 26.0 -9999 -9999.0<br>(25) 2 0 -9999 5820 -9999 -9999.0 -9999.0 -9999.0 12 240.0<br>(26) 2 0 -9999 5060 -9999 -9999.0 -9999.0 -9999.0 28 240.0<br>(27) 1 0 -9999 5000 20630 B -70.9 A -9999.0 26.0 28 240.0<br>(28) 2 0 -9999 4870 -9999 -70.7 A -9999.0 26.0 -9999 -9999.0<br>(29) 2 0 -9999 4700 -9999 -9999.0 -9999.0 -9999.0 10 280.0<br>(30) 2 0 -9999 4610 -9999 -62.3 A -9999.0 29.0 -9999 -9999.0<br>(31) 2 0 -9999 4410 -9999 -63.9 A -9999.0 28.0 -9999 -9999.0<br>(32) 2 0 -9999 4230 -9999 -9999.0 -9999.0 -9999.0 22 305.0<br>(33) 2 0 -9999 3520 -9999 -59.9 A -9999.0 30.0 -9999 -9999.0<br>(34) 2 0 -9999 3160 -9999 -54.7 A -9999.0 31.0 -9999 -9999.0<br>(35) 1 0 -9999 3000 23810 B -55.1 A -9999.0 31.0 18 265.0<br>(36) 2 0 -9999 2740 -9999 -56.7 A -9999.0 30.0 -9999 -9999.0<br>(37) 2 0 -9999 2580 -9999 -53.3 A -9999.0 32.0 -9999 -9999.0<br>(38) 2 0 -9999 2240 -9999 -9999.0 -9999.0 -9999.0 15 230.0<br>(39) 2 0 -9999 2200 -9999 -55.7 A -9999.0 31.0 -9999 -9999.0<br>(40) 2 0 -9999 2040 -9999 -51.5 A -9999.0 32.0 -9999 -9999.0<br>(41) 1 0 -9999 2000 26400 B -51.3 A -9999.0 32.0 3 225.0<br>(42) 2 0 -9999 1970 -9999 -9999.0 -9999.0 -9999.0 0 0.0<br>(43) 2 0 -9999 1800 -9999 -50.7 A -9999.0 32.0 9 65.0<br>(44) 3 0 -9999 -9999 600 -9999.0 -9999.0 -9999.0 5 95.0<br>(45) 3 0 -9999 -9999 900 -9999.0 -9999.0 -9999.0 6 120.0<br>(46) 3 0 -9999 -9999 1500 -9999.0 -9999.0 -9999.0 7 150.0<br>(47) 3 0 -9999 -9999 2100 -9999.0 -9999.0 -9999.0 10 130.0<br>(48) 3 0 -9999 -9999 3300 -9999.0 -9999.0 -9999.0 15 80.0<br>(49) 3 0 -9999 -9999 3900 -9999.0 -9999.0 -9999.0 13 65.0<br>(50) 3 0 -9999 -9999 4200 -9999.0 -9999.0 -9999.0 12 60.0<br>(51) 3 0 -9999 -9999 4500 -9999.0 -9999.0 -9999.0 10 65.0<br>(52) 3 0 -9999 -9999 5100 -9999.0 -9999.0 -9999.0 8 70.0<br>(53) 3 0 -9999 -9999 6900 -9999.0 -9999.0 -9999.0 2 90.0<br>(54) 3 0 -9999 -9999 8700 -9999.0 -9999.0 -9999.0 13 50.0<br>(55) 3 0 -9999 -9999 11400 -9999.0 -9999.0 -9999.0 6 45.0<br>(56) 3 0 -9999 -9999 14400 -9999.0 -9999.0 -9999.0 17 70.0<br>(57) 3 0 -9999 -9999 15600 -9999.0 -9999.0 -9999.0 15 125.0<br>(58) 3 0 -9999 -9999 16200 -9999.0 -9999.0 -9999.0 2 100.0<br>(59) 3 0 -9999 -9999 16500 -9999.0 -9999.0 -9999.0 7 25.0<br>(60) 3 0 -9999 -9999 17100 -9999.0 -9999.0 -9999.0 12 310.0<br>(61) 3 0 -9999 -9999 17400 -9999.0 -9999.0 -9999.0 18 280.0<br><br><br><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Apr 28, 2017 at 1:49 AM, Appo derbetini <span dir="ltr"><<a href="mailto:appopson4@gmail.com" target="_blank">appopson4@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div>I am trying to read IGRA 2 Sounding Data Files.<br></div><div>For example i want to read this file <a href="ftp://ftp.ncdc.noaa.gov/pub/data/igra/data/data-por/GBM00064500-data.txt.zip" target="_blank">ftp://ftp.ncdc.noaa.gov/p<wbr>ub/data/igra/data/data-por/GBM<wbr>00064500-data.txt.zip</a> <br></div>Description of the data format are available here <a href="ftp://ftp.ncdc.noaa.gov/pub/data/igra/data/igra2-data-format.txt" target="_blank">ftp://ftp.ncdc.noaa.gov/pub/da<wbr>ta/igra/data/igra2-data-format<wbr>.txt</a><br><br></div>But I am have a lot of difficulties to do it. <br><br></div>There is someone with a script to do it?<br><br></div>Any help is welcome.<br><br></div>Thank you very much in advance.<span class="m_-1627531614704218006HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_-1627531614704218006HOEnZb"><font color="#888888">Appo<br><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></font></span></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>