[ncl-talk] help

Dennis Shea shea at ucar.edu
Wed Aug 12 08:07:29 MDT 2015


Several ncl-talk people have tried to help with this. Answering
questions takes time and their  time is valuable.

I suggest that *you* add print statements to see what is happening in
the code. The prints are not for ncl-talk people per se... they are
for you to examine to understand what is happening. They will reveal
the flow of your script.

I have no idea why you have:
      gsn_panel(wks,plot,(/3,3/),resP)   ;<======  3*3=9 plots

==
A simple approach might be

   np=-1
   do ns=0,dimsizes(season_index)-1

      res at gsnCenterString   = season_label(ns)+":"+(ymStrt/100)
+"-"+(ymLast/100)
     ;res at gsnCenterString   = ""

      np = np+1
      plot(np) = gsn_csm_contour_map_ce(wks,precSeaClm(ns,:,:), res)

      np = np+1
      plot(np) = gsn_csm_contour_map_ce(wks,prec1SeaClm(ns,:,:), res)
; create plot

   end do

   gsn_panel(wks,plot,(/3,2/),resP)

===
Please do not respond to me directly .. only ncl-talk

On Wed, Aug 12, 2015 at 7:06 AM, Alexander Schaefer
<alexander.schaefer at mines.sdsmt.edu> wrote:
> Hi George,
>
> Your script has the gsn_panel call outside of your loop where you make all
> your plots. This in turn is allowing the plots to be overwritten instead of
> plotted. Try putting your "end do" after gsn_panel instead of before.
>
> Hope that helps,
> -Alex
>
>
> On Wednesday, August 12, 2015, george luke <lukejuliet2015 at gmail.com> wrote:
>>
>> Dear all
>> thanks for all your help. But I am sorry for bothering you with same
>> problem....now my script
>>  makes 6plots(3plots for GPCP OND season and 3plots for GPCC OND seasons
>> ), for OND season only. What I want are 6plots for GPCC and GPCP for MAM,
>> OND and JJA  plots. I have been going through all references and correction
>> from users but still not geting all plots
>> See my script attached
>>
>> Sorry I am just trying to learn NCL
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list