<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- P { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">Dear NCL team,</p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">I'm trying to constrain the Y axis range with resource trYminF and trYmaxF. The plot type is gsn_csm_y and gsn_csm_contour. </p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><br>
</p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"></p>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">bsectot = new(npuntifin, float)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">bsectot!0 = "points"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">bsectot&points = pp</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">g = 0 </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">do j=0,npsez-1</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>ptsXsec := gc_latlon(psez(j,0), psez(j,1), psez(j,2), psez(j,3), NPTS(j), 2) </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>latXsecUser := ptsXsec@gclat </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>lonXsecUser := ptsXsec@gclon</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>lonXsecUser = where(lonXsecUser.gt.0, lonXsecUser-360, lonXsecUser)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>bsecUser := linint2_points_Wrap(b&lon,b&lat,b, False,lonXsecUser, latXsecUser, 2) </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"> if (j.eq.0) then </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>do p = g, g+NPTS(j)-1</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"> <span style="white-space: pre;">
</span>bsectot(p) = (/bsecUser(p-g)/)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>end do</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>g = g+NPTS(j)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>else </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>do p = g, g+NPTS(j)-1-1 </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>bsectot(p) = (/bsecUser(p-g+1)/)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>end do</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>g = g+NPTS(j)-1</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span>end if<span style="white-space: pre;">
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">end do</div>
<br style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"></p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"></p>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@tiMainString = "Bathymetry along section 0"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@tiYAxisString = b@long_name+" ["+b@units+"]"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@xyLineThicknessF = 3.0</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@xyLineColor = "Navy"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@trYReverse = True</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@trYminF = 500</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">res@trYmaxF = 1000</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="white-space: pre;"></span> </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">plot = gsn_csm_y(wks,bsectot,res)</div>
<br style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"></p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">But I have
this warning: "</span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">trYminF is not a valid resource in /Along_sec.0_Bathymetryexp2nest75_nest01_xy
at this time"</span><br>
</p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">How can I
limit the Y axis range?</span></p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;"><br>
</span></p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">Thank you
in advance for your responce,</span></p>
<p style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">Francesco
Trotta</span></p>
<p><br>
</p>
</body>
</html>