<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To plot both plots in the same space, you need to use the "overlay" procedure.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">First, change the Plot_NPIX_FIX variable to be unique when you call gsn_csm_contour:</div><div class="gmail_default" style="">
<p style="font-size:small"><span><font face="monospace, monospace"> Plot_NPIX_FIX_1 = gsn_csm_contour(Wks_NPIX_FIX,<wbr>RF_NPIX_FIX,Res) ; keep Long in X axis</font></span></p>
<p style="font-size:small"><span><font face="monospace, monospace"> delete(RF_NPIX_FIX)</font></span></p>
<p style="font-size:small"><span><font face="monospace, monospace"> NSCAN = 2872</font></span></p>
<p style="font-size:small"><span><font face="monospace, monospace"> RF_NPIX_FIX = work(:,Fix_NSCAN-40:Fix_NSCAN+<wbr>40,Fix_NP) ; nlev X nscan</font></span></p>
<p style="font-size:small"><span><font face="monospace, monospace"> Plot_NPIX_FIX_2 = gsn_csm_contour(Wks_NPIX_FIX,<wbr>RF_NPIX_FIX,Res) ; keep Long in X axis</font></span></p><p style="font-size:small">Then overlay one plot on the other using "overlay":</p><p style="font-size:small"><font face="monospace, monospace"> overlay(</font><span style="font-family:monospace,monospace">Plot_NPIX_FIX_2</span><font face="monospace, monospace">,Plot_<wbr>NPIX_FIX_1) ; Plot_NPIX_FIX_1 will become part of Plot_NPIX_FIX_2<br> draw(</font><span style="font-family:monospace,monospace">Plot_NPIX_FIX_2) ; This draws both plots<br> frame(</span><span style="font-family:monospace,monospace">Wks_NPIX_FIX)</span></p><p style="font-size:small"><font face="arial, helvetica, sans-serif">It's important to note that when you do an overlay like this, the axes in the first plot (the "base" plot) is going to be used for the final result. If the second plot (the "overlay" plot) is not in the same X/Y space as the "base" plot, then part of your plot will be cut off. If this happens in your case, then you need to set one or more of the trXMinF, trXMaxF, trYMinF, trYMaxF resources to be large enough to accommodate both plots</font></p><p style="font-size:small">Please see example overlay_13.ncl which illustrates this:</p><p style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/overlay.shtml#ex13">http://www.ncl.ucar.edu/Applications/overlay.shtml#ex13</a><br></p><p style="font-size:small">--Mary</p><p style="font-size:small"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 21, 2016 at 10:14 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>thanks Dennis. </span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>I was trying to plot all the nearby pixels (2780/26 and 2781/26 and so on...) in only ONE plot to know the longitudinal extent of the thunderclouds along with their heights. What I am able to see presently is only one/individual cells not as a group of cells. </span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>for example in the TXT file, I have selected </span></div><div dir="ltr"><span> Rainrate NSCAN NPIX NLEVEL</span></div><div dir="ltr"> 34.97 2797 14 68</div><div dir="ltr"> 49.18 2803 28 68</div><div dir="ltr"> 30.78 2842 20 68</div><div dir="ltr"> 53.60 2846 19 68</div><div dir="ltr"> 45.39 2847 19 68</div><div dir="ltr"> 32.31 2849 22 68</div><div dir="ltr"><b> 32.62 2870 26 68</b></div><div dir="ltr"><b> 37.04 2871 26 68</b></div><div dir="ltr"><b> 74.36 2872 26 68</b></div><div dir="ltr"><b> 35.24 2873 26 68</b></div><div dir="ltr"><b> 39.35 2875 42 68</b></div><div dir="ltr"> 30.52 2903 44 68</div><div dir="ltr"></div><div dir="ltr"> 36.93 2911 46 68</div><div dir="ltr"><br></div><div dir="ltr">I want to plot all of these points in Bold together in one plot as they are a part of a group. </div><div dir="ltr"><br></div><div dir="ltr">thank you. </div><div><div class="h5"><div dir="ltr"><br></div><div dir="ltr"><span><br></span></div><div></div><div> </div><div><br></div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"> <div dir="ltr"><font size="2" face="Arial"> On Sunday, 21 August 2016 8:16 PM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></font></div> <br><br> <div><div><div><div dir="ltr">By default, 'gsn_csm_contour' draws and plots each frame.<br clear="none"> <br clear="none">The panel page:<br clear="none"> <a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/panel.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/panel.shtml</a><br clear="none"><br clear="none"><pre> Res@gsnDraw = False ; don't draw
Res@gsnFrame = False ; don't advance frame
</pre>...<br clear="none">One approach:<br clear="none"><br clear="none"> Plot = new( 2, "graphic)<br clear="none"> Plot(0) = gsn_csm_contour(Wks_NPIX_FIX,<wbr>RF_NPIX_FIX,Res) <br clear="none"> [snip]<br clear="none"> PLot(1) = gsn_csm_contour(Wks_NPIX_FIX,<wbr>RF_NPIX_FIX,Res) <br clear="none"><br clear="none">;*****************************<wbr>*******************<br clear="none"> resP = True ; modify the panel plot<br clear="none"> resP@gsnMaximize = True ; make large: ps, pdf, eps<br clear="none">; resP@gsnPanelMainString = "A common title" ; new resource added in NCL V6.4.0<br clear="none"> resP@txString = "A common title" ; use this for NCL V6.3.0 and earlier<br clear="none"> <br clear="none"> gsn_panel(wks,Plot,(/2,1/),<wbr>resP) ; vertical<br clear="none"> gsn_panel(wks,Plot,(/1,2/),<wbr>resP) ; horizontal<br clear="none">~<br clear="none"></div><div><br clear="none"><div>On Sun, Aug 21, 2016 at 7:55 AM, Geeta Geeta <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div dir="ltr"><span>I am plotting the orbital data (rain rate) from TRMM. In this data, lat and lon are itself 2 dim. </span></div><div dir="ltr"><span>Rainrate is a 3 dim variable and is varying as per nscan (data along the swath, 9248), npix (49), and nlevel (80).</span></div><div dir="ltr"><span> </span></div><div dir="ltr"><span>I have extracted all the points within a domain (5-20N/72-84E) which exceed a rain rate of 30mm/hr. </span></div><div dir="ltr"><span>I got a number of adjacent points where the rain rate is exceeding the above mentioned threshold (RF.txt20080402 file attached. 1st column is rain rate, 2nd column is NSCAN, 3rd column is NPIX and 4th column is NLEVEL.</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>I been able to get a plot of height vs longitudes (nscan) for a fixed point (say 2870/26 where 2870 is nscan and 26 is the npix for which rainrate is more than 30mm/hr..plot attached).</span></div><div dir="ltr"><span> </span></div><div dir="ltr"><span>Now I wish to add ht vs longitude plot for the adjacent point say 2871/26 too in the SAME plot. </span></div><div dir="ltr"><span>But two separate plots are created. </span>I dont know how to go about doing this. </div><div></div><div> Pls suggest. </div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></div></div></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>