[ncl-talk] Do not show significance level in a correlation map

Md. Jalal Uddin dmjalal90 at gmail.com
Fri Jan 5 06:15:31 MST 2024


Dear all,

I have tried to use the gsn_contour_shade function to show the significance
level as a shaded pattern where p value is less than 0.05 and 0.01.
However, the output map does not show the shaded areas (please see the
attached map).

Here are some codes:
r_sst  = escorc(ano_nino,ano_sstSON(lat|:,lon|:,time|:))        ;
ccr(lat,lon)
copy_VarCoords(ano_sstSON(0,:,:), r_sst)
r_sst at long_name = "Correlation: r_sst"

  p = rtest(r_sst,42,0)
  copy_VarCoords(r_sst, p)

opt                      = True
opt at gsnShadeHigh         = 17          ; stipple
opt at gsnShadeFillScaleF   = 0.5         ; add extra density
opt at gsnShadeFillDotSizeF = 0.002      ; make dots larger

  plot = gsn_csm_contour_map(wks,r_sst, res)  ; create plot

  plot2 = gsn_csm_contour(wks,p, res2)
  plot2 = gsn_contour_shade(plot2,0.01,0.05,opt)

  overlay (plot, plot2)

 draw(plot)
 frame(wks)

Please find the full code in the attached file.

Any suggestions would be appreciated.

-- 

*Regards,*

Dr. Jalal

*Postdoctoral Researcher,* Typhoon Research Center, Jeju National
University, South Korea

*PhD* in Atmospheric Physics and Atmospheric Environment, NUIST, China

*M.Sc.* in Applied Meteorology, NUIST, China

*B.Sc.* in Disaster Management, PSTU, Bangladesh

*Founder and Director* of Research Society

*Website*: https://researchsociety20.org/founder-and-director/

*E-mails*: founder-and-director at researchsociety20.org

              jalal at jejunu.ac.kr

              20205103002 at nuist.edu.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240105/0752ceef/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sst_SepNov_cor.png
Type: image/png
Size: 572694 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240105/0752ceef/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sst_corr.ncl
Type: application/octet-stream
Size: 4484 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240105/0752ceef/attachment-0001.obj>


More information about the ncl-talk mailing list