<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Daniele M. --&nbsp;</div><div>There is no way to fudge the time metadata with GRIB data in GrADS to make all your ensembles line up in the time dimension. Each forecast must be described as the metadata dictates in the data files. Your ensembles don't overlap at all, and the only way to merge them into one data set is to set TDEF to span all 21 years.&nbsp;</div><div><div><br></div><div>Your descriptor should have these components:&nbsp;</div><div><br></div><div>tdef 14677 linear 12z29aug1989 12hr</div><div>edef 21&nbsp;</div><div>e1 67 12z29aug1989</div><div>e2 67 12z29aug1990</div><div>...</div><div>e21 67 12z29aug2009</div><div>endedef</div></div><div><br></div><div>I'm not sure this is the most efficient way to handle this data.</div><div>--Jennifer</div><div><br></div><div><br></div><div><br></div><br><div><div>On Aug 27, 2010, at 7:25 AM, Daniele Mastrangelo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi Daniele<br><br>your method works: the "set time" command is the crucial point.<br>By defining a new variable for the same field of each new opened file (or by using the .#of-ctl-file at the end of the variable name), one can create the original ensemble set.<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br>Grazie!<br><br>D.<br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, helvetica, sans-serif; font-size: 13px; "><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold; ">Da:</span></b><span class="Apple-converted-space">&nbsp;</span>Daniele Gandini &lt;<a href="mailto:daniele.gandini@arpa.piemonte.it">daniele.gandini@arpa.piemonte.it</a>&gt;<br><b><span style="font-weight: bold; ">A:</span></b><span class="Apple-converted-space">&nbsp;</span>GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br><b><span style="font-weight: bold; ">Inviato:</span></b><span class="Apple-converted-space">&nbsp;</span>Mar 24 agosto 2010, 09:33:53<br><b><span style="font-weight: bold; ">Oggetto:</span></b><span class="Apple-converted-space">&nbsp;</span>Re: [gradsusr] ensemble reforecast runs<br></font><br>Dear Daniele Mastrangelo,<br><br>you can do so: put each ensemble member in a different<br>ctl file and then:<br><br>1) open file 1<br>2) display var.1<br>3) open file 2<br>4) set time 12z29Aug1990<br>5) display var.2<br>6) open file 3<br>7) set time 12z29Aug1991<br>8) display var.3<br><br>and so on.<br><br>It looks boring but in a script file you can use<br>a while cycle on ensemble files, i.e.<br>display var.i (i=1,21)<br><br>Buona fortuna.<br><br>Daniele Gandini<br><br><br><br>----- Messaggio originale -----<br>Da: "Daniele Mastrangelo" &lt;<a ymailto="mailto:daniele_mastrangelo@yahoo.it" href="mailto:daniele_mastrangelo@yahoo.it">daniele_mastrangelo@yahoo.it</a>&gt;<br>A: "GrADS Users Forum" &lt;<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>Inviato: Luned́, 23 agosto 2010 18:02:59<br>Oggetto: Re: [gradsusr] ensemble reforecast runs<br><br><br><br><br>Hi Wesley,<span class="Apple-converted-space">&nbsp;</span><br><br>thanks for your reply.<span class="Apple-converted-space">&nbsp;</span><br><br>My previous email was not totally clear. Actually, I have 21 ensemble members with the same forecast length; these members are produced initializing the model at the same hour, day, and month (but) of 21 different years (12 UTC 29 aug 1989, 12 UTC 29 aug 1990, ... , 12 UTC 29 aug 2009).<span class="Apple-converted-space">&nbsp;</span><br><br>I tried, however, to apply something similar to your point 2): I aggregated 2 members (e1, e2) in a single ctl file and changed by hand the year of the second member in the EDEF section, making it the same as the first member<span class="Apple-converted-space">&nbsp;</span><br>...<span class="Apple-converted-space">&nbsp;</span><br>tdef 67 linear 12Z29aug1989 12hr<span class="Apple-converted-space">&nbsp;</span><br>zdef 1 linear 1 1<span class="Apple-converted-space">&nbsp;</span><br>vars 8<span class="Apple-converted-space">&nbsp;</span><br>...<span class="Apple-converted-space">&nbsp;</span><br>ENDVARS<span class="Apple-converted-space">&nbsp;</span><br>EDEF 2<span class="Apple-converted-space">&nbsp;</span><br>e1 67 12Z29aug1989<span class="Apple-converted-space">&nbsp;</span><br>e2 67 12Z29aug1989 ---1989 instead of 1990---<span class="Apple-converted-space">&nbsp;</span><br>ENDEDEF<span class="Apple-converted-space">&nbsp;</span><br><br>Gribmap ran with no error messages but then, in GrADS, I could not use the e2 fields: "Cannot contour grid - all undefined values"<span class="Apple-converted-space">&nbsp;</span><br><br>Is there some other way I could try?<span class="Apple-converted-space">&nbsp;</span><br><br>Best regards,<span class="Apple-converted-space">&nbsp;</span><br>Daniele<span class="Apple-converted-space">&nbsp;</span><br><br><br><br><br>Da: Wesley Ebisuzaki &lt;<a ymailto="mailto:Wesley.Ebisuzaki@noaa.gov" href="mailto:Wesley.Ebisuzaki@noaa.gov">Wesley.Ebisuzaki@noaa.gov</a>&gt;<span class="Apple-converted-space">&nbsp;</span><br>A: GrADS Users Forum &lt;<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<span class="Apple-converted-space">&nbsp;</span><br>Inviato: Lun 23 agosto 2010, 16:43:08<span class="Apple-converted-space">&nbsp;</span><br>Oggetto: Re: [gradsusr] ensemble reforecast runs<span class="Apple-converted-space">&nbsp;</span><br><br>Daniele,<span class="Apple-converted-space">&nbsp;</span><br><br>g2ctl assumes that the length of the forecast is the same for all<span class="Apple-converted-space">&nbsp;</span><br>ensemble members.<span class="Apple-converted-space">&nbsp;</span><br>If not, you can do either<span class="Apple-converted-space">&nbsp;</span><br><br>(1) You could try using the longest ensemble as the 1st ensemble.<span class="Apple-converted-space">&nbsp;</span><br>(It may work.)<span class="Apple-converted-space">&nbsp;</span><br><br>(2) You have to set the TDEF by hand.<span class="Apple-converted-space">&nbsp;</span><br><br>Wesley Ebisuzaki<span class="Apple-converted-space">&nbsp;</span><br><br><br>Daniele Mastrangelo wrote:<span class="Apple-converted-space">&nbsp;</span><br>&gt; Dear GrADS users,<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; I'd like to use GrADS v 2.0.a8 to evaluate a set of 21 reforecast<span class="Apple-converted-space">&nbsp;</span><br>&gt; ensemble runs. These runs are obtained running the same global model<span class="Apple-converted-space">&nbsp;</span><br>&gt; initialized at the same hour and date of 21 different years.<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; I obtained a single ctl file through "g2ctl.pl -ens" (g2ctl.pl v<span class="Apple-converted-space">&nbsp;</span><br>&gt; 0.0.4o) but, when I used gribmap to produce the corresponding idx<span class="Apple-converted-space">&nbsp;</span><br>&gt; file, I got the following error message:<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Open Error: ensemble 1 (e2) extends beyond the time axis limits<span class="Apple-converted-space">&nbsp;</span><br>&gt; The data file was not opened.<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; I see that the problem is that these runs cover different periods;<span class="Apple-converted-space">&nbsp;</span><br>&gt; moreover, I get the same error when I try to open two of the 21<span class="Apple-converted-space">&nbsp;</span><br>&gt; different reforecast runs in a normal GrADS session (as file 1 and<span class="Apple-converted-space">&nbsp;</span><br>&gt; file 2). Therefore, my question is: can GrADS treat a set reforecast<span class="Apple-converted-space">&nbsp;</span><br>&gt; runs used as ensemble runs?<span class="Apple-converted-space">&nbsp;</span><br>&gt; If it cannot directly do that, is there a way to bypass the problem?<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Thank you,<span class="Apple-converted-space">&nbsp;</span><br>&gt; Daniele<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; ------------------------------------------------------------------------<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; _______________________________________________<span class="Apple-converted-space">&nbsp;</span><br>&gt; gradsusr mailing list<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br><br>_______________________________________________<span class="Apple-converted-space">&nbsp;</span><br>gradsusr mailing list<span class="Apple-converted-space">&nbsp;</span><br><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><span class="Apple-converted-space">&nbsp;</span><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><span class="Apple-converted-space">&nbsp;</span><br><br><br>_______________________________________________<br>gradsusr mailing list<br><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br>_______________________________________________<br>gradsusr mailing list<br><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></div></div><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></span></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; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><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></div></span> </div><br></body></html>