I tried it out on one of my own .ctl files and it worked just fine. Realize that you won't be able to plot data outside the time range of the initial data, but it syncs up the times just fine.<br><br><div class="gmail_quote">
On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda <span dir="ltr"><<a href="mailto:jdduda@iastate.edu">jdduda@iastate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Jason,<br><br>Have you tried simply changing the TDEF line in the .ctl file to the time you want?<br><br>Jeff Duda<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder <span dir="ltr"><<a href="mailto:jmssnyder@ucdavis.edu" target="_blank">jmssnyder@ucdavis.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I tried the script but how do I get it to turn the date to a number? I ran this script and it does not seem to do anything except create the text file date.txt, which shows the date as December 31 2008 0 hours. when I enter </div>
<div>ga-'>set t 1 </div>
<div> </div>
<div>I still get the date <br></div>
<div>Time values set: 2009:1:1:3 2009:1:1:3, </div>
<div> </div>
<div>where I would like it to be </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf file has.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Nothing has really changed in terms of the time settings when I used this script. How do I use it? Do I have to run it on both .nc files I want to use and then I can use them together?</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Let me know.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Thank,</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Jason</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz <span dir="ltr"><<a href="mailto:eliavs@gmail.com" target="_blank">eliavs@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr"><br><br>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz <span dir="ltr"><<a href="mailto:eliavs@gmail.com" target="_blank">eliavs@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr"><br>Jason<br></div></blockquote>
<div>Hi again<br>i found the old script i wrote here is the part that turns string date to number:<br>'<br> 'q time'<br>date=subwrd(result,3)<br>hour=substr(date,1,3)<br>day=substr(date,4,2)<br>month=substr(date,6,3)<br>
year=substr(date,9,10)<br>'!date -d 'date' +%m >> date.txt'<br>a=read('date.txt')<br>month1=sublin(a,2)<br>' <br></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr">eliav<br></div></blockquote></div><br></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>