Re: how to default trYMaxF?

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Mon, 2 Jul 2007 09:20:29 +0900

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
Received on Sun Jul 01 2007 - 18:20:29 MDT

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