[gradsusr] Get MAX value from every group of 6 values from data - Grads

Jennifer Adams jma at cola.iges.org
Mon Apr 28 06:22:31 EDT 2014

The amin()/amax() functions will give you the min/max over an area.  But it will return a single value for each set of 6; if you want to build a new grid out of that result you'll have to use 'gxout fwrite' and write the data file point by point. 

On Apr 28, 2014, at 5:46 AM, Anil Kumar wrote:

> Hello Everyone,
> I have asked this question earlier, but no help on it. May be asked at off hours.
> I have Ocean current data (.nc file) downloaded from NOAA site and below is NCdump of data. Data is packed in for grid of size X*Y  4320*2160 points.  I want to calculate the MAX value from every group of  6 values from data.  Simply, if I make group of every 6 values, I want to get max value from every group.
> Lon……..0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,…………………………………………………4319
> Lat………0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23…….2159
> How can I get it working in grads.??? Any help please.
> Thanks & Regards
> Anil Kumar – Sr. Software Developer
> OceanManager Inc. | www.oceanmanager.com
> Tel: + 91-172-5026090, 5026091, 4646070
> OceanManager- Marine Software
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140428/7808f303/attachment.html 

More information about the gradsusr mailing list