<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:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jennifer,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Do you have any script reading nectcdf file values and looping onto the values. Am not finding it on docs.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>Thanks &amp; Regards<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>Anil Kumar </span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00A1DA'><o:p></o:p></span></b></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>Jennifer Adams<br><b>Sent:</b> Monday, April 28, 2014 3:53 PM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] Get MAX value from every group of 6 values from data - Grads<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The amin()/amax() functions will give you the min/max over an area. &nbsp;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.&nbsp;<o:p></o:p></p><div><p class=MsoNormal>--Jennifer<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=MsoNormal>On Apr 28, 2014, at 5:46 AM, Anil Kumar wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Hello Everyone,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I have asked this question earlier, but no help on it. May be asked at off hours.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>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;</span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222;background:yellow'>4320*</span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";background:yellow'>2160</span></b><span class=apple-converted-space><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;</span></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>points. &nbsp;I want to calculate the<span class=apple-converted-space>&nbsp;</span><u>MAX</u><span class=apple-converted-space>&nbsp;</span>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></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Lon&#8230;&#8230;..<span style='color:red'>0,1,2,3,4,5,</span><span style='background:yellow'>6,7,8,9,10,11,</span><span style='color:red'>12,13,14,15,16,17,</span><span style='background: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></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Lat&#8230;&#8230;&#8230;<span style='color:red'>0,1,2,3,4,5,</span><span style='background:silver'>6,7,8,9,10,11,</span><span style='color:red'>12,13,14,15,16,17,</span><span style='background:silver'>18,19,20,21,22,23</span>&#8230;&#8230;.2159<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>How can I get it working in grads.??? Any help please.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>Thanks &amp; Regards</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>Anil Kumar &#8211;<span class=apple-converted-space>&nbsp;</span></span></b><b><span style='font-size:11.0pt;color:#215868'>Sr.<span class=apple-converted-space>&nbsp;</span></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>Software Developer</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00A1DA'>OceanManager</span></b><span class=apple-converted-space><b><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#215868'>&nbsp;</span></i></b></span><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00A1DA'>Inc.</span></b><span class=apple-converted-space><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#009BD2'>&nbsp;</span></b></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>|<span class=apple-converted-space>&nbsp;</span></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><a href="http://www.oceanmanager.com/">www.oceanmanager.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;color:#ED7D31'>Tel:<span class=apple-converted-space>&nbsp;</span>+ 91-172-5026090, 5026091, 4646070</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00A1DA'>OceanManager- Marine Software</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org"><span style='color:#0563C1'>gradsusr@gradsusr.org</span></a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr"><span style='color:#0563C1'>http://gradsusr.org/mailman/listinfo/gradsusr</span></a><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>--<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><br><br><o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>