Re: Paneling plots

From: Amadou Coulibaly <mpapin24_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 24 2014 - 13:19:11 MDT

Sorry Mary,

The script has worked, but I forgot to confirmed you about it.

Best regards


On 24 June 2014 20:24, Mary Haley <haley@ucar.edu> wrote:

> The error message is telling you what the problem is:
> "(create_one_station_plot) is undefined".
>
> I had renamed your function, but forgot to do this across the whole
> script. Change any occurrence of "plot_one_station" to
> "create_one_station_plot".
>
>
> --Mary
>
>
>
> On Fri, Jun 20, 2014 at 6:11 PM, Amadou Coulibaly <mpapin24@gmail.com>
> wrote:
>
>> Hi Mary,
>>
>> I think this can be a good way to solve my paneling issue.
>> Now it is showing this error:
>> fatal:Undefined identifier: (create_one_station_plot) is undefined, can'=
t
>> continue
>> fatal:["Execute.c":7743]:Execute: Error occurred at or near line 231 in
>> file panel_plot_mod.ncl
>> Because Function plot_one_station is not defined in the last block of my
>> script. How to do it?
>>
>> Best regards
>>
>>
>>
>> On 20 June 2014 22:20, Mary Haley <haley@ucar.edu> wrote:
>>
>>> For the record, I don't think the "plot_one_station" is a procedure tha=
t
>>> somebody on the NCL team wrote, so I'm not sure how it's supposed to wo=
rk.
>>>
>>> The script is confusing because this procedure is being called three
>>> times, but there's an "exit" call after each one. The NCL script is goi=
ng
>>> to stop after the first exit call, and not create the other two plots.
>>>
>>> However, even if you didn't have those three exit calls, you are still
>>> not going to get the results you want. You are creating and paneling on=
ly
>>> one plot with each call to this procedure, and hence you will get three
>>> individual plots on three different frames (pages).
>>>
>>> This procedure is creating one plot but then trying to panel this one
>>> plot as three plots, which makes no sense:
>>>
>>> if (.not.ismissing(plot(0))) then gsn_panel(wks,plot,(/3,1/),resP)
>>> end if
>>>
>>>
>>> I think what you want to do is have "plot_one_station" be a function an=
d
>>> not a procedure, and have it return the plot that's created. This will =
give
>>> you three separate plots, and *then* you can can call gsn_panel with th=
e
>>> three plots you created.
>>>
>>> I've modified your code, and added a "draw_panel_plots" procedure that
>>> does just the gsn_panel call after all three plots are created. This is
>>> untested.
>>>
>>> --Mary
>>>
>>>
>>>
>>> On Thu, Jun 19, 2014 at 3:47 PM, Amadou Coulibaly <mpapin24@gmail.com>
>>> wrote:
>>>
>>>> Dear all,
>>>>
>>>> I am new user of ncl. I wanted to plot a panel of hourly hodograghs fo=
r
>>>> 3 different stations. I used a procedure called "plot_one_station()". =
When
>>>> I tried to run my script is showing me this message:
>>>>
>>>> (0) There are 1 valid plots out of 1 total plots
>>>> (0) -------Panel viewport values for each plot-------
>>>> (0) plot #0
>>>> (0) new x,y = 0.336601,0.996732
>>>> (0) orig wdt,hgt = 0.96,0.96
>>>> (0) new wdt,hgt = 0.326797,0.326797
>>>> (0) -------min/max X,Y viewport positions for plots-------
>>>> (0) min/max x viewport position = 0.336601/0.336601
>>>> (0) min/max y viewport position = 0.996732/0.996732
>>>> (0) -------min/max NDC values for the object in panel-------
>>>> (0) min/max x position = 0.336601/0.663399
>>>> (0) min/max y position = 0.669935/0.996732
>>>> Please, can someone tell me what should I do to solve this issue. Fin=
d
>>>> attached my script.
>>>>
>>>> Best regards
>>>>
>>>> --
>>>> * COULIBALY AMADOU *
>>>> PhD Student on West African Climate System (WACS)
>>>> FUTA - Federal University of Technology of Akure, Nigeria
>>>>
>>>> *Visiting Researcher - *
>>>> *University of Cologne, Germany **Institute of Geophysics and
>>>> Meteorology*
>>>> Pohligstr. 3 / Office 3.102
>>>> D-50969 Köln
>>>>
>>>> *Project*: WASCAL (West African Science Service Centre on Climate Chan=
ge
>>>> and Adapted Land Use)
>>>> Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49
>>>> 15218352574
>>>>
>>>> E-mail: mpapin24@gmail.com / coulibalya68@yahoo.com
>>>>
>>>> "*The time is always right to do right": Nelson Mandela*
>>>>
>>>> *"Character is like a tree and reputation like a shadow. The shadow i=
s
>>>> what we think of it; the tree is the real thing" : Abraham Lincoln*
>>>>
>>>> *"Do what you can, with what you have, where you are" Theodore
>>>> Roosevelt*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>>
>>>
>>
>>
>> --
>> * COULIBALY AMADOU *
>> PhD Student on West African Climate System (WACS)
>> FUTA - Federal University of Technology of Akure, Nigeria
>>
>> *Visiting Researcher - *
>> *University of Cologne, Germany **Institute of Geophysics and
>> Meteorology*
>> Pohligstr. 3 / Office 3.102
>> D-50969 Köln
>>
>> *Project*: WASCAL (West African Science Service Centre on Climate Change
>> and Adapted Land Use)
>> Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49
>> 15218352574
>>
>> E-mail: mpapin24@gmail.com / coulibalya68@yahoo.com
>>
>> "*The time is always right to do right": Nelson Mandela*
>>
>> *"Character is like a tree and reputation like a shadow. The shadow is
>> what we think of it; the tree is the real thing" : Abraham Lincoln*
>>
>> *"Do what you can, with what you have, where you are" Theodore Roosevelt=
*
>>
>>
>>
>>
>>
>>
>
>


--
* COULIBALY AMADOU *
PhD Student on West African Climate System (WACS)
FUTA - Federal University of Technology of Akure, Nigeria

*Visiting Researcher - *
*University of Cologne, Germany**Institute of Geophysics and Meteorology*
Pohligstr. 3 / Office 3.102
D-50969 Köln

*Project*: WASCAL (West African Science Service Centre on Climate Change
and Adapted Land Use)
Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49
15218352574

E-mail: mpapin24@gmail.com / coulibalya68@yahoo.com

"*The time is always right to do right": Nelson Mandela*

*"Character is like a tree and reputation like a shadow. The shadow is
what we think of it; the tree is the real thing" : Abraham Lincoln*

*"Do what you can, with what you have, where you are" Theodore Roosevelt*

Received on Tue Jun 24 07:19:12 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT