<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Daniele M. -- </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. </div><div><div><br></div><div>Your descriptor should have these components: </div><div><br></div><div>tdef 14677 linear 12z29aug1989 12hr</div><div>edef 21 </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"> </span>Daniele Gandini <<a href="mailto:daniele.gandini@arpa.piemonte.it">daniele.gandini@arpa.piemonte.it</a>><br><b><span style="font-weight: bold; ">A:</span></b><span class="Apple-converted-space"> </span>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br><b><span style="font-weight: bold; ">Inviato:</span></b><span class="Apple-converted-space"> </span>Mar 24 agosto 2010, 09:33:53<br><b><span style="font-weight: bold; ">Oggetto:</span></b><span class="Apple-converted-space"> </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" <<a ymailto="mailto:daniele_mastrangelo@yahoo.it" href="mailto:daniele_mastrangelo@yahoo.it">daniele_mastrangelo@yahoo.it</a>><br>A: "GrADS Users Forum" <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><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"> </span><br><br>thanks for your reply.<span class="Apple-converted-space"> </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"> </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"> </span><br>...<span class="Apple-converted-space"> </span><br>tdef 67 linear 12Z29aug1989 12hr<span class="Apple-converted-space"> </span><br>zdef 1 linear 1 1<span class="Apple-converted-space"> </span><br>vars 8<span class="Apple-converted-space"> </span><br>...<span class="Apple-converted-space"> </span><br>ENDVARS<span class="Apple-converted-space"> </span><br>EDEF 2<span class="Apple-converted-space"> </span><br>e1 67 12Z29aug1989<span class="Apple-converted-space"> </span><br>e2 67 12Z29aug1989 ---1989 instead of 1990---<span class="Apple-converted-space"> </span><br>ENDEDEF<span class="Apple-converted-space"> </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"> </span><br><br>Is there some other way I could try?<span class="Apple-converted-space"> </span><br><br>Best regards,<span class="Apple-converted-space"> </span><br>Daniele<span class="Apple-converted-space"> </span><br><br><br><br><br>Da: Wesley Ebisuzaki <<a ymailto="mailto:Wesley.Ebisuzaki@noaa.gov" href="mailto:Wesley.Ebisuzaki@noaa.gov">Wesley.Ebisuzaki@noaa.gov</a>><span class="Apple-converted-space"> </span><br>A: GrADS Users Forum <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><span class="Apple-converted-space"> </span><br>Inviato: Lun 23 agosto 2010, 16:43:08<span class="Apple-converted-space"> </span><br>Oggetto: Re: [gradsusr] ensemble reforecast runs<span class="Apple-converted-space"> </span><br><br>Daniele,<span class="Apple-converted-space"> </span><br><br>g2ctl assumes that the length of the forecast is the same for all<span class="Apple-converted-space"> </span><br>ensemble members.<span class="Apple-converted-space"> </span><br>If not, you can do either<span class="Apple-converted-space"> </span><br><br>(1) You could try using the longest ensemble as the 1st ensemble.<span class="Apple-converted-space"> </span><br>(It may work.)<span class="Apple-converted-space"> </span><br><br>(2) You have to set the TDEF by hand.<span class="Apple-converted-space"> </span><br><br>Wesley Ebisuzaki<span class="Apple-converted-space"> </span><br><br><br>Daniele Mastrangelo wrote:<span class="Apple-converted-space"> </span><br>> Dear GrADS users,<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> I'd like to use GrADS v 2.0.a8 to evaluate a set of 21 reforecast<span class="Apple-converted-space"> </span><br>> ensemble runs. These runs are obtained running the same global model<span class="Apple-converted-space"> </span><br>> initialized at the same hour and date of 21 different years.<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> I obtained a single ctl file through "g2ctl.pl -ens" (g2ctl.pl v<span class="Apple-converted-space"> </span><br>> 0.0.4o) but, when I used gribmap to produce the corresponding idx<span class="Apple-converted-space"> </span><br>> file, I got the following error message:<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> Open Error: ensemble 1 (e2) extends beyond the time axis limits<span class="Apple-converted-space"> </span><br>> The data file was not opened.<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> I see that the problem is that these runs cover different periods;<span class="Apple-converted-space"> </span><br>> moreover, I get the same error when I try to open two of the 21<span class="Apple-converted-space"> </span><br>> different reforecast runs in a normal GrADS session (as file 1 and<span class="Apple-converted-space"> </span><br>> file 2). Therefore, my question is: can GrADS treat a set reforecast<span class="Apple-converted-space"> </span><br>> runs used as ensemble runs?<span class="Apple-converted-space"> </span><br>> If it cannot directly do that, is there a way to bypass the problem?<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> Thank you,<span class="Apple-converted-space"> </span><br>> Daniele<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> ------------------------------------------------------------------------<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> _______________________________________________<span class="Apple-converted-space"> </span><br>> gradsusr mailing list<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br><br>_______________________________________________<span class="Apple-converted-space"> </span><br>gradsusr mailing list<span class="Apple-converted-space"> </span><br><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><span class="Apple-converted-space"> </span><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><span class="Apple-converted-space"> </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>