Re: CurlyVectors and gsn_csm_vector_scalar_map

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 11 2012 - 15:09:53 MDT

Hi Josh,
I have found and fixed the problem you were having with the little 'x's showing up in the curly vector plot. You narrowed the problem down pretty well. I found that the problem only occurs when you are coloring the vectors using a scalar field. Note that unlike other vector glyph types, curly vectors behave more like streamlines in that the color can change along the length of a single glyph. At the low level, each time the color changes a new call to the line drawing routine is required. Occasionally this was leading to calls to the line routine with a single point. In this case the line routine draws the little 'x' presumably to ensure that something is visible. The fix was to ensure that each call to the line routine contains a minimum of 2 points. This fix will be part of 6.1.0 but let us know if you would like to get a test version to use now.
 -dave

On Jul 2, 2012, at 10:39 AM, Josh Brown wrote:

> Hi Mary,
>
> Thanks for your help. I no longer have that data file unfortunately, but here is another data file that can be used with that script to reproduce the issue:
> https://www.dropbox.com/s/an5dxjh4u6aeqe8/GFS.grib2
>
> And here is the eps that it generates:
> https://www.dropbox.com/s/le11ik00nootjdl/test4.eps
>
> Thanks again,
>
> Josh Brown
>
> On 2012-07-02, at 10:59 AM, Mary Haley wrote:
>
>> Hi Josh,
>>
>> Thanks so much for providing images and a script. This really helps. This is the first time I've ever seen something like those little x's.
>>
>> Would it be possible for you to provide the GRIB file as well? If the file is too large, or you don't want to provide the whole file,
>> then you can just write the part that I need to a new NetCDF file:
>>
>> fin = addfile("GFS.grib2","r")
>> u = a->UGRD_P0_L103_GLL0(:,:)
>> v = a->VGRD_P0_L103_GLL0(:,:)
>> t = 1.9438*sqrt((u*u)+(v*v))
>>
>> fout = addfile("GFS_partial.grib2","c")
>> fout->t = t
>> fout->u = u
>> fout->v = v
>>
>> You can use our ftp to upload the file, if you can't put it on your https page:
>>
>> http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP
>>
>> --Mary
>>
>> On Jul 1, 2012, at 8:03 PM, Josh Brown wrote:
>>
>>> Hi NCL community,
>>>
>>> I am having an issue with using CurlyVectors on a dense gsn_csm_vector_scalar_map plot. Some of the vectors seem to have x marks drawn over the start or end of the vector. Images of this can be found here:
>>> https://www.dropbox.com/s/xn49ekwp5npmwcp/bug1.png
>>> https://www.dropbox.com/s/oeo4hhg7t9fwpg5/bug2.png
>>>
>>> The script is online here:
>>> https://www.dropbox.com/s/o5ae4ye1829lnh9/ncl.txt
>>>
>>> The issue does not seem to occur when using gsn_csm_vector_map or using vcGlyphStyle = "LineArrow" or using a plot that is larger/less dense. I have tested using different sources of data and the outcome seems to be the same. I'm using NCL v6.1.0-beta on Ubuntu.
>>>
>>> Any tips would be greatly appreciated.
>>>
>>> Thanks,
>>>
>>> Josh Brown
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 11 15:10:01 2012

This archive was generated by hypermail 2.1.8 : Thu Jul 12 2012 - 10:16:50 MDT