<div dir="ltr"><div><div>Hi <br><br></div>I have also plotted the full swath, obviously it takes a lot of time<br><br></div><div>I have attached the full swath plot as well<br><br></div><div>Hope this helps <br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div style="text-align:left"><font size="2"><span style="font-family:times new roman,serif"><font size="2">R</font>egards<br></span></font></div><div style="text-align:left"><font face="verdana,sans-serif"><font size="2"><span style="font-family:times new roman,serif">-Krishna-</span></font></font><br></div></div></div></div>
<br><div class="gmail_quote">On Thu, Nov 19, 2015 at 4:59 PM, Krishna C <span dir="ltr">&lt;<a href="mailto:chandrakrishna.90@gmail.com" target="_blank">chandrakrishna.90@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi <br><br></div>I also had the same problem as you are facing. I found a binning example in ncl page<br><br></div>I have plotted BTs for some 3 overpass of MT for my domain of concern. <br><br></div>Please take a look if it is of any help<br><br></div>Cheers <br></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div style="text-align:left"><font size="2"><span style="font-family:times new roman,serif"><font size="2">R</font>egards<span class="HOEnZb"><font color="#888888"><br></font></span></span></font></div><span class="HOEnZb"><font color="#888888"><div style="text-align:left"><font face="verdana,sans-serif"><font size="2"><span style="font-family:times new roman,serif">-Krishna-</span></font></font><br></div></font></span></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Nov 19, 2015 at 4:32 PM, Ipsita Putatunda <span dir="ltr">&lt;<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br></div>  I have already attached the overlay plots which I tried earlier with the previous scripts. The modified script is giving individual 2 plots (if am using 2 files); the first 2 plots attached herewith (Mt2..).<br><br></div>I have tried to put a secondary resource  like &quot;res= True&quot; and &quot;res1=True&quot; and take &quot;res&quot; for the first plot and rest of the plots with &quot;res1&quot;, now am getting 2 plots, where 1st plot is with the first file (plotA say) and second plot is a overlay plot (plotA, plotB) but for plotB it is coming in black color.Please find the plots attached (last 2 plots Mt1...).<br><br></div>Any help in this issue wil be appreciated.<br><br></div>Thanks,<br></div>Ipsita<br><div><div><div><div><br></div></div></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 12:33 AM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ipsita,<div>First, a developer noted that when I stated earlier that <span style="font-size:12.8px">cnRasterSmoothingOn = True would slow things down that I was incorrect. That resource should not slow things down (that much). </span></div><div><span style="font-size:12.8px">I was thinking of cnSmoothingOn = True, which can slow things down.</span><br></div><div><br></div><div><span style="font-size:12.8px">So you are able to draw each swath individually (+correctly). I had you do that to make sure that you could draw each individually before overlaying. When you go to overlay them you state &quot;</span><span style="font-size:12.8px">it is not giving me the expected plot with multiple overlying orbital swath.&quot; Can you please send us a picture showing the overlay plot and tell us what is incorrect about it? </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">As always respond to ncl-talk and not to me personally.</span></div><span><font color="#888888"><div><span style="font-size:12.8px">Adam</span></div><div><span style="font-size:12.8px"><br></span></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 1:15 AM, Ipsita Putatunda <span dir="ltr">&lt;<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for your suggestions, I have modified my script as per Adam&#39;s suggestions though the script has speed up a bit, but it is giving two separate plots instead of overlaying plot. If I plot each file separately it is showing single orbital swath, but while overlaying it is not giving me the expected plot with multiple overlying orbital swath.<div>Any help in this issue will be appreciated.</div><div> </div><div>Thanks,</div><div>Ipsita</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 10:30 PM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ipsita,<div>I do not see anything amiss with your script. However, I would definitely comment out this line:</div><div>res@cnRasterSmoothingOn = True<br></div><div>As I believe that will really slow down your script.<br></div><div><br></div><div>If that does not fix the issue I would suggest the following:</div><div>1) set res@gsnDraw = True and res@gsnFrame = True.</div><div>2) Comment out the overlay(PLOT,plot), draw(PLOT) and frame(wks) lines. </div><div>3) Change the output format from pdf to png</div><div><br></div><div>Do you get each swath drawn on its own frame correctly?</div><div><br></div><div>As always, please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 2:57 AM, Ipsita Putatunda <span dir="ltr">&lt;<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks a lot for your suggestions. I have modified my script as per your suggestions, but instead of overlaying plot am getting a single plot, and it is taking a lot of time for only two files (for testing purpose I am doing with 2 files out of 14) not able to understand where am I making the mistake. The plot and the modified script is attached herewith.<br><br></div><div>Thanks,<br></div>Ipsita<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 14, 2015 at 12:50 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">   diri  = &quot;./&quot;           ; input directory<br>
   fili    = systemfunc(&quot;cd &quot;+diri+&quot; ; ls MT1SAPS*h5&quot;)   ; all desired files<br>
   print(fili)<br>
   nfili  = dimsizes(fili)<br>
<br>
   res = True                                             ; define once<br>
   res@gsnDraw           = False<br>
   res@gsnFrame         = False<br>
   res@gsnAddCyclic    = False<br>
<br>
   res1 = True<br>
       :<br>
   wks   = gsn_open_wks (&quot;PDF&quot;,&quot;xx1&quot;)<br>
<br>
   do nf=0,nfili-1                                               ;<br>
loop over each file<br>
         rh  =<br>
         if (nf.eq.0) then<br>
              PLOT = gsn_csm_contour_map (wks, rh, res)<br>
         else<br>
             plot      =  gsn_csm_contour(wks, rh, res)<br>
             overlay(PLOT, plot)<br>
         end if<br>
    end do           ; nf loop<br>
<br>
   draw(PLOT)<br>
   frame(wks)<br>
<br>
===============<br>
<br>
Why are you doing this<br>
<br>
 delete(fn)<br>
 delete(f)<br>
 delete(vnlon)<br>
 delete(ulon)<br>
 delete(vnlat)<br>
 delete(ulat)<br>
 delete(vnrr)<br>
 delete(urr)<br>
 delete(rr)<br>
 delete(dims)<br>
 delete(nlon)<br>
 delete(nlat)<br>
<br>
If the variables are the same size, they will overwrite the previous values.<br>
<br>
If they are not the same size:<br>
<br>
    delete( [/ fn, f, vnlon, ulon,......... /] )     delete multiple<br>
variable in one command<br>
<br>
or, use NCL&#39;s   := reassignment syntax<br>
<br>
     urr := f-&gt;$vnrr$   ; if urr exists; delete and  write with new values<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Reassignment" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Reassignment</a><br>
<br>
====<br>
<div><div><br>
<br>
<br>
<br>
<br>
<br>
<br>
On Thu, Nov 12, 2015 at 10:25 PM, Ipsita Putatunda<br>
&lt;<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>&gt; wrote:<br>
&gt; Dear NCL users,<br>
&gt;      I want to make a single plot for all satellite passes (15 swath per<br>
&gt; day) data. the script and the plot am getting from this is as attached. for<br>
&gt; testing purpose I made it with only two files, but still the plot is not<br>
&gt; coming exactly what I want. Could you please help me to fix this issue. Is<br>
&gt; there any simpler way to do this plot? Any help in this issue will be<br>
&gt; appreciated.<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt; Ipsita<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;<br>
</blockquote></div><br></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><span><font color="#888888"><div><br></div></font></span></div></div><span><font color="#888888"><span><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>