[ncl-talk] Gap in Plot

Mary Haley haley at ucar.edu
Mon Feb 5 08:37:36 MST 2018


The warning message is telling you:

(0) gsn_add_cyclic: Warning: The range of your longitude data is not 360.
(0) You may want to set the gsnAddCyclic resource to False to avoid a
warning message from the spline function.

To fix this, set the following resource before you plot:

res at gsnAddCyclic = True

What this does is forces an extra point to be added in the longitude
dimension, where the first point is copied after the last point, so you
don't get that seam in the middle.

--Mary


On Sat, Feb 3, 2018 at 12:28 AM, sjd.marjani <sjd.marjani at ut.ac.ir> wrote:

> Hello
>
> I have a data file
>
> "historical_tos_CMCC-CMS_r1i1p1_193001-200512.nc"
>
> dimensions:
> time = 912 ;
> latitude = 180 ;
> longitude = 360 ;
>
> float tos(time, latitude, longitude)
>
> double latitude(latitude)
>
> double longitude(longitude)
>
> ==============================
>
> when I plot it,, it shows a gap in 80E ,without any Error or Warning .
>
> gsnAddCyclic is False in my script  and if i change it to True it shows me
> :
>
>
>
>
>
> *(0) gsn_add_cyclic: Warning: The range of your longitude data is not
> 360.(0) You may want to set the gsnAddCyclic resource to False to avoid
> a(0) warning message from the spline
> function.warning:_NhlCreateSplineCoordApprox: Attempt to create spline
> approximation for X axis failed: consider adjusting trXTensionF
> valuewarning:IrTransInitialize: error creating spline approximation for
> trXCoordPoints; defaulting to linear.*
>
> Do u know what should i do to have a complete plot??
>
> Thank You
>
>
>
> _______________________________________________
> 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/20180205/381923d8/attachment.html>


More information about the ncl-talk mailing list