<div dir="ltr"><div class="gmail_default" style="font-size:small">The problem is NCL doesn&#39;t know anything about the edges of your grid, so it smooths the values between each point.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You might look at the sfXCellBounds and sfYCellBounds resources.  If you can provide the edges of the polygons that surround each data point, then you should get a better contour plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/sf.shtml#sfXCellBounds">http://www.ncl.ucar.edu/Document/Graphics/Resources/sf.shtml#sfXCellBounds</a><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/sf.shtml#sfYCellBounds">http://www.ncl.ucar.edu/Document/Graphics/Resources/sf.shtml#sfYCellBounds</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><b><br></b></div>















</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 9:52 AM, jaein song <span dir="ltr">&lt;<a href="mailto:jaein_song@yonsei.ac.kr" target="_blank">jaein_song@yonsei.ac.kr</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">I&#39;ve been tried using 1-dimensional data with sfXArray and sfYArray.<div>and then, the result was like figure below.<br><img src="cid:ii_14c6637cd854441f" alt="본문 이미지 1" width="562" height="489"><br>I think, this is a result of automatically interpolated data.</div><div><br></div><div>how should I remove those polygons?</div><div>I want that the figure appears like figure of former e-mail with coordinate like this figure.</div><div><br></div><div>for this script, below was changed.</div><div><br></div><div><div>         do pi=0,np-1                                    ;DO LOOP #4 PIN-&gt;TH</div><div><br></div><div>                                hfp             = mod(pin(pi),nh)                       ;??? nh? nh-1? not sure if nh and nt start from 0 or 1</div><div>                                tfp             = (pin(pi)-hfp)/nh</div><div>                                ;hco(pi)                =h(hfp)</div><div>                                hco(pi)         = h(hfp)/1000</div><div>                                tco(pi)         = t(tfp)/86400*24</div><div>                                ;zup(pin(pi))   = zp(pi)</div><div>                        end do         </div></div><div><br></div><div><br></div><div><br></div><div><div>  res@sfXArray             = tco</div><div>  res@sfYArray             = hco</div><div>  res@trXMaxF              = 24</div><div>  res@trXMinF              = 0</div><div>  res@trYMaxF              =  15</div><div>  res@trYMinF              =0</div><div>  res@lbOrientation        = &quot;Vertical&quot;</div><div>  res@tiXAxisString        = &quot;time(hour)&quot;</div><div>  res@tiYAxisString        = &quot;height(m)&quot;</div><div>  res@tmXBLabelsOn        = True</div><div>  res@tmYLLabelsOn        = True</div><div>  plot = gsn_csm_contour(wks1,zp,res)</div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-03-30 0:44 GMT+09:00 jaein song <span dir="ltr">&lt;<a href="mailto:jaein_song@yonsei.ac.kr" target="_blank">jaein_song@yonsei.ac.kr</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hello, my name is Jaein Song and a graduate student of Yonsei University.<div>I want to draw a figure with irregular coordinate variables of x axis. but it doesn&#39;t work well.</div><div>the figure below is a output of the script (except the red box).</div><div>the numbers in red box(at x axis) came from array number (if z(n,m)-&gt; m appears)</div><div>but, I wish that these numbers represent the time (t of included script).</div><div>I think this problem appears because t is a irregular coordinate variable. but I don&#39;t know how should I do.</div><div><br></div><div>below is information about variable which i want to draw.</div><div><br></div><div>zup!0=&quot;h&quot;</div><div>zup!1=&quot;t&quot;</div><div>zup&amp;h=h</div><div>zup&amp;t=t</div><div><br></div><div><br></div><div>how should I do ?</div><div><br></div><div><br></div><div><br></div><div>I attach the original data file and the script.</div><div><br></div><div><img src="cid:ii_14c5a88f9200bedb" alt="본문 이미지 5" width="562" height="505"><br></div><div><br></div><div>below is the error message (Warning)</div><div><div>warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</div><div>warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</div><span><font color="#888888"><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><b>Jae In Song (Master&#39;s course)</b><div>Cloud Physics Lab</div><div>Department of Atmospheric Sciences, Yonsei University.</div><div><br></div><div>120-749</div><div>Science hall #530A, Yonsei-ro 50</div><div>Seodaemun-gu, Seoul, S.Korea</div><div><br></div><div>Lab: <a href="tel:%2B82-2-2123-7613" value="+82221237613" target="_blank">+82-2-2123-7613</a></div><div>Mobile: <a href="tel:%2B82-10-9045-9209" value="+821090459209" target="_blank">+82-10-9045-9209</a></div><div><br></div><div><br></div></div></div></div></div>
</font></span></div></div>
</div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><b>Jae In Song (Master&#39;s course)</b><div>Cloud Physics Lab</div><div>Department of Atmospheric Sciences, Yonsei University.</div><div><br></div><div>120-749</div><div>Science hall #530A, Yonsei-ro 50</div><div>Seodaemun-gu, Seoul, S.Korea</div><div><br></div><div>Lab: <a href="tel:%2B82-2-2123-7613" value="+82221237613" target="_blank">+82-2-2123-7613</a></div><div>Mobile: <a href="tel:%2B82-10-9045-9209" value="+821090459209" target="_blank">+82-10-9045-9209</a></div><div><br></div><div><br></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><b>Jae In Song (Master&#39;s course)</b><div>Cloud Physics Lab</div><div>Department of Atmospheric Sciences, Yonsei University.</div><div><br></div><div>120-749</div><div>Science hall #530A, Yonsei-ro 50</div><div>Seodaemun-gu, Seoul, S.Korea</div><div><br></div><div>Lab: <a href="tel:%2B82-2-2123-7613" value="+82221237613" target="_blank">+82-2-2123-7613</a></div><div>Mobile: <a href="tel:%2B82-10-9045-9209" value="+821090459209" target="_blank">+82-10-9045-9209</a></div><div><br></div><div><br></div></div></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>