<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi Aaron,<div><br></div><div>The anomaly plot looks realistic, and your script seems to be correct (there are a few redundant commands, but the result is OK).</div><div><br></div><div>Eric<br><br><hr id="zwchr"><b>From: </b>"Aaron @ LSC Perry" &lt;Aaron.Perry@lsc.vsc.edu&gt;<br><b>To: </b>"GrADS Users Forum" &lt;gradsusr@gradsusr.org&gt;<br><b>Sent: </b>Saturday, January 18, 2014 3:41:20 PM<br><b>Subject: </b>Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br><br>


<style>
<!--
p
        {margin:0}
-->
</style><style id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>


<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Eric,<br>
<br>
Thank you very much for responding! I use xcbar to plot my colorbars.<br>
<br>
I've attached a sample of the anomaly graphic to this email, as well as the latest working script.<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font size="2" face="Tahoma"><font size="2"><br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font size="2" face="Tahoma">Boston, MA<br>
Lyndon State College '16<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC" target="_blank">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font size="2" face="Tahoma">Mobile: 617-780-4312</font></font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr>
<div style="direction: ltr;" id="divRpF775366"><font size="2" face="Tahoma" color="#000000"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Eric Altshuler [ela@cola.iges.org]<br>
<b>Sent:</b> Friday, January 17, 2014 11:56 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br>
</font><br>
</div>
<div></div>
<div>
<div style="font-family:arial,helvetica,sans-serif; font-size:12pt; color:#000000">
Hi Aaron,
<div><br>
</div>
<div>You need to include a color bar on your plot, showing numerical values for each color. Without it, there's no way to know quantitatively what the anomalies are. This grads script will make a color bar:</div>
<div><br>
</div>
<div>ftp://cola.gmu.edu/grads/scripts/cbarn.gs</div>
<div><br>
</div>
<div>Run the cbarn.gs script immediately after displaying the anomaly variable.</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
<br>
<div><span></span>Eric L. Altshuler<br>
Research Scientist<br>
Center for Ocean-Land-Atmosphere Studies<br>
253 Research Hall, Mail Stop 6C5
<div>George Mason University</div>
<div>4400 University Drive<br>
Fairfax, VA 22030 USA<br>
<br>
E-mail: ela@cola.iges.org<br>
Phone: (703) 993-5725<br>
Fax: (703) 993-5770</div>
<span></span><br>
</div>
<br>
<hr id="zwchr">
<b>From: </b>"Aaron @ LSC Perry" &lt;Aaron.Perry@lsc.vsc.edu&gt;<br>
<b>To: </b>"GrADS Users Forum" &lt;gradsusr@gradsusr.org&gt;<br>
<b>Sent: </b>Friday, January 17, 2014 3:15:00 PM<br>
<b>Subject: </b>Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br>
<br>
Hi Jim,<br>
<br>
I was able to get the script to work with that you suggested! Thank you! This method seems to be the only method that really works. I've been experimenting with another method for getting the 850mb temp anoms but, I end up getting crazy library errors and then
 it crashes GrADS.<br>
