Re: How to plot 95% confidence level contour line over shaded plot..

From: Sabeerali(sebi) <sabeerl_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 05 2010 - 22:07:16 MST

Dear Debasish,

Thanks for your help...Overlaying contour on shaded plot is OK. ....But
actullay I want to overlay only one contour line over shaded plot, inside
to that contour line everything should be significant at 95% confidence
level....

Thanks again...

On 4 March 2010 19:03, <debasish@gi.alaska.edu> wrote:

> Dear Sebi,
>
> I guess the following examples will help you:
>
> conOncon_4.ncl, conOncon_8.ncl (
> http://www.ncl.ucar.edu/Applications/conOncon.shtml)
>
> Thanks
>
> Debasish
>
>
>
> Quoting "Sabeerali(sebi)" <sabeerl@gmail.com>:
>
> Dear ncl users
>>
>> I computed the correlation between to variables w(time) and
>> ssta(lat,lon,time) by using escorc function and made the shaded
>> plot.(ccr2)...Also I computed the probability...Now I want to overlay the
>> 95% confidence level contour line over the shaded plot.(only one black
>> contour line)...
>>
>> Any help would be appreciated...
>>
>>
>>
>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>>
>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>>
>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>>
>> begin
>>
>> in1=addfile("test.nc","r")
>>
>> w=in1->w ;only time
>>
>> ssta=in1->sst ; lat,lon,time
>>
>> ccr2=escorc(w,ssta)
>>
>> copy_VarAtts(w, ccr2)
>>
>> copy_VarCoords_1(ssta, ccr2)
>>
>> ;*******Compute significance*************************************
>>
>> siglevl=0.05
>>
>> Nx=59
>>
>> prob=rtest(ccr2,Nx,0)
>>
>> ;************Plotting option*****************************************
>>
>> wks=gsn_open_wks("eps","cor_TTindxWD_SO_sst_anom_signi")
>>
>> gsn_define_colormap(wks,"gui_default")
>>
>> res=True
>>
>> res@cnFillOn=True
>>
>> res@gsnSpreadColors=True
>>
>> res@cnLinesOn=False
>>
>> res@lbLabelAutoStride=True
>>
>> res@mpCenterLonF=180.0
>>
>> plot=gsn_csm_contour_map_ce(wks,ccr2,res)
>>
>> end
>>
>>
>>
>> **********************************
>> Sebi
>> Climate and Global Modeling Division
>> Indian Institute of Tropical Meteorology
>> Pashan, Pune, 411 008
>> ****************************************
>>
>>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>

-- 
**********************************
Sebi
Climate and Global Modeling Division
Indian Institute of Tropical Meteorology
Pashan, Pune, 411 008
****************************************

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 5 22:07:24 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 08 2010 - 12:07:42 MST