[ncl-talk] spline error/warning
Marston Johnston
shejo284 at gmail.com
Sun May 24 10:58:56 MDT 2015
Hi Mary,
Apologies. I spent the day digging into the data.
The gsnAddCyclic = False didn’t work but as it turns out,
that was not the true cause of the problem. My NOAA18 MHS data
was expressed on a 180:-180 grid and
when I converted this to 0:360 the results had two lon points that were 180.
When I fixed this, the problem disappeared.
Appreciate the tips. My question was mainly answered,
which was that the plot NCL didn’t do anything crazy.
Thanks,
/M
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marston S. Johnston, PhD
Department of Earth Sciences
University of Gothenburg, Sweden
Email: marston.johnston at gu.se <mailto:marston.johnston at gu.se>
Phone: +46-31-7862859
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Only the fruitful thing is true!
> On 24 May 2015, at 18:21, Mary Haley <haley at ucar.edu> wrote:
>
> Did you try setting the gsnAddCyclic resource to False, as the error message suggested? It is True by default (in most cases).
>
> --Mary
>
>
> On Sat, May 23, 2015 at 3:45 AM, Marston Johnston <shejo284 at gmail.com <mailto:shejo284 at gmail.com>> wrote:
> Hi,
>
> I’m trying to plot some data using the contour plot function: gsn_csm_contour_map
> But I keep getting this annoying error/warning:
>
> gsn_add_cyclic: Warning: The range of your longitude coordinate array is at least 360.
> (0) You may want to set gsnAddCyclic to False to avoid a warning
> (0) message from the spline function.
> warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value
> warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear
>
> The plot looks good so I’m wondering if I need to do anything about this warning/error?
>
> Appreciate any advice on this,
>
> /M
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Marston S. Johnston, PhD
> Department of Earth Sciences
> University of Gothenburg, Sweden
> Email: marston.johnston at gu.se <mailto:marston.johnston at gu.se>
> Phone: +46-31-7862859 <tel:%2B46-31-7862859>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Only the fruitful thing is true!
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150524/293c6e3a/attachment.html
More information about the ncl-talk
mailing list