<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 "</span><span style="font-size:12.8px">it is not giving me the expected plot with multiple overlying orbital swath." 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><div><span style="font-size:12.8px">Adam</span></div><div><span style="font-size:12.8px"><br></span></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"><<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>></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'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"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>></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"><<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>></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"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> diri = "./" ; input directory<br>
fili = systemfunc("cd "+diri+" ; ls MT1SAPS*h5") ; 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 ("PDF","xx1")<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's := reassignment syntax<br>
<br>
urr := f->$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>
<<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>> wrote:<br>
> Dear NCL users,<br>
> I want to make a single plot for all satellite passes (15 swath per<br>
> day) data. the script and the plot am getting from this is as attached. for<br>
> testing purpose I made it with only two files, but still the plot is not<br>
> coming exactly what I want. Could you please help me to fix this issue. Is<br>
> there any simpler way to do this plot? Any help in this issue will be<br>
> appreciated.<br>
><br>
> Thanks in advance,<br>
> Ipsita<br>
><br>
</div></div>> _______________________________________________<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>
<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 class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div><span class="HOEnZb"><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 class="gmail_signature"><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">303-497-1726 </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>