Re: how to default trYMaxF?

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Mon, 2 Jul 2007 23:45:16 +0900

Hi Mary,

thanks for the clarification
...hmmm...why did i think I could not pass max(data) as a value??

saji
...

* Mary Haley <haley_at_ucar.edu> [2007-07-02 08:25:23 -0600]:

>
> Hi,
>
> You can also delete the setting of res_at_trYMaxF any time you want NCL
> to compute y max itself.
>
> And, Saji, if I understand you intention below correctly, you can pass
> max(data) as a value in the array:
>
> maxvalues=(/1.0, 2.0, max(data), 5, 0.5/)
>
> --Mary
>
>
> On Mon, 2 Jul 2007, Saji Njarackalazhikam Hameed wrote:
>
> > hi,
> >
> > Why not set the trYMaxF values as an array so that each plot in
> > the series can chose its desired value. A large number (for instance
> > 1e20) could be used in the array to indicate that default
> > values be used for a particular plot. Some logic could then
> > be employed to set the trYMaxF values to the maximum value of the
> > data.
> >
> > for instance
> >
> > maxvalues=(/1.0, 2.0, 1e20, 5, 0.5/)
> >
> > do i = 0, no_of_plots - 1
> > if maxvalues(i).eq.1e20
> > trYMaxF=max(data)
> > else
> > trYMaxF=maxvalues(i)
> > end if
> > end do
> >
> > ...it would have been nice, if we could pass max(data) as an entry in
> > the array.
> >
> > saji
> > ..
> >
> > * p2trivej_at_atmos.ucla.edu <p2trivej_at_atmos.ucla.edu> [2007-07-01 10:37:04
> > -0700]:
> >
> >> Hi,
> >>
> >> I would like to make a series of xyplots. For certain plot, I would like
> >> to set trYMaxF to certain value, but for the next one I want trYMaxF to go
> >> back to its default, that is, determining the maximum value of Y-data and
> >> using that. Is there an easy way to do that without having to declare a
> >> new resource?
> >>
> >> thank you.
> >> _______________________________________________
> >> ncl-talk mailing list
> >> ncl-talk_at_ucar.edu
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> > --
> > Saji N. Hameed
> >
> > APEC Climate Center +82 51 668 7470
> > National Pension Corporation Busan Building 12F
> > Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net
> > KOREA
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 02 2007 - 08:45:16 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 03 2007 - 15:06:05 MDT