<div dir="ltr">Minella,<div>I hope someone else can settle the root cause for you, but I have a suggestion you can use to "brute force" this issue. Use %ch for your forecast hour string and manually type in the value of each time increment in the control file using CHSUB. That is,</div><div><br></div><div><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span style="font-size:12pt">dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin<br><div>options template<br></div><div>CHSUB 1 1 24</div><div>CHSUB 2 2 48</div><div>CHSUB 3 3 72</div><div>...</div><div>...</div><div>...</div><div>CHSUB 214 214 5136</div><div>CHSUB 215 215 5160</div><div>undef 9999.0 <br></div><div>title c3s data<br></div><div>xdef 320 linear 310.0000000 0.05<br></div><div>ydef 440 linear -22.0000000 0.05<br></div><div>zdef 1 linear 1 1<br></div><div>tdef 5160 linear 00z01Jan2001 24hr<br></div><div>vars 1<br></div><div>tp 0 99 Total precipitation [m]<br></div>endvars<br></span></div><br class="gmail-Apple-interchange-newline"></div><div>That is clearly very intensive work, so you would probably instead just write a simple script in whatever language (FORTRAN, Python, Linux shell etc.) to write out those lines for you and re-construct the control file. That should at least serve as a temporary workaround.</div><div><br></div><div>Best of luck!</div><div><br></div><div>Jeff Duda</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 8, 2019 at 9:22 AM Minella Martins <<a href="mailto:minella.martins@hotmail.com">minella.martins@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello everyone,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am trying to use the %f3 as a substitution component for the forecast hours. However, my forecast time varies from 0024 to 5160 hours and %f3 does not work for more than 3 digits, even though the Grads tutorial says that it works when "<span style="font-family:"Times New Roman";font-size:medium;background-color:rgb(224,240,255);display:inline">more
digits added for hours >999; hour values increase indefinitely".</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Times New Roman";font-size:medium;background-color:rgb(224,240,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
In other words, it works for forecast hours above 1032 hours but does not work for those below. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Has anyone faces this kind of problem and could help me??</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">My template file is like that:</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><span>dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin<br>
</span>
<div>options template<br>
</div>
<div>undef 9999.0 <br>
</div>
<div>title c3s data<br>
</div>
<div>xdef 320 linear 310.0000000 0.05<br>
</div>
<div>ydef 440 linear -22.0000000 0.05<br>
</div>
<div>zdef 1 linear 1 1<br>
</div>
<div>tdef 5160 linear 00z01Jan2001 24hr<br>
</div>
<div>vars 1<br>
</div>
<div>tp 0 99 Total precipitation [m]<br>
</div>
<span>endvars</span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">My files are like: </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">northeast_c3s_ecmwf_20010101_t00z_f0024_m000_tp.bin<br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><span style="font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">northeast_c3s_ecmwf_20010101_t00z_f0048_m000_tp.bin</span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks in advance</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Minella </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_1186107660246592371DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid rgb(211,212,222)">
<tbody>
<tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img alt="" width="46" height="29" style="width: 46px; height: 29px;" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></a></td>
<td style="width:470px;padding-top:17px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">
Livre de vírus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:rgb(68,83,234)" target="_blank">
www.avast.com</a>. </td>
</tr>
</tbody>
</table>
<a href="#m_1186107660246592371_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>
<span>Boulder, CO<br></span></span></font>
</div></div></div></div></div></div></div></div>