[ncl-talk] Help Needed for Significance Level Plot

Atul Saini atulsainimail at gmail.com
Thu Nov 26 04:28:53 MST 2020


Dear Dr. Phillips,
This is great, thank you so much!
I will definitely explain the specifics related to the issue in future
posts.

Regards,

*                                   Mob. No. +91-8130662361 /
+91-9868636507*
*                                   https://atulsaini9.github.io/web/
<https://atulsaini9.github.io/web/>*



On Wed, Nov 25, 2020 at 8:31 AM Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Atul,
> If you could better describe the issue you are having in future postings
> it would be helpful, and would encourage more folks to take a look at your
> script. Thank you for sending an easy-to-run script. Running your script, I
> see the following issues:
> 1 - Within your double do loop you need to check for missing values:
>   do j=0,nlat-1
>     do i=0,nlon-1
>       if (.not.ismissing(pval(j,i))) then    <----- Required
>          if (pval(j,i).lt.siglvl) then
>            sig(j,i) = 1.
>         else
>            sig(j,i) = 0.
>         end if
>        end if
>      end do
>   end do
>
> Note that you can use the following where statement to do the exact same
> operation:
> sig = where(pval.lt.siglvl,1,0)
>
> 2 - Change res at cnrasterFill=True  to   res at cnFillMode = "RasterFill"
> 3 - You were setting all colors to be filled to transparent. Change this:
> res at cnFillColors = (/"transparent","transparent"/)
> to this:
> res at cnFillColors = (/"blue","transparent"/)
>
> I have attached the script. If you have any further issues please respond
> to ncl-talk.
> Adam
>
> On Sun, Nov 22, 2020 at 11:13 PM Atul Saini via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi NCL,
>>            Please Help.
>>
>> Herewith this mail I attached datafiles of two different periods and the
>> script.
>> Please help me to plot the p-value < 0.5 on the map with shades.
>> I have tried it using the attached data and script file.
>> But it is not working.
>> Your guidance to solve the issue is very important.
>>
>> Regards,
>>
>> *                                   Mob. No. +91-8130662361 /
>> +91-9868636507*
>> *
>> https://www.researchgate.net/profile/Atul_Saini3
>> <https://www.researchgate.net/profile/Atul_Saini3>*
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201126/253da076/attachment.html>


More information about the ncl-talk mailing list