[ncl-talk] Averaging multiple Sounding Data

Lyndz olagueralyndonmark429 at gmail.com
Wed Mar 25 21:38:10 MDT 2020


Dear NCL-experts,

*[Problem] *
I want to get the average of two sounding data and plot on a skew-T plot.

My problem is that these two files have different pressure levels.
Is there a way to bin this data for, say, pressure level with intervals of
50 or 100? then get the average data that falls in each bin.
I am not sure if this is the best way to do this.


*[What I have so far]*
Attached are the input files and sample script for plotting the sounding
data.

I'll appreciate any help on how to do this in NCL.

Sincerely,
Lyndz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200326/85a6bc4b/attachment.html>
-------------- next part --------------
  968.0    381   -0.3  -16.3     29   1.11     55      1  275.4  278.7  275.6
  963.0    422   -0.5  -16.5     29   1.10     57      1  275.6  278.9  275.8
  956.0    479   -1.1  -17.1     29   1.05     59      1  275.6  278.7  275.8
  940.1    610   -2.5  -17.0     32   1.08     65      2  275.4  278.7  275.6
  925.0    736   -3.9  -16.9     36   1.11    275      3  275.3  278.6  275.5
  904.2    914   -5.5  -17.4     39   1.09    310     10  275.5  278.8  275.7
  869.6   1219   -8.1  -18.2     44   1.05    300     16  275.8  279.0  276.0
  850.0   1397   -9.7  -18.7     48   1.03    300     16  276.0  279.1  276.1
  835.9   1524  -10.9  -19.0     51   1.03    280     17  276.0  279.1  276.2
  803.0   1829  -13.8  -19.7     61   1.01    280     17  276.1  279.1  276.3
  780.0   2050  -15.9  -20.2     69   0.99    280     20  276.2  279.2  276.3
  772.0   2127  -16.1  -20.6     68   0.97    280     21  276.8  279.7  276.9
  771.3   2134  -16.1  -20.6     68   0.96    280     21  276.8  279.7  277.0
  740.5   2438  -17.2  -22.8     62   0.83    315     25  278.9  281.5  279.1
  710.8   2743  -18.2  -25.0     55   0.71    315     30  281.0  283.2  281.1
  704.0   2815  -18.5  -25.5     54   0.69    318     34  281.5  283.7  281.6
  700.0   2857  -18.7  -25.7     54   0.68    320     36  281.8  283.9  281.9
  682.2   3048  -19.9  -27.5     51   0.59    320     39  282.5  284.4  282.6
  654.7   3353  -21.8  -30.5     45   0.47    320     27  283.7  285.2  283.8
  647.0   3441  -22.3  -31.3     44   0.44    323     27  284.1  285.5  284.2
  628.1   3658  -23.9  -32.2     47   0.41    330     28  284.6  286.0  284.7
  622.0   3730  -24.5  -32.5     47   0.40    330     28  284.8  286.1  284.9
  602.4   3962  -26.4  -35.3     43   0.32    330     27  285.2  286.3  285.3
  601.0   3979  -26.5  -35.5     42   0.31    330     27  285.3  286.3  285.3
  585.0   4174  -28.3  -36.3     46   0.29    330     31  285.4  286.4  285.4
  579.0   4248  -28.5  -36.5     46   0.29    330     33  286.0  287.0  286.0
  577.5   4267  -28.4  -36.7     45   0.29    330     33  286.3  287.2  286.3
  574.0   4310  -28.3  -37.3     42   0.27    331     32  286.9  287.9  287.0
  553.4   4572  -29.4  -42.5     27   0.16    340     29  288.6  289.2  288.6
  549.0   4629  -29.7  -43.7     24   0.15    339     30  288.9  289.5  289.0
  530.1   4877  -31.7  -44.2     28   0.14    335     37  289.4  289.9  289.4
  500.0   5290  -35.1  -45.1     35   0.14    340     36  290.2  290.7  290.2
  461.0   5851  -39.5  -47.5     42   0.11    337     37  291.5  291.9  291.5
  444.6   6096  -41.0  -49.3     40   0.10    335     38  292.7  293.0  292.7
  416.0   6547  -43.7  -52.7     36   0.07    332     35  294.8  295.1  294.8
  412.0   6612  -43.9  -52.9     36   0.07    331     35  295.4  295.6  295.4
  404.0   6744  -44.7  -53.7     36   0.06    330     34  296.0  296.2  296.0
  400.0   6810  -45.1  -54.1     36   0.06    330     34  296.3  296.5  296.3
  388.1   7010  -46.4  -55.0     37   0.06    330     38  297.2  297.4  297.2
  365.0   7416  -48.9  -56.9     39   0.05    333     41  299.1  299.3  299.1
  361.0   7488  -48.9  -56.9     39   0.05    334     42  300.0  300.2  300.0
  353.8   7620  -49.8  -57.0     42   0.05    335     43  300.6  300.8  300.6
  351.0   7672  -50.1  -57.1     43   0.05    336     44  300.8  301.0  300.8
  342.0   7841  -51.1  -59.1     38   0.04    339     47  301.7  301.9  301.7
  337.6   7925  -51.8  -59.6     38   0.04    340     48  301.9  302.1  301.9
  311.0   8452  -55.9  -62.9     41   0.03    340     47  303.3  303.4  303.3
  301.0   8659  -57.3  -64.3     41   0.02    340     47  304.2  304.3  304.2
  300.0   8680  -57.3  -64.3     41   0.02    340     47  304.5  304.6  304.5
  297.0   8744  -57.5  -64.5     40   0.02    339     48  305.1  305.2  305.1
  294.0   8808  -57.9  -64.9     40   0.02    339     49  305.4  305.5  305.4
  278.7   9144  -60.2  -67.2     39   0.02    335     53  306.8  306.9  306.8
  278.0   9160  -60.3  -67.3     39   0.02    335     55  306.8  306.9  306.9
  276.0   9205  -60.5  -67.5     39   0.02    335     55  307.2  307.3  307.2
  271.0   9320  -59.1  -65.1     46   0.02    334     56  310.8  310.9  310.8
  270.0   9343  -59.1  -65.1     46   0.02    334     56  311.2  311.2  311.2
  265.0   9461  -59.3  -66.3     40   0.02    333     57  312.5  312.6  312.5
  250.0   9830  -55.9  -63.9     36   0.03    330     59  322.8  323.0  322.8
  244.0   9985  -55.3  -64.3     32   0.03    330     58  326.0  326.1  326.0
  240.0  10090  -55.5  -64.5     32   0.03    330     57  327.2  327.3  327.2
  226.0  10475  -54.5  -64.5     28   0.03    330     54  334.4  334.6  334.4
  222.0  10589  -54.7  -64.7     28   0.03    330     54  335.8  335.9  335.8
  219.3  10668  -54.5  -65.2     25   0.03    330     53  337.4  337.5  337.4
  209.1  10973  -53.6  -67.1     18   0.02    325     51  343.4  343.5  343.4
  204.0  11132  -53.1  -68.1     14   0.02    328     51  346.6  346.6  346.6
  200.0  11260  -53.3  -68.3     14   0.02    330     51  348.2  348.3  348.2
  192.0  11522  -53.7  -69.7     12   0.02    327     55  351.6  351.7  351.6
  188.0  11657  -53.5  -70.5     11   0.02    326     57  354.1  354.2  354.1
  181.0  11900  -54.1  -71.1     11   0.01    323     61  357.0  357.1  357.0
  173.0  12192  -53.2  -71.6      9   0.01    320     65  363.1  363.2  363.2
  164.0  12534  -52.1  -72.1      7   0.01    323     66  370.5  370.6  370.5
  157.3  12802  -52.4  -73.1      6   0.01    325     66  374.4  374.5  374.4
  155.0  12898  -52.5  -73.5      6   0.01    322     66  375.9  375.9  375.9
  154.0  12940  -52.3  -74.3      5   0.01    320     66  376.9  377.0  376.9
  153.0  12982  -52.5  -74.5      5   0.01    319     65  377.3  377.3  377.3
  150.1  13106  -51.7  -74.7      5   0.01    315     65  380.7  380.7  380.7
  150.0  13110  -51.7  -74.7      5   0.01    320     68  380.8  380.8  380.8
  145.0  13331  -50.7  -74.7      4   0.01    321     68  386.2  386.3  386.2
  130.3  14021  -52.5  -78.2      3   0.01    325     69  395.0  395.1  395.0
  121.0  14502  -53.7  -80.7      2   0.00    319     65  401.2  401.3  401.2
  120.0  14556  -53.5  -80.5      2   0.01    318     65  402.6  402.6  402.6
  116.0  14774  -54.3  -81.3      2   0.00    316     63  405.0  405.0  405.0
  115.0  14829  -54.1  -82.1      2   0.00    315     63  406.4  406.4  406.4
  114.0  14885  -54.1  -82.1      2   0.00    314     63  407.4  407.4  407.4
  112.0  14999  -53.9  -80.9      2   0.01    313     62  409.8  409.9  409.8
  107.9  15240  -54.2  -81.9      2   0.00    310     60  413.6  413.6  413.6
  100.0  15726  -54.9  -83.9      2   0.00                421.4  421.4  421.4
   99.7  15745  -54.9  -83.9      2   0.00    310     72  421.7  421.7  421.7
   84.9  16764  -57.1  -85.4      2   0.00    310     71  437.0  437.1  437.1
   80.1  17136  -57.9  -85.9      2   0.00    308     72  442.8  442.8  442.8
   70.1  17983  -55.9  -83.9      2   0.01    305     74  464.3  464.3  464.3
   70.0  17990  -55.9  -83.9      2   0.01    310     80  464.4  464.5  464.4
   66.8  18288  -55.4  -83.4      2   0.01    310     81  471.8  471.8  471.8
   63.8  18581  -54.9  -82.9      2   0.01    310     72  479.1  479.2  479.1
   63.7  18593  -55.0  -82.9      2   0.01    310     72  479.3  479.3  479.3
   49.6  20166  -61.3  -87.3      2   0.00    299     73  499.7  499.8  499.8
   47.8  20395  -61.1  -87.1      2   0.00    297     74  505.5  505.6  505.5
   45.3  20726  -61.4  -86.7      2   0.00    295     74  512.7  512.7  512.7
   44.0  20909  -61.5  -86.5      2   0.01    298     77  516.7  516.7  516.7
   43.6  20966  -61.3  -85.3      3   0.01    299     78  518.5  518.5  518.5
   42.4  21139  -61.1  -87.1      2   0.00    302     81  523.1  523.2  523.1
   41.1  21336  -61.6  -87.2      2   0.00    305     84  526.6  526.7  526.6
   39.4  21593  -62.3  -87.3      2   0.00    305     81  531.2  531.2  531.2
   37.8  21849  -61.9  -86.9      2   0.01    305     78  538.5  538.6  538.5
   37.2  21946  -62.1  -87.1      2   0.01    305     77  540.4  540.5  540.4
   36.7  22031  -62.3  -87.3      2   0.01    305     83  542.1  542.1  542.1
   34.8  22360  -61.5                         305    106  552.5         552.5
   33.9  22523  -61.1                                     557.7         557.7
