Re: Panel plot of precipitation and trmm observations [Was: ncl-talk Digest, Vol 112, Issue 35]

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 22 2013 - 17:41:29 MDT

Oops, wrong link for panel page. It should be:

http://www.ncl.ucar.edu/Applications/panel.shtml#ex9

--Mary

On Mar 22, 2013, at 5:35 PM, Mary Haley wrote:

> Hi Neerju,
>
> I'm not sure what you mean by "comparison" plot.
>
> If you just mean that you need to draw a WRF plot and a TRMM plot on the same page using panels, then you can see WRF examples at:
>
> http://www.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/NCL_examples.htm
>
> Once you have both the WRF and TRMM plots, you can panel them using gsn_panel.
>
> See example panel_9.ncl at:
>
> http://www.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/NCL_examples.htm
>
> if your plots are of different sizes.
>
>
> Please respond back to ncl-talk if you have further questions about this.
>
> Thanks,
>
> --Mary
>
> On Mar 21, 2013, at 10:54 PM, Neerju Shrestha wrote:
>
>> Hi Mary,
>> Tks for reply. Sorry for not being specific in my previous request but i m looking for the comparison plot between wrf output and TRMM.
>>
>> Hope to hear from you soon.
>>
>> Tks & rgds
>>
>> Neerju
>>
>> Sent from my iPad
>>
>> On 22 Mar, 2013, at 4:48 AM, "Mary Haley" <haley@ucar.edu> wrote:
>>
>>> Please see:
>>>
>>> http://www.ncl.ucar.edu/Applications/HiResPrc.shtml
>>>
>>> --Mary
>>>
>>> On Mar 21, 2013, at 5:22 AM, Neerju Shrestha wrote:
>>>
>>>> Hi dear all, I need to draw panel with wrf(precipitation) output and trmm observations Would someone provide me a script doing it, please?
>>>>
>>>> tks & rgds
>>>>
>>>> lily
>>>>
>>>>> From: ncl-talk-request@ucar.edu
>>>>> Subject: ncl-talk Digest, Vol 112, Issue 35
>>>>> To: ncl-talk@ucar.edu
>>>>> Date: Wed, 20 Mar 2013 19:56:12 -0600
>>>>>
>>>>> Send ncl-talk mailing list submissions to
>>>>> ncl-talk@ucar.edu
>>>>>
>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>> or, via email, send a message with subject or body 'help' to
>>>>> ncl-talk-request@ucar.edu
>>>>>
>>>>> You can reach the person managing the list at
>>>>> ncl-talk-owner@ucar.edu
>>>>>
>>>>> When replying, please edit your Subject line so it is more specific
>>>>> than "Re: Contents of ncl-talk digest..."
>>>>>
>>>>>
>>>>> Today's Topics:
>>>>>
>>>>> 1. Re: multiplot for different aspect ratio (juki juki)
>>>>> 2. grid-cell specific percentiles: sorting without missing
>>>>> values to find percentile (Marc Pace Marcella)
>>>>> 3. Plot 0 polyline in Panel plot (David Adams)
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>>
>>>>> Message: 1
>>>>> Date: Wed, 20 Mar 2013 18:37:09 -0700 (PDT)
>>>>> From: juki juki <juky_emc2@yahoo.com>
>>>>> Subject: Re: multiplot for different aspect ratio
>>>>> To: Adam Phillips <asphilli@ucar.edu>, "ncl-talk@ucar.edu"
>>>>> <ncl-talk@ucar.edu>
>>>>> Message-ID:
>>>>> <1363829829.70862.YahooMailNeo@web162806.mail.bf1.yahoo.com>
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>> Hi Adam !
>>>>>
>>>>> Thanks for reply. I tried this opition (resP@gsnPanelScalePlotIndex?= 1)
>>>>>
>>>>> It overcome such overlapping problem between, but the white space between Plot(0) and Plot(1) or between ?Plot(2) and Plot(3) is not the same as those between ?Plot(1)?and Plot(2) in which the former is larger than the latter. How to make the white space between all plots to be the same/uniform ??
>>>>>
>>>>> Thanks again for help
>>>>> juokey
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ________________________________
>>>>> From: Adam Phillips <asphilli@ucar.edu>
>>>>> To: ncl-talk@ucar.edu
>>>>> Sent: Thursday, March 21, 2013 2:17 AM
>>>>> Subject: Re: multiplot for different aspect ratio
>>>>>
>>>>>
>>>>> Hi Joueky,
>>>>> gsn_panel was not set up to specifically allow panels of different
>>>>> sizes. In your case, I see 2 possible solutions:
>>>>> 1) Tell NCL to use the size of plot(1) as the panel reference size.
>>>>> See example #24 here:
>>>>> http://www.ncl.ucar.edu/Applications/panel.shtml#ex24
>>>>> set resP@gsnPanelScalePlotIndex = 1
>>>>>
>>>>> The issue with this approach is that there may be more white space
>>>>> in the Y-direction between some of your plots. You can try
>>>>> decreasing this by setting resP@gsnPanelYWhiteSpacePercent = 0.1 See example #6 here:
>>>>> http://www.ncl.ucar.edu/Applications/panel.shtml#ex6
>>>>> Note though that you will not be able to get rid of all the white
>>>>> space using this method.
>>>>>
>>>>> 2) You can individually panel the plots yourself by specifying vpYF,
>>>>> vpXF, vpWidthF, and vpHeightF. See example #9 here:
>>>>> http://www.ncl.ucar.edu/Applications/panel.shtml#ex9
>>>>> This is more time-consuming, but you can adjust the spacing of the
>>>>> plots as you would like.
>>>>>
>>>>> Hope that helps. If not, please reply to ncl-talk.
>>>>> Adam
>>>>>
>>>>>
>>>>> On 03/20/2013 08:37 AM, juki juki wrote:
>>>>>
>>>>> Hi all ncl users;
>>>>>>
>>>>>>
>>>>>> I am making multiplot from individual plot with different aspect ratio. In simple, as example 5 plots with the aspect ratio as follow:
>>>>>>
>>>>>>
>>>>>> plot = new(5,graphic)
>>>>>>
>>>>>>
>>>>>>
>>>>>> plot(0)--> vpHeightF ? ? = 0.15
>>>>>> plot(1)--> vpHeightF ? ? = 0.25
>>>>>>
>>>>>> plot(2)--> vpHeightF ? ? = 0.15
>>>>>>
>>>>>> plot(3)--> vpHeightF ? ? = 0.25
>>>>>>
>>>>>> plot(4)--> vpHeightF ? ? = 0.15
>>>>>>
>>>>>>
>>>>>>
>>>>>> ?resP ? ? ? ? ? ? ? ? ? ? = True
>>>>>>
>>>>>> gsn_panel(wks,plot,(/5,1/),resP) ? ? ? ? ? ? ? ; now draw as one plot
>>>>>>
>>>>>>
>>>>>>
>>>>>> PROBLEM: some portion of bottom of Plot 1 overlap with Plot 2, and plot 3 overlap with plot 4. How ?to overcome such problem ? Thanks again for help.
>>>>>>
>>>>>>
>>>>>> joueky
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>> --
>>>>> ______________________________________________________________
>>>>> Adam Phillips asphilli@ucar.edu NCAR/Climate and Global Dynamics Division (303) 497-1726
>>>>> 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
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20130320/8898339b/attachment.html
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 2
>>>>> Date: Thu, 21 Mar 2013 01:43:13 +0000
>>>>> From: Marc Pace Marcella <marcpace@MIT.EDU>
>>>>> Subject: grid-cell specific percentiles: sorting without
>>>>> missing values to find percentile
>>>>> To: "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>
>>>>> Message-ID:
>>>>> <63EAC7E7FD0EAB469D881A6498BDFA6BAE3AC6@OC11EXPO32.exchange.mit.edu>
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I am trying to find different percentiles of occurrence (90th, 75th, 25th, etc) of a certain RCM output variable in a time, lat, lon netcdf file. I realize that the options qsort and dim_pqsort_n do not support ignoring missing values.
>>>>>
>>>>> For a 1D array I am able to use the inz=ind(.not.ismissing(AOD)) command and then the sort_AOD_nz=AOD_nz(inz) to remove all values which are of fill_value, but I am getting tripped up with the added time and 2D grid. Below is the command I am using to mask any AOD events that are under 0.1 and replacing with fill_value:
>>>>>
>>>>> ncl> AOD_ALL_nz=where(AOD_all_sum .gt. 0.1, AOD_all_sum, AOD_all_sum@_FillValue) ;AOD_ALL_nz(time, lat, lon)
>>>>>
>>>>> ncl> AOD_sorted_values=dim_pqsort_n(AOD_ALL_nz_sorted,2,0) ; yields the sorted array increasing in time but with missing_values at the beginning of file for each grid-cell---id like to remove these so they dont count to "skewing" the percentiles to be lower than they actually should be
>>>>>
>>>>>
>>>>>> From here I am unable to figure out how to remove those values which are fill_value when sorting to then find the corresponding percentiles. Essentially I would like to follow a similar approach of the 1D or find the grid-cell specific percentiles some other way.
>>>>>
>>>>> I tried searching the list serve but to no avail. Does anyone have an idea of how to figure out these percentiles (i.e. neglecting events below a certain value) using the sort function or another work-around?
>>>>>
>>>>> Thanks for any help!
>>>>>
>>>>> Marc
>>>>>
>>>>>
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20130321/d5744bb7/attachment.html
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 3
>>>>> Date: Wed, 20 Mar 2013 19:56:07 -0600
>>>>> From: David Adams <dave.k.adams@gmail.com>
>>>>> Subject: Plot 0 polyline in Panel plot
>>>>> To: ncl-talk@ucar.edu
>>>>> Message-ID:
>>>>> <CADxrcdHV9TxVsvb=H9UZ95u+5-6rMu9kuomPKDbEC3beWanN=A@mail.gmail.com>
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>> Hi All,
>>>>> I am having trouble plotting a 0 line in
>>>>> each of the 3 plots on my panel plot.
>>>>> It not clear which polyline resource I use.
>>>>> Can anyone help me resolve this?
>>>>>
>>>>> thanks,
>>>>> Dave
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20130320/003897fc/attachment.html
>>>>> -------------- next part --------------
>>>>> A non-text attachment was scrubbed...
>>>>> Name: Figure_4.pdf
>>>>> Type: application/pdf
>>>>> Size: 855928 bytes
>>>>> Desc: not available
>>>>> Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20130320/003897fc/attachment.pdf
>>>>> -------------- next part --------------
>>>>> A non-text attachment was scrubbed...
>>>>> Name: figure_4.ncl
>>>>> Type: application/octet-stream
>>>>> Size: 6756 bytes
>>>>> Desc: not available
>>>>> Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20130320/003897fc/attachment.obj
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> ncl-talk@ucar.edu
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>>
>>>>> End of ncl-talk Digest, Vol 112, Issue 35
>>>>> *****************************************
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 22 17:43:18 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT