[ncl-talk] gsn_csm_streamline_scalar_map segmentation fault

Mary Haley haley at ucar.edu
Thu Jul 6 09:58:58 MDT 2017


Hi Meina,

One thing that might cause gsn_csm_streamline_scalar_map to seg fault is if
you are trying to plot really large data arrays.

It's always important to look at your data when NCL isn't plotting it
correctly, and we recommend using "printVarSummary" for this.

How big are U and V? Please insert a "printVarSummary" command and let us
know what it reports:

printVarSummary(U)

Also, it would help to see how you are calling
gsn_csm_streamline_scalar_map, and what resources you're setting.

I verified that a small test code works just fine, which I've attached
here, along with the data file.

--Mary


On Wed, Jul 5, 2017 at 6:14 PM, Meina Wang <mnawang at ucdavis.edu> wrote:

> Dear All,
>
> I wanted to use the function "gsn_csm_streamline_scalar_map" to plot wind
> streamline using U and V, with color-coded scaler field sqrt(U^2+V^2),
> but got "segmentation fault".  I then switched to function "gsn_csm
> _vector_scalar_map_ce" to do wind barb plot instead using the same data
> and it worked well.  I have previously used the streamline function and had
> no problem at all, so I'm wondering if any of you recently ran into the
> same "segmentation fault" issue as I did.  Is it the internal code of the
> function crashed?  Thank you.
>
> P.S. I'm using the NCL version 6.4.0. and ran on Linux machine with gcc (
> Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
>
> Best,
> Meina
>
> --
> Meina Wang
> PhD candidate in Atmospheric Science
> Department of Land, Air and Water Resources
> University of California, Davis
> Davis, CA 95616
>
> _______________________________________________
> 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/20170706/ccbabe4e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream.png
Type: image/png
Size: 212389 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170706/ccbabe4e/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream_11.ncl
Type: application/octet-stream
Size: 718 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170706/ccbabe4e/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp_out.nc
Type: application/x-netcdf
Size: 247080 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170706/ccbabe4e/attachment-0001.nc 


More information about the ncl-talk mailing list