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

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 08 2010 - 10:09:09 MST

Hi Sebi,
If that's the case then you would need to set cnLevelSelectionMode =
"ExplicitLevels", and then set cnLevels = 95 (or .95, whichever you
need.) in your contour overlay resource list. That should do the trick...
Adam

On 03/05/2010 10:07 PM, Sabeerali(sebi) wrote:
> 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
> <mailto: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
> <mailto: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 <http://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

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 8 10:09:15 2010

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