<div dir="ltr">Remove the double quotes in your time strings and see if that makes any difference.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 7:00 AM, Andrew Friedman <span dir="ltr"><<a href="mailto:andfried@berkeley.edu" target="_blank">andfried@berkeley.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aaron,<br>
<br>
I think your time indices need to be the same for lterp to work. Check out examples 4 and 5 in the documentation entry for lterp, which show how to manually override the time values. Hope this helps.<br>
<br>
Andrew<br>
<div><div class="h5"><br>
On Jan 16, 2014, at 3:26 AM, Perry, Aaron @ LSC <<a href="mailto:Aaron.Perry@lsc.vsc.edu">Aaron.Perry@lsc.vsc.edu</a>> wrote:<br>
<br>
> Good Evening Everyone,<br>
><br>
> Currently, I'm having an issue with lterping two variables, one being 850mb temp with a recent GFS .ctl file and a climatological 850mb temp .ctl. The recent GFS .ctl is fine and the climate .ctl is coarse. I have been trying to read up on lterp as much as possible but, I can't seem to get this work and I've reached the end of possible resources it seems like...<br>
><br>
> The script in question is below:<br>
><br>
> ctl1 = '~/grads/data/cfsrclim/t850.cfsr.mean.clim.daily.1982.2010.ctl'<br>
> ctl2 = '~/grads/data/gfs.t12z.pgrbf33.ctl'<br>
><br>
> 'open 'ctl1''<br>
> 'set x 1 360'<br>
> 'open 'ctl2''<br>
><br>
> 'set dfile 1'<br>
> 'define t850clim = (TMP850mb-273.15)*(9/5)+32)'<br>
><br>
> 'set dfile 2'<br>
> 'define t850curr = (tmpprs(lev=850)-273.15)*(9/5)+32)'<br>
><br>
> 'define t850a = (t850clim(t="00Z01jan1984"))'<br>
><br>
> 'define t850b = (t850curr(t="18Z15jan2014"))'<br>
><br>
> 'define final = lterp(t850b,t850a)'<br>
><br>
> 'define hi = t850a-final'<br>
><br>
> 'd hi'<br>
><br>
><br>
> Onward and Upward,<br>
><br>
> Aaron D. Perry<br>
> Boston, MA<br>
> Lyndon State College '16<br>
> Twitter: @AaronPerryLSC<br>
> Mobile: 617-780-4312<br>
</div></div>> <<a href="http://climtest.gs" target="_blank">climtest.gs</a>>_______________________________________________<br>
> gradsusr mailing list<br>
> <a 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>
_______________________________________________<br>
gradsusr mailing list<br>
<a 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>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>