<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">Hi folks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a gridded dataset that I am creating monthly averages at all lat/lon locations.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have used the “addfiles” method to open all the files from a month that are valid at a particular UTC time, like 12 UTC for example. The month I was working on is September, so there are 30 files at that time.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The input variable has these properties:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Variable: irwin_cdr<o:p></o:p></p>
<p class="MsoNormal">Type: short<o:p></o:p></p>
<p class="MsoNormal">Total Size: 33535800 bytes<o:p></o:p></p>
<p class="MsoNormal"> 16767900 values<o:p></o:p></p>
<p class="MsoNormal">Number of Dimensions: 3<o:p></o:p></p>
<p class="MsoNormal">Dimensions and sizes: [time | 30] x [lat | 601] x [lon | 930]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I use the following code to get the averages at the locations, things work just fine, except that I no longer have a time reference for the data.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">avg_ir = dim_avg_n_Wrap(irwin_cdr,0)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Variable: avg_ir<o:p></o:p></p>
<p class="MsoNormal">Type: float<o:p></o:p></p>
<p class="MsoNormal">Total Size: 2235720 bytes<o:p></o:p></p>
<p class="MsoNormal"> 558930 values<o:p></o:p></p>
<p class="MsoNormal">Number of Dimensions: 2<o:p></o:p></p>
<p class="MsoNormal">Dimensions and sizes: [lat | 601] x [lon | 930]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What I would like to do is assign a time to this monthly average before I write the data to a new NetCDF file. That way I can open a group of files in an application, like the Unidata IDV, and animate the results.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When creating a monthly average what is the “best practice” method of assigning a time to the results? I was thinking of just using the first time of the group of files (i.e. the first day of the month at that UTC hour), but if there is
a standard I’d like to follow that. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any guidance is welcome.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Chris Herbster<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-- <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dr. Christopher G. Herbster<o:p></o:p></p>
<p class="MsoNormal">Associate Professor<o:p></o:p></p>
<p class="MsoNormal">Director of Science and Technology<o:p></o:p></p>
<p class="MsoNormal">for the ERAU Weather Center<o:p></o:p></p>
<p class="MsoNormal">Applied Aviation Sciences<o:p></o:p></p>
<p class="MsoNormal">Embry-Riddle Aeronautical Univ.<o:p></o:p></p>
<p class="MsoNormal">600 S. Clyde Morris Blvd.<o:p></o:p></p>
<p class="MsoNormal">Daytona Beach, FL 32114-3900<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"> 386.226.6444 Office<o:p></o:p></p>
<p class="MsoNormal">386.226.6446 Weather Center<o:p></o:p></p>
<p class="MsoNormal">http://wx.erau.edu/<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Schedule at: http://wx.erau.edu/faculty/herbster/Schedules/<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>