<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120"></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>Jenni et al. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>Many thanks, writing out and reading back in with a bespoke
ctl file is the way to go. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>Unless someone writes a function to temporarily ignore one of
the dimension settings</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>set dfile 1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>set t 3 56</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>define a=aave(T,lon=10,lon=30,lat=20,lat=60),
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>define b=ignore(a,"time")</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>so that b holds 52 area averages of T and is independent of
time. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>repeat with another file (different time domain) and
combine/composite the two.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>Thanks!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial>Bernd.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=996074113-16092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Bernd Becker Climate Impacts Product
Development<BR>Met Office Hadley Centre FitzRoy Road
Exeter Devon EX1 3PB United Kingdom<BR>Tel.: +44 (0) 1392
884511 Fax: +44 (0)870 900 5050<BR>E-mail:bernd.becker@metoffice.gov.uk - <A
href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker</A><BR><A
href="http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game">http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game</A><BR></FONT></P>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of </B>Jennifer
Adams<BR><B>Sent:</B> 12 September 2011 18:57<BR><B>To:</B> GrADS Users
Forum<BR><B>Subject:</B> Re: [gradsusr] define variable independent of
time<BR></FONT><BR></DIV>
<DIV></DIV>Happily combining 'whatever' with 'theother' requires a metadata
override for one of the two defined variables. The best way to do this is not
with define but by using fwrite and writing a new descriptor file that has a
TDEF that matches one of the variables (or it could be completely abstract,
maybe this would be better to avoid confusion later on). If the variables
'whatever' and 'theother' do not vary in E, you can use the E dimension to
collect them into the same data set -- this might make the subsequent comparison
a little easier.
<DIV>--Jennifer</DIV>
<DIV><BR></DIV>
<DIV><BR>
<DIV>
<DIV><BR>
<DIV>
<DIV><BR></DIV>
<DIV>On Sep 12, 2011, at 4:03 AM, Becker, Bernd wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>Jeff,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>That is is the really hard part. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>Each item fx and obs describes a chunk of a time
series.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>One would have to manually calculate the start and end
dates</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>with respect to the reference dfile. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>If only (and I think Mike explained it a long time ago, and
I cannot find the</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>email) one could</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>set file 1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>set t 2 34</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>define whatever</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>set dfile 2</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>set t 6 39</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>define theother</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>and happily combine whatever with
theother.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>Think about multimodel ensemble hindcast analysis, trying to
composit</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>observed phenomena with modelled phenomena that simply
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>don't happen simultaneously. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>All the best,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011><FONT color=#0000ff
size=2 face=Arial>Bernd.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558105707-12092011></SPAN> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Bernd Becker Climate Impacts Product
Development<BR>Met Office Hadley Centre FitzRoy Road
Exeter Devon EX1 3PB United Kingdom<BR>Tel.: +44 (0) 1392
884511 Fax: +44 (0)870 900 5050<BR>E-mail:<A
href="mailto:bernd.becker@metoffice.gov.uk">bernd.becker@metoffice.gov.uk</A>
- <A
href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker</A><BR><A
href="http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game">http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game</A><BR></FONT></P>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> gradsusr-bounces@gradsusr.org [<A
href="mailto:gradsusr-bounces@gradsusr.org">mailto:gradsusr-bounces@gradsusr.org</A>]
<B>On Behalf Of </B>Jeffrey Duda<BR><B>Sent:</B> 10 September 2011
18:41<BR><B>To:</B> GrADS Users Forum<BR><B>Subject:</B> Re: [gradsusr] define
variable independent of time<BR></FONT><BR></DIV>
<DIV></DIV>You can reference the time of a variable when you use it in a
statement. For example, you could do<BR><BR>'d var.2(time=12Z01JAN1996)
- var.3(time=18Z13AUG2010)'<BR><BR>This should help you do what you want to
do.<BR><BR>Jeff Duda<BR><BR>
<DIV class=gmail_quote>On Sat, Sep 10, 2011 at 3:30 AM, Becker, Bernd <SPAN
dir=ltr><<A
href="mailto:bernd.becker@metoffice.gov.uk">bernd.becker@metoffice.gov.uk</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>Thanks
Arlindo,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>That
would be nice for single numbers.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>It as
one notch more elaborate:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>
'set dfile 2'<BR> 'set t 2 33'<BR> 'define
obs = 'var'.2'<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2
face=Arial> 'set dfile 3'<BR> 'set t 2 33'<BR>
'define fx = 'var'.3'<BR></FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>file 2 and 3 have different
time frames.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>d fx-obs
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>fails. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>And it would be a real
bummer to have to calculate the times from one file
relative</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>to the other
file.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>Compositing in this way
would be really hard. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN>Enjoy the
weekend!<BR>Bernd.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN></SPAN></FONT> </DIV>
<P><FONT size=2>--<BR>Bernd Becker Climate Impacts Product
Development<BR>Met Office Hadley Centre FitzRoy Road
Exeter Devon EX1 3PB United Kingdom<BR>Tel.: +44 (0) 1392
884511 Fax: <A href="tel:%2B44%20%280%29870%20900%205050" target=_blank
value="+448709005050">+44 (0)870 900 5050</A><BR><A
href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk"
target=_blank>E-mail:bernd.becker@metoffice.gov.uk</A> - <A
href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker"
target=_blank>http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker</A><BR><A
href="http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game"
target=_blank>http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game</A><BR></FONT></P>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us align=left>
<HR>
<FONT size=2 face=Tahoma><B>From:</B> <A
href="mailto:gradsusr-bounces@gradsusr.org"
target=_blank>gradsusr-bounces@gradsusr.org</A> [mailto:<A
href="mailto:gradsusr-bounces@gradsusr.org"
target=_blank>gradsusr-bounces@gradsusr.org</A>] <B>On Behalf Of </B>Arlindo
da Silva<BR><B>Sent:</B> 09 September 2011 17:40<BR><B>To:</B> GrADS Users
Forum<BR><B>Subject:</B> Re: [gradsusr] define variable independent of
time<BR></FONT><BR></DIV>
<DIV></DIV>On Fri, Sep 9, 2011 at 12:05 PM, Becker, Bernd <SPAN
dir=ltr><<A href="mailto:bernd.becker@metoffice.gov.uk"
target=_blank>bernd.becker@metoffice.gov.uk</A>></SPAN> wrote:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR>Simple question,<BR>complicated answer:<BR><BR>I
would like to composite stuff from several files.<BR><BR>Each file
has its own time and date info in its own .ctl file.<BR><BR>How can I add
elements from different such files?<BR><BR>How can I break away from the
strict treatment of the time dimension in<BR>grads?<BR><BR>open
file1.ctl<BR>define a=ave(b,t=1,t=34)<BR>close 1<BR>open
file2.ctl<BR>define c= ave(b,t=3,t=9)<BR>close 2<BR>etc.<BR><BR>d
a+c<BR>Cannot contour grid - all undefined values<BR><BR></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Try:</DIV>
<DIV><BR></DIV>
<DIV>d a(t=1)+c(t=1)</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></DIV><FONT color=#888888>-- <BR>Arlindo da Silva<BR><A
href="mailto:dasilva@alum.mit.edu"
target=_blank>dasilva@alum.mit.edu</A><BR></FONT></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"
target=_blank>http://gradsusr.org/mailman/listinfo/gradsusr</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Jeff Duda<BR>Iowa State University<BR>Meteorology
Graduate Student<BR><A href="http://www.meteor.iastate.edu/%7Ejdduda"
target=_blank>www.meteor.iastate.edu/~jdduda</A><BR></DIV>_______________________________________________<BR>gradsusr
mailing list<BR><A
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></BLOCKQUOTE></DIV><BR>
<DIV apple-content-edited="true"><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto"
class=Apple-style-span>
<DIV
style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space"><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto"
class=Apple-style-span><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto"
class=Apple-style-span>
<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></DIV></DIV></DIV></BODY></HTML>