[ncl-talk] polyg_29.ncl

Md. Jalal Uddin dmjalal90 at gmail.com
Mon Apr 8 19:33:53 MDT 2019


Thank you, sir. I solved my problem now.

On Tue, Apr 9, 2019 at 1:29 AM Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Jalal,
> As I stated in my April 2nd email:
> .. note that overlay members cannot be created using a *_map plotting
> function.
>
> Check to make sure that the members that are being overlaid were not
> created with gsn_csm_contour_map. See my snippet of coding from the Apr 2nd
> email.
> Adam
>
> On Fri, Apr 5, 2019 at 6:43 PM Md. Jalal Uddin <dmjalal90 at gmail.com>
> wrote:
>
>> Sir, I am getting the same figure with error messages.
>>
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>>
>> What can I do?
>>
>> Jalal
>>
>> On Wed, Apr 3, 2019 at 12:55 AM Adam Phillips <asphilli at ucar.edu> wrote:
>>
>>> Hi Jalal,
>>> Ah, I forgot about one thing: You have 3 color filled fields that you'd
>>> like to overlay, and if you overlay plot 3 over plot 1 all you will see is
>>> plot 3. As you are coloring all values below a value of 1 white, I would
>>> suggest setting all values less than 1 to @_FillValue:
>>> PRC = where(PRC.lt.1,PRC at _FillValue,PRC)
>>> Grid cells set to _FillValue are not color filled, so you will be able
>>> to see multiple plots overlaid on one another. However, note that if two or
>>> more of your arrays have values above 1 at the exact same grid point, you
>>> will only see the latest plot to be overlaid. You can always try setting
>>> semi-transparent colors as is shown in the RGBA section here:
>>> http://www.ncl.ucar.edu/Applications/rgbacolor.shtml , but assuming you
>>> have three distinct areas you should not need to worry about transparency.
>>>
>>> Hope that helps!
>>> Adam
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Apr 1, 2019 at 5:37 PM Md. Jalal Uddin <dmjalal90 at gmail.com>
>>> wrote:
>>>
>>>> Thank you, sir, for your kind help. I am getting the same figure for
>>>> both of without overlay and overlay. Please look at the attached figures
>>>> that did not add whole circles rainfall.
>>>> [image: without_overlay.png]
>>>> [image: overlay.png]
>>>>
>>>> On Tue, Apr 2, 2019 at 12:47 AM Adam Phillips <asphilli at ucar.edu>
>>>> wrote:
>>>>
>>>>> Hi Jalal,
>>>>> You can use the overlay procedure
>>>>> <http://www.ncl.ucar.edu/Document/Functions/Built-in/overlay.shtml>.
>>>>> But note that overlay members cannot be created using a *_map plotting
>>>>> function. So, for example, change this:
>>>>>
>>>>>   plot(nc) = gsn_csm_contour_map(wks,PRC,res)
>>>>> end do
>>>>> resP at gsnPanelMainString  = "Example: geolocation_circle, gc_inout:
>>>>> radius="+  sprintf("%4.1f", srad(nr))+"km"
>>>>> gsn_panel(wks,plot,(/1,2/),resP)
>>>>>
>>>>> to this:
>>>>>
>>>>> if (nc.eq.0) then
>>>>>    plot(nc) = gsn_csm_contour_map(wks,PRC,res)
>>>>> else
>>>>>    plot(nc) = gsn_csm_contour(wks,PRC,res)
>>>>>    overlay(plot(0),plot(nc))
>>>>> end if
>>>>> resP at gsnPanelMainString  = "Example: geolocation_circle, gc_inout:
>>>>> radius="+  sprintf("%4.1f", srad(nr))+"km"
>>>>> gsn_panel(wks,plot(0),(/1,1/),resP)      ; alternatively can just call
>>>>> draw(plot(0)) followed by frame(wks)
>>>>>
>>>>> Adam
>>>>>
>>>>> On Sat, Mar 30, 2019 at 8:12 PM Md. Jalal Uddin <dmjalal90 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> In example page, polyg_29 shows precipitation plot for 3 cyclones
>>>>>> centre separately. If I want to draw a precipitation plot for 3 cyclones
>>>>>> centre together not separately, what should I do?
>>>>>>
>>>>>> Best Regards,
>>>>>> Jalal
>>>>>> --
>>>>>> *Md. Jalal Uddin*
>>>>>> MSc in Applied Meteorology (English Language)
>>>>>> Nanjing University of Information, Science and Technology, China
>>>>>> B.Sc. in Disaster Management (Hons.)
>>>>>> Patuakhali Science and Technology University, Bangladesh.
>>>>>> Cell: +8613260859092, +8801792052662
>>>>>> Web: www.dmjalal90.weebly.com
>>>>>> Facebook: jalal.hossen.39
>>>>>> LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
>>>>>> Twitter: dmjalal90
>>>>>> Skype: dmjalal90
>>>>>> _______________________________________________
>>>>>> ncl-talk mailing list
>>>>>> ncl-talk at ucar.edu
>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>> http://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>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Md. Jalal Uddin*
>>>> MSc in Applied Meteorology (English Language)
>>>> Nanjing University of Information, Science and Technology, China
>>>> B.Sc. in Disaster Management (Hons.)
>>>> Patuakhali Science and Technology University, Bangladesh.
>>>> Cell: +8613260859092, +8801792052662
>>>> Web: www.dmjalal90.weebly.com
>>>> Facebook: jalal.hossen.39
>>>> LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
>>>> Twitter: dmjalal90
>>>> Skype: dmjalal90
>>>>
>>>
>>>
>>> --
>>> 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>
>>>
>>
>>
>> --
>> *Md. Jalal Uddin*
>> MSc in Applied Meteorology (English Language)
>> Nanjing University of Information, Science and Technology, China
>> B.Sc. in Disaster Management (Hons.)
>> Patuakhali Science and Technology University, Bangladesh.
>> Cell: +8613260859092, +8801792052662
>> Web: www.dmjalal90.weebly.com
>> Facebook: jalal.hossen.39
>> LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
>> Twitter: dmjalal90
>> Skype: dmjalal90
>>
>
>
> --
> 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>
>


-- 
*Md. Jalal Uddin*
MSc in Applied Meteorology (English Language)
Nanjing University of Information, Science and Technology, China
B.Sc. in Disaster Management (Hons.)
Patuakhali Science and Technology University, Bangladesh.
Cell: +8613260859092, +8801792052662
Web: www.dmjalal90.weebly.com
Facebook: jalal.hossen.39
LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
Twitter: dmjalal90
Skype: dmjalal90
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190409/509c0dc9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overlay.png
Type: image/png
Size: 137055 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190409/509c0dc9/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: without_overlay.png
Type: image/png
Size: 119293 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190409/509c0dc9/attachment-0003.png>


More information about the ncl-talk mailing list