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

Anil Kumar anilku at oceanmanager.com
Mon Apr 28 07:01:18 EDT 2014


Jennifer,

 

Do you have any script reading nectcdf file values and looping onto the
values. Am not finding it on docs.

 

Thanks & Regards

Anil Kumar 

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Jennifer Adams
Sent: Monday, April 28, 2014 3:53 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] Get MAX value from every group of 6 values from data
- Grads

 

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. 

--Jennifer

 

 

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 <http://www.oceanmanager.com/> 

Tel: + 91-172-5026090, 5026091, 4646070

OceanManager- Marine Software

 

_______________________________________________
gradsusr mailing list
 <mailto:gradsusr at gradsusr.org> gradsusr at gradsusr.org
 <http://gradsusr.org/mailman/listinfo/gradsusr>
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/166bfdf8/attachment.html 


More information about the gradsusr mailing list