-------------- next part --------------
  953.0    381    6.6   -8.4     33   2.14    245      9  283.6  290.0  284.0 
  945.0    445    6.2  -10.8     28   1.78    242     11  283.9  289.3  284.2
  925.0    606    4.8  -11.2     30   1.77    235     16  284.2  289.5  284.5
  924.5    610    4.8  -11.2     30   1.76    235     16  284.2  289.5  284.5
  890.5    914    1.9  -12.3     34   1.68    280     10  284.3  289.4  284.6
  857.7   1219   -1.0  -13.4     38   1.59    290     13  284.3  289.2  284.6
  850.0   1292   -1.7  -13.7     39   1.57    290     14  284.4  289.1  284.6
  792.6   1829   -6.5  -15.2     50   1.48    280     21  285.0  289.5  285.3
  761.8   2134   -9.2  -16.1     57   1.44    290     25  285.4  289.8  285.6
  732.2   2438  -11.8  -17.0     66   1.39    290     31  285.6  289.9  285.9
  703.7   2743  -14.5  -17.9     76   1.34    305     32  285.9  290.1  286.2
  702.0   2762  -14.7  -17.9     77   1.34    307     33  285.9  290.1  286.2
  700.0   2783  -14.9  -18.2     76   1.31    310     35  286.0  290.0  286.2
  695.0   2838  -15.1  -18.7     74   1.26    310     35  286.3  290.2  286.5
  689.0   2904  -14.9  -19.2     70   1.22    311     36  287.2  291.1  287.5
  632.0   3558  -18.1  -24.1     59   0.87    314     40  290.8  293.6  290.9
  623.7   3658  -18.5  -24.1     61   0.88    315     41  291.4  294.3  291.6
  602.0   3924  -19.5  -24.0     67   0.92    319     57  293.2  296.2  293.4
  598.9   3962  -19.8  -24.3     67   0.90    320     59  293.4  296.3  293.5
  574.7   4267  -21.8  -26.4     66   0.77    315     60  294.5  297.0  294.6
  551.5   4572  -23.8  -28.6     64   0.66    310     59  295.6  297.8  295.7
  529.2   4877  -25.8  -30.8     63   0.56    320     59  296.7  298.6  296.8
  524.0   4949  -26.3  -31.3     63   0.54    321     59  296.9  298.7  297.0
  507.5   5182  -27.5  -32.5     63   0.50    325     60  298.1  299.9  298.2
  500.0   5290  -28.1  -33.0     63   0.48    320     61  298.7  300.4  298.8
  498.0   5319  -28.3  -33.2     63   0.47    319     61  298.8  300.4  298.9
  486.5   5486  -29.4  -34.6     60   0.42    315     64  299.5  300.9  299.6
  463.0   5839  -31.7  -37.7     55   0.32    318     69  300.9  302.0  300.9
  454.0   5977  -32.7  -37.7     61   0.33    319     71  301.3  302.5  301.4
  449.0   6055  -33.3  -39.3     55   0.28    320     72  301.5  302.5  301.6
  446.4   6096  -33.7  -39.0     58   0.29    320     73  301.5  302.6  301.6
  445.0   6118  -33.9  -38.9     61   0.30    320     73  301.5  302.6  301.6
  408.9   6706  -37.1  -43.6     50   0.20    320     75  304.8  305.5  304.8
  400.0   6860  -37.9  -44.9     48   0.18    325     80  305.6  306.3  305.7
  391.3   7010  -39.2  -46.2     47   0.16    325     80  305.9  306.4  305.9
  378.0   7247  -41.3  -48.3     47   0.13    325     81  306.1  306.6  306.2
  369.0   7409  -42.7  -49.7     46   0.11    325     82  306.4  306.8  306.4
  360.0   7575  -44.1  -51.1     46   0.10    325     83  306.7  307.1  306.7
  357.6   7620  -44.4  -51.4     45   0.09    325     83  306.8  307.2  306.9
  347.0   7821  -45.9  -52.9     45   0.08    325     88  307.5  307.8  307.5
  341.6   7925  -46.9  -53.9     45   0.07    325     90  307.6  307.8  307.6
  336.0   8034  -47.9  -54.9     44   0.07    325     90  307.6  307.9  307.6
  329.0   8172  -48.9  -55.9     44   0.06    325     89  308.1  308.3  308.1
  326.1   8230  -49.5  -56.5     44   0.06    325     89  308.1  308.3  308.1
  312.0   8518  -52.3  -59.3     43   0.04    325     90  308.1  308.2  308.1
  300.0   8770  -54.5  -61.5     42   0.03    325     91  308.4  308.6  308.4
  296.0   8856  -55.3  -61.3     47   0.03    325     91  308.5  308.6  308.5
  290.0   8987  -56.5  -63.5     41   0.03    325     92  308.6  308.7  308.6
  282.9   9144  -57.5  -64.1     43   0.02    325     92  309.3  309.4  309.3
  258.0   9724  -61.3  -66.3     51   0.02    325     94  312.0  312.1  312.0
  257.0   9748  -61.5  -66.5     51   0.02    325     94  312.0  312.1  312.0
  253.0   9846  -61.5  -66.5     51   0.02    325     95  313.4  313.5  313.4
  252.0   9870  -61.3  -66.3     51   0.02    325     95  314.1  314.2  314.1
  250.0   9920  -61.3  -66.3     51   0.02    325     95  314.8  314.9  314.8
  249.0   9945  -61.3  -66.3     51   0.02    325     95  315.1  315.2  315.1
  244.5  10058  -61.5  -66.5     51   0.02    325     95  316.4  316.5  316.5
  241.0  10147  -61.7  -66.7     51   0.02    325     93  317.5  317.6  317.5
  230.0  10436  -62.1  -68.1     44   0.02    325     85  321.2  321.3  321.2
  221.6  10668  -60.9  -67.5     41   0.02    325     79  326.5  326.6  326.5
  211.1  10973  -59.2  -66.6     38   0.02    320     81  333.7  333.8  333.7
  203.0  11216  -57.9  -65.9     35   0.03    320     69  339.5  339.6  339.5
  200.0  11310  -57.7  -65.7     35   0.03    320     64  341.2  341.4  341.2
  198.0  11374  -57.5  -65.5     35   0.03    319     64  342.5  342.7  342.5
  191.6  11582  -57.1  -66.0     31   0.03    315     63  346.4  346.5  346.4
  191.0  11601  -57.1  -66.1     31   0.03    315     63  346.7  346.9  346.7
  174.0  12190  -58.5  -71.5     17   0.01    312     68  353.8  353.8  353.8
  165.8  12497  -57.6  -71.6     15   0.01    310     70  360.1  360.2  360.1
  150.0  13130  -55.9  -71.9     12   0.02    310     75  373.6  373.6  373.6
  122.0  14440  -57.1  -76.1      7   0.01    304     69  394.1  394.1  394.1
  119.0  14598  -57.3  -76.3      7   0.01    303     68  396.5  396.6  396.5
  115.0  14814  -57.1  -77.1      6   0.01    302     67  400.8  400.9  400.8
  112.0  14981  -57.5                         301     66  403.1         403.1
  110.0  15095  -57.3                         301     66  405.6         405.6
  107.5  15240  -57.7                         300     65  407.4         407.4
  104.0  15448  -58.3                                     410.2         410.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_skewt.ncl
Type: application/octet-stream
Size: 1236 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200326/85a6bc4b/attachment.obj>


More information about the ncl-talk mailing list