Re: gsn_csm_pres_hgt_vector

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 11 2012 - 13:39:24 MDT

Another thing you might try is to use gsn_csm_pres_hgt to create the pressure/height plot, and gsn_csm_vector for the vector plot, and then "overlay" to overlay the vectors on the pressure/height plot.

This allows you more control over the individual plots, and what order they are drawn in. Also, you can draw the individual plots for debug purposes, to make sure they look okay and that their axes are in the same data space.

Please see the examples on this page:

http://www.ncl.ucar.edu/Applications/overlay.shtml

In particular the first example is the best one to look at.

--Mary

On Sep 10, 2012, at 12:51 PM, Adam Phillips wrote:

> It sounds like you are having draw order issues, although I do not understand why the wind field would not draw with your first example coding set as opposed to your second. Have you tried implementing any of the draw order resources?:
> http://www.ncl.ucar.edu/Applications/draworder.shtml
> Specifically, cnFIllDrawOrder and vcVectorDrawOrder?
>
> Those two resources should take care of any masking of the vector field by the filled contour field as in your last example.
>
> If the draw order resources do not help, please send a simple easy-to-read version of your script to ncl-talk so that the community can take a look.. Adam
>
> On 9/7/12 8:13 PM, nlcheng wrote:
>> when i use plot = gsn_csm_pres_hgt_vector(wks,SO2({50000:100000},75:105),U({50000:100000},75:105),V({50000:100000},75:105),res) ,it turns out SO2 isoline only without the windfield!
>>
>> When i change the plot to plot = gsn_csm_pres_hgt_vector(wks,speed({50000:100000},75:105),U({50000:100000},75:105),V({50000:100000},75:105),res) ,it turns out the speed isoline and the windfield!
>>
>> When i change the plot to plot = gsn_csm_pres_hgt_vector(wks,speed({50000:100000},75:105),U({50000:100000},75:105),V({50000:100000},75:105),res) and use the
>> res@cnFillOn = True
>> res@gsnSpreadColors = True
>> it turns out the speedexpressed by the colors covered the windfield!
>>
>> I want use the plot = gsn_csm_pres_hgt_vector(wks,SO2({50000:100000},75:105),U({50000:100000},75:105),V({50000:100000},75:105),res) and make SO2 expressed by the colors and wind filed,how could i write the commad ,hope for your help!
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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 Tue Sep 11 13:39:38 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:41 MDT