<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello Everyone,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have asked this question earlier, but no help on it. May be asked at off hours.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>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 &nbsp;<b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222;background:yellow;mso-highlight:yellow'>4320*</span></b><b><span style='background:yellow;mso-highlight:yellow'>2160</span></b> points. &nbsp;I want to calculate the <u>MAX</u> value from every group of&nbsp; 6 values from data. &nbsp;Simply, if I make group of every 6 values, I want to get max value from every group.<o:p></o:p></p><p class=MsoNormal>Lon&#8230;&#8230;..<span style='color:red'>0,1,2,3,4,5,</span><span style='background:yellow;mso-highlight:yellow'>6,7,8,9,10,11,</span><span style='color:red'>12,13,14,15,16,17,</span><span style='background:yellow;mso-highlight:yellow'>18,19,20,21,22,23</span>,&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;4319<o:p></o:p></p><p class=MsoNormal>Lat&#8230;&#8230;&#8230;<span style='color:red'>0,1,2,3,4,5,</span><span style='background:silver;mso-highlight:silver'>6,7,8,9,10,11,</span><span style='color:red'>12,13,14,15,16,17,</span><span style='background:silver;mso-highlight:silver'>18,19,20,21,22,23</span>&#8230;&#8230;.2159<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>How can I get it working in grads.??? Any help please.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b><span style='color:#215868'>Thanks &amp; Regards<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='color:#215868'>Anil Kumar &#8211; </span></b><b><span style='font-family:"Times New Roman","serif";color:#215868'>Sr. </span></b><b><span style='color:#215868'>Software Developer<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='color:#00A1DA'>OceanManager</span></b><b><i><span style='color:#215868'> </span></i></b><b><span style='color:#00A1DA'>Inc.</span></b><b><span style='color:#009BD2'> </span></b><span style='color:black'>| </span><a href="http://www.oceanmanager.com/"><span style='color:blue'>www.oceanmanager.com</span></a><span style='color:#31849B'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif";color:#ED7D31'>Tel: </span><span style='font-family:"Times New Roman","serif";color:#ED7D31'>+ 91-172-5026090, 5026091, 4646070<o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#00A1DA'>OceanManager- Marine Software<o:p></o:p></span></b></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>