<div dir="ltr">I can well imagine this script doesn't work for you. What exactly are you trying to do? Based on the example you cited, are you after 11 columns of markers -- one for each year -- where each column contains 365 markers denoting ozone measurements?<br><div class="gmail_extra"><br></div><div class="gmail_extra">If you are able to share your data, I can maybe help you get closer to what you want. If too big to email, then it can be uploaded via ftp:<br><br><pre>ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a>
anonymous
<use your email address for the password>
cd incoming
put ...
put ...
.
.
.
quit
</pre>
<p>
<font color="red">Note that for security reasons, you cannot list the
contents of this directory, and neither can we. We need to know
the <i>exact</i> names of the files in order to retrieve them.</font>
</p><br><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 18, 2015 at 9:13 AM, Xi Chang <span dir="ltr"><<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Dear NCL,<br><br></div>I have ozone data with array dimension O3[obs,value], where obs is year of observation from 2000-2010 and each year has 365 ozone data, i.e., O3[11x365].<br></div><div>I'd like to create scatter plot like in example example 29 here <a href="http://ncl.ucar.edu/Applications/Scripts/xy_29.ncl" target="_blank">http://ncl.ucar.edu/Applications/Scripts/xy_29.ncl</a> . However it always produced errors and failed since that example is very difficult to adjust for my case.<br><br></div><div>I made something like this for plotting, but it is failed. could you help me to figure this out:<br><br>;========<br><br> wks = gsn_open_wks("x11","xy") <br> gsn_define_colormap(wks,"default")<br> <br> res = True<br> res@gsnMaximize = True <br> res@vpHeightF = 0.5 <br> res@vpWidthF = 0.75 <br> res@vpXF = 0.15 <br> res@tiXAxisString = "x" <br> res@tiYAxisString = "y" <br> res@tiMainString = "sos" <br> res@gsnDraw = False<br> res@gsnFrame = False<br> res@xyMarkLineMode = "markers"<br> res@xyMarker = 16<br> res@xyMarkerColor = "Background" <br><br><br> year=ispan(2000,2010,1)<br> ntim=dimsizes(year)<br><br> res@trXMinF = year(0)-1 <br> res@trXMaxF = year(ntim-1)+1 <br><br>;=======<br><br>do n=0,364 <br> <br> plot = gsn_csm_xy (wks,year,O3(n,:),res) ; create plot frame ork<br><br>do i=0,ntim-1 <br> xmarker = year(i)<br> ymarker = y(i)<br> <br> if (i.gt.0) then <br> if (year(i).gt.OldYear) then<br> MarkerCol = MarkerCol+1<br> end if<br> OldYear = year(i)<br> end if<br> <br> gsres@gsMarkerColor = MarkerCol<br> gsres@gsMarkerIndex = 16<br><br> plot@$unique_string("dum")$ = gsn_add_polymarker(wks,plot,xmarker,ymarker,gsres)<br> end do<br><br> draw(plot)<br> frame(wks)<br><br>end do<br></div><div>end<br></div></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div>