[ncl-talk] limite the Y range with gsn_csm_y

Rashed Mahmood rashidcomsis at gmail.com
Fri Jun 29 09:03:56 MDT 2018


I think there is a typo:
res at trYminF and res at trYmaxF should be res at trYMinF and res at trYMaxF.

On Fri, Jun 29, 2018 at 7:31 AM, Francesco Trotta <
francesco.trotta4 at unibo.it> wrote:

> Dear NCL team,
>
> 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.
>
>
> bsectot = new(npuntifin, float)
> bsectot!0 = "points"
> bsectot&points = pp
> g = 0
> do j=0,npsez-1
> ptsXsec      := gc_latlon(psez(j,0), psez(j,1), psez(j,2), psez(j,3),
> NPTS(j), 2)
> latXsecUser  := ptsXsec at gclat
> lonXsecUser  := ptsXsec at gclon
> lonXsecUser  = where(lonXsecUser.gt.0, lonXsecUser-360, lonXsecUser)
> bsecUser := linint2_points_Wrap(b&lon,b&lat,b, False,lonXsecUser,
> latXsecUser, 2)
>
>         if (j.eq.0) then
> do p = g, g+NPTS(j)-1
>   bsectot(p) = (/bsecUser(p-g)/)
> end do
> g = g+NPTS(j)
> else
> do p = g, g+NPTS(j)-1-1
> bsectot(p) = (/bsecUser(p-g+1)/)
> end do
> g = g+NPTS(j)-1
> end if
> end do
>
> res at tiMainString = "Bathymetry along section 0"
> res at tiYAxisString = b at long_name+" ["+b at units+"]"
> res at xyLineThicknessF = 3.0
> res at xyLineColor = "Navy"
> res at trYReverse = True
> res at trYminF = 500
> res at trYmaxF = 1000
>
> plot = gsn_csm_y(wks,bsectot,res)
>
> But I have this warning: "trYminF is not a valid resource in /Along_sec.0_Bathymetryexp2nest75_nest01_xy
> at this time"
>
> How can I limit the Y axis range?
>
>
> Thank you in advance for your responce,
>
> Francesco Trotta​
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180629/19a085b6/attachment.html>


More information about the ncl-talk mailing list