Hi Mary Jo,
> Since this is an NCL help forum .... Maybe the following would work.
> This assume you have a 'valid_range' or 'actual_range' attribute
>
> f = addfile("foo,nc", "w") ; NOTE the 'w"
>
> x = f->X
>
> x_at_valid_range = (/min(x),max(x)/)
>
> f->x_at_valid_range = x_at_valid_range
Dennis' suggestion should work fine. The equivalent NCO command is
ncap2 -s 'x_at_valid_range={min(x),max(x)}' in.nc out.nc
Hope this helps,
Charlie
-- Charlie Zender, Department of Earth System Science, UC Irvine Sab. at CNRS/LGGE-Grenoble until 20080715 :) 011+33+476+824236 Laboratoire de Glaciologie et Géophysique de l'Environnement 54 rue Molière BP 96, 38402 Saint Martin d'Hères Cedex, France _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Sun Feb 17 2008 - 13:13:46 MST
This archive was generated by hypermail 2.2.0 : Wed Feb 20 2008 - 13:04:58 MST