<br>
I attached an image of what I was able to generate for 850mb anoms. Does it look reasonable?<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>
<br>
________________________________________<br>
From: gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of James T. Potemra [jimp@hawaii.edu]<br>
Sent: Friday, January 17, 2014 1:17 AM<br>
To: GrADS Users Forum<br>
Subject: Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br>
<br>
Hi Aaron,<br>
<br>
I'm a little confused as to the problem. &nbsp;What is error you are<br>
getting? &nbsp;When you load two different files you are<br>
potentially loading two different grids, including x/y/z/t. &nbsp;In these<br>
cases it's much easier to define lat/lon/z/t<br>
for each first. &nbsp;In your example below, you open one file, then the<br>
next, then define lon/lat. &nbsp;Try this instead:<br>
<br>
1. &nbsp;open first file<br>
2. &nbsp;define lat/lon/z/t range<br>
3. &nbsp;define new variable (in this case terp1)<br>
4. &nbsp;open second file<br>
5. &nbsp;set dfile 2<br>
6. &nbsp;define lat/lon/z/t range<br>
7. &nbsp;define new variable (in this case terp2)<br>
<br>
This will at least help narrow down whether you have mismatched grids<br>
and if so in what dimension. &nbsp;In your<br>
example file below the vertical dimension will default to the grid in<br>
the first file. &nbsp;I assume you want to interpolate<br>
lat/lon from one file to the lat/lon of the other? &nbsp;I don't think lterp<br>
works in the vertical.<br>
<br>
<br>
Jim<br>
<br>
On 1/16/14 1:10 PM, Perry, Aaron @ LSC wrote:<br>
&gt; Good Evening Andrew,<br>
&gt;<br>
&gt; I tried to incorporate the modify command into the script according to the modify example in the GrADS documentation but, no luck.<br>
&gt;<br>
&gt;<br>
&gt; Onward and Upward,<br>
&gt;<br>
&gt; Aaron D. Perry<br>
&gt; Boston, MA<br>
&gt; Lyndon State College '16<br>
&gt; Twitter: @AaronPerryLSC<br>
&gt; Mobile: 617-780-4312<br>
&gt;<br>
&gt; ________________________________________<br>
&gt; From: gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Andrew Friedman [andfried@berkeley.edu]<br>
&gt; Sent: Thursday, January 16, 2014 5:55 PM<br>
&gt; To: GrADS Users Forum<br>
&gt; Subject: Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br>
&gt;<br>
&gt; Hi Aaron,<br>
&gt; Have you tried the ‘modify’ command for making the climatology apply to the whole record?<br>
&gt; Andrew<br>
&gt;<br>
&gt; On Jan 16, 2014, at 7:57 PM, Perry, Aaron @ LSC &lt;Aaron.Perry@lsc.vsc.edu&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi Everyone,<br>
&gt;&gt;<br>
&gt;&gt; I tried setting the time dimensions to the same value (t=1) and it looks like the climo data is showing but, now I need to subtract the operational model data from the climo data to get the anomalies.<br>
&gt;&gt;<br>
&gt;&gt; Here's the revised script:<br>
&gt;&gt;<br>
&gt;&gt; 'open 'ctl1''<br>
&gt;&gt; 'open 'ctl2''<br>
&gt;&gt;<br>
&gt;&gt; 'set mproj nps'<br>
&gt;&gt; 'set lat 'latmin' 'latmax''<br>
&gt;&gt; 'set lon 'lonmin' 'lonmax''<br>
&gt;&gt; 'set mpvals -130 -64 20 70'<br>
&gt;&gt; 'set display color white'<br>
&gt;&gt; 'clear'<br>
&gt;&gt; 'set map 1 1 10'<br>
&gt;&gt; 'set mpdset hires'<br>
&gt;&gt; 'set grid off'<br>
&gt;&gt;<br>
&gt;&gt; 'set grads off'<br>
&gt;&gt; 'set timelab off'<br>
&gt;&gt; 'set gxout shade2b'<br>
&gt;&gt;<br>
&gt;&gt; 'define terp2 = TMPprs.2(lev=850)'<br>
&gt;&gt; 'define terp1 = TMP850mb.1'<br>
&gt;&gt;<br>
&gt;&gt; 'define newvar = lterp(terp1(t=1),terp2(t=1))'<br>
&gt;&gt;<br>
&gt;&gt; 'd newvar'<br>
&gt;&gt;<br>
&gt;&gt; Any ideas for getting this to work? It seems simple enough but...<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Onward and Upward,<br>
&gt;&gt;<br>
&gt;&gt; Aaron D. Perry<br>
&gt;&gt; Boston, MA<br>
&gt;&gt; Lyndon State College '16<br>
&gt;&gt; Twitter: @AaronPerryLSC<br>
&gt;&gt; Mobile: 617-780-4312<br>
&gt;&gt; From: gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Jeff Duda [jeffduda319@gmail.com]<br>
&gt;&gt; Sent: Thursday, January 16, 2014 1:03 PM<br>
&gt;&gt; To: GrADS Users Forum<br>
&gt;&gt; Subject: Re: [gradsusr] Serious Lterp Issue With GFS Data &amp; Climatology Data<br>
&gt;&gt;<br>
&gt;&gt; Remove the double quotes in your time strings and see if that makes any difference.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jan 16, 2014 at 7:00 AM, Andrew Friedman &lt;andfried@berkeley.edu&gt; wrote:<br>
&gt;&gt; Hi Aaron,<br>
&gt;&gt;<br>
&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt; Andrew<br>
&gt;&gt;<br>
&gt;&gt; On Jan 16, 2014, at 3:26 AM, Perry, Aaron @ LSC &lt;Aaron.Perry@lsc.vsc.edu&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Good Evening Everyone,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 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>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The script in question is below:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ctl1 = '~/grads/data/cfsrclim/t850.cfsr.mean.clim.daily.1982.2010.ctl'<br>
&gt;&gt;&gt; ctl2 = '~/grads/data/gfs.t12z.pgrbf33.ctl'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'open 'ctl1''<br>
&gt;&gt;&gt; 'set x 1 360'<br>
&gt;&gt;&gt; 'open 'ctl2''<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'set dfile 1'<br>
&gt;&gt;&gt; 'define t850clim = (TMP850mb-273.15)*(9/5)+32)'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'set dfile 2'<br>
&gt;&gt;&gt; 'define t850curr = (tmpprs(lev=850)-273.15)*(9/5)+32)'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'define t850a = (t850clim(t="00Z01jan1984"))'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'define t850b = (t850curr(t="18Z15jan2014"))'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'define final = lterp(t850b,t850a)'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'define hi = t850a-final'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 'd hi'<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Onward and Upward,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Aaron D. Perry<br>
&gt;&gt;&gt; Boston, MA<br>
&gt;&gt;&gt; Lyndon State College '16<br>
&gt;&gt;&gt; Twitter: @AaronPerryLSC<br>
&gt;&gt;&gt; Mobile: 617-780-4312<br>
&gt;&gt;&gt; &lt;climtest.gs&gt;_______________________________________________<br>
&gt;&gt;&gt; gradsusr mailing list<br>
&gt;&gt;&gt; gradsusr@gradsusr.org<br>
&gt;&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gradsusr mailing list<br>
&gt;&gt; gradsusr@gradsusr.org<br>
&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Jeff Duda<br>
&gt;&gt; Graduate research assistant<br>
&gt;&gt; University of Oklahoma School of Meteorology<br>
&gt;&gt; Center for Analysis and Prediction of Storms<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gradsusr mailing list<br>
&gt;&gt; gradsusr@gradsusr.org<br>
&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; gradsusr@gradsusr.org<br>
&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; gradsusr@gradsusr.org<br>
&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</div>
</div>
</div>
</div>
</div>


<br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div></body></html>