[ncl-talk] Gap in Plot
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.
On Sat, Feb 3, 2018 at 12:28 AM, sjd.marjani <sjd.marjani at ut.ac.ir> wrote:
> I have a data file
> 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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-talk