<div dir="ltr"><div>Absolutely. However, the dimension environment will be initially set to that from the first control file you open. So to plot data from the other data file, you will have to change the dimension environment before plotting (or as part of the display command).</div><div><br></div><div>You can modify the valid dimension on which to plot any field in the display command using arguments such as...</div><div><br></div><div>'d temp(time=12Z01JAN2001)'</div><div><br></div><div>even if the current valid time in the dimension environment is, say, 00Z 01 NOV 2020. Same with vertical level:</div><div><br></div><div>'d height(lev=500)' <br></div><div><br></div><div>to plot 500-hPa heights when the current vertical level setting is, say, 1000 hPa.</div><div><br></div><div>Also, don't forget to either switch the active file using 'set dfile n' or indicate that the fields for the second plot are coming from the second open file, e.g.:</div><div><br></div><div>'d height.2(lev=500)'</div><div><br></div><div>would plot 500-hPa heights from a second opened control file even if the vertical level setting is 1000 hPa.<br></div><div>Jeff<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 2, 2020 at 9:13 PM Li, Guilong (EC) <<a href="mailto:guilong.li@canada.ca">guilong.li@canada.ca</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 lang="EN-CA">
<div class="gmail-m_-83637301161066044WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Hi Jeff,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Thanks. The question is if two control files have different data structure, can I open these two control files under the same script?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Guilong<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US"> gradsusr <<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>>
<b>On Behalf Of </b>Jeff Duda<br>
<b>Sent:</b> Monday, November 2, 2020 11:45 AM<br>
<b>To:</b> GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<b>Subject:</b> Re: [gradsusr] spatial and time series plot<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">A control file can only open a single type of data files (if they have templatable names and the same data structure). If you need to process two data sets that do not have the same data structure, then you will need to write separate control
 files for each file and open both control files in your script.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Jeff Duda<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Nov 2, 2020 at 8:59 AM Li, Guilong (EC) <<a href="mailto:guilong.li@canada.ca" target="_blank">guilong.li@canada.ca</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I want to plot a figure with left panel showing spatial plot and right panel showing a time series. These two plots should be on same page, but they are from
 different data. How to setup control file in order that I can do this plot.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Guilong
</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Jeff Duda, Research Scientist</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">University of Colorado Boulder<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Cooperative Institute for Research in Environmental Sciences<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">NOAA/OAR/ESRL/Global Systems Laboratory<br>
<span style="font-size:10pt">Boulder, CO</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</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"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><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 Laboratory<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div></div></div>