<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">When you use grid coordinates to access data (e.g. X, Y, Z, T, or E), GrADS converts them internally to world coordinates based on the grid of the default file. So if you 'set dfile 2' before using an expression like 'ave(b.2,t=400,t=500)' it should be okay, but you will have trouble comparing that to b.1(t=40). I suggest creating an intermediate data set that contains hourly averages of your 6-minute data, then comparing that with your hourly data. <div>--Jennifer<br><div><br><div><div>On Feb 15, 2013, at 10:48 AM, Jonni Lehtiranta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi!<br><br>I have a problem I'm unable to overcome by myself. I have two files, output from<br>the same model. The primary file has many variables once per hour, the secondary<br>has one variable (let's call it B) for each timestep. That's 10 times per hour. Like this:<br><br>TDEF 55 LINEAR 00z15FEB2013 1hr<br><br>and<br><br>TDEF 550 LINEAR 00z15FEB2013 6mn<br><br>I want to use these in a script (grads -bpc draw.gs), such that the script opens both in<br>this order. I want to loop over the hours, and draw hourly averages of B. Or multiply<br>the hourly outputs by this average, stuff like that.<br><br>In direct mode, writing commands to grads by hand,<br><br> d B.2(t=500) works, but<br> d ave(B.2, t=400, t=500) does not work.<br><br>I can't easily use "time=00z16feb2013" syntax.<br><br>Can I somehow tell grads that I want "t = 400" to mean the steps in the second file?<br><br><br>Yours sincerely,<br> -Jonni Lehtiranta<br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></div></div></body></html>