<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Hi Arturo,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">
You need to define each file, no matter how many files you're gonna open! Based on your script, you have 3-variables. Therefore, do as follows:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">******************************************</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">'sdfopen D:/NETCDF/LEVEL_PRESURE.nc'</span></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif"> 'set dfile 1' </font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*</font></div>
<div class="gmail_default"><font color="#0b5394"><span style="font-family:arial,sans-serif;font-size:13px">'display pres'</span><font face="tahoma, sans-serif"><br></font></font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">*************</font></div>
<div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px">'sdfopen D:/NETCDF/USURFACEWIND.nc'</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394"> 'set dfile 2' </font></span><br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394">*</font></span></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span style="font-family:arial,sans-serif"><font color="#0b5394">*</font></span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394">*</font></span></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394">*</font></span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394">*</font></span></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><font color="#0b5394"><span style="font-family:arial,sans-serif;font-size:13px">'display uwnd'</span><span style="font-family:arial,sans-serif"><br>
</span></font></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial,sans-serif"><font color="#0b5394">******************</font></span></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">'sdfopen D:/NETCDF/</span><a href="http://t_mar2003.nc/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">t_mar2003.nc</a><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">'</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif"><br>
</span></div><div class="gmail_default"><font color="#0b5394"><font face="arial, sans-serif"> 'set dfile 3' </font><br></font></div><div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">*</font></div>
<div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">*</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">*</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">*</font></div>
<div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">*</font></div><div class="gmail_default"><font color="#0b5394"><span style="font-family:arial,sans-serif;font-size:13px">'display (air-273.4)'</span><font face="arial, sans-serif"><br>
</font></font></div><div class="gmail_default"><font face="arial, sans-serif" color="#0b5394">**************************************</font></div><div class="gmail_default" style><font color="#0b5394"><br></font></div><div class="gmail_default" style>
<font color="#0b5394">Good luck,</font></div><div class="gmail_default" style><font color="#0b5394">Mohsen</font></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#888888"></span></span><span><span dir="RTL" style="font-size:11.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#888888" lang="AR-SA"><span></span></span></span>--<div>
<span style="font-family:arial;font-size:12px;background-color:rgb(255,255,255)"><font color="#274e13">April showers bring May flowers!</font></span><br></div><div>--<font color="#b45f06"> <br>
<b>Mohsen Soltani, M.Sc.</b><br>Climatology Grad Student,<br>Department of Climatology, Faculty of Geography,</font></div><div><font color="#b45f06">University of Tehran, </font><span style="color:rgb(180,95,6)">Tehran, Iran</span></div>
<div><font color="#b45f06">voice: (+98) 9119772934<br>e-mail</font><font color="#bf9000">:</font> <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br></div></div></div>
<br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 1:40 PM, Abatan Abayomi <span dir="ltr"><<a href="mailto:yomiabatan69@gmail.com" target="_blank">yomiabatan69@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Arturo,<div><br></div><div>In which of the files is air and uwnd? If for example the variable air is located in file 2, then you need to type:</div><div><br></div><div> <span style="font-family:arial,sans-serif;font-size:13px">'display (air.2 - 273.4)', </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">and if uwnd is located in file 3, then type:</span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">'display uwnd.3'</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Hope that work for you.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Abayomi</span></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 3:29 PM, Arturo Hernandez Rosales <span dir="ltr"><<a href="mailto:ahernandezro@ipn.mx" target="_blank">ahernandezro@ipn.mx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DEAR USERS<br>
<br>
HELLO DEAR USERS GRADS, ANYONE CAN TELL ME HOW TO OPEN MORE THAN TWO<br>
FILES IN MY SCRIPTS, I HAVE THE FOLLOWING MISTAKE, THANKS FOR YOUR<br>
HELP.<br>
<br>
MY SCRIPTS<br>
<br>
'sdfopen D:/NETCDF/LEVEL_PRESURE.nc'<br>
'sdfopen D:/NETCDF/USURFACEWIND.nc'<br>
'sdfopen D:/NETCDF/<a href="http://t_mar2003.nc" target="_blank">t_mar2003.nc</a>'<br>
<br>
<br>
'set font 5'<br>
'set display color white'<br>
'display pres'<br>
*'display pr_wtr'<br>
'display (air-273.4)'<br>
'display uwnd'<br>
'run cbarn'<br>
'set grads on'<br>
<br>
'printim SURFACEWIND.png'<br>
<br>
'end'<br>
<br>
AND MY MISTAKE<br>
<br>
Syntax Error: Invalid Operand<br>
'air' not a variable or function name<br>
Error ocurred at column 2<br>
DISPLAY error: Invalid expression<br>
Expression = (air-273.4)<br>
Syntax Error: Invalid Operand<br>
'uwnd' not a variable or function name<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression<br>
Expression = uwnd<br>
Syntax Error: Invalid Operand<br>
'uwnd' not a variable or function name<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression<br>
Expression = uwnd<br>
ga-><br>
<br>
<br>
SOMEONE PLEASE HELP ME!!, THANKS<br>
<br>
ATT:<br>
M. en C. ARTURO HERNANDEZ ROSALES<br>
ESIA TICOMAN CIENCIAS DE LA TIERRA IPN<br>
DEPARTAMENTO DE GEOFISICA<br>
AREA: DINAMICA Y ESTABILIDAD DE FLUJOS<br>
ATMOSFERICOS<br>
TEL: 57296000, EXT. 56125<br>
MEXICO. D.F<br>
<br>
<font color="Gray" face="Arial" size="1"> La informaci&oacute;n de este correo as&iacute; como la contenida en los documentos que se adjuntan, pueden ser objeto de solicitudes de acceso a la informaci&oacute;n. Vis&iacute;tanos:<a href="<a href="http://www.ipn.mx" target="_blank">http://www.ipn.mx</a>"> <a href="http://www.ipn.mx" target="_blank">www.ipn.mx</a></a></font><br>
<br>
_______________________________________________<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><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><br><br> Trust in the Lord......<br>*******************************************************************************************<br>* Abayomi A. Abatan * <a href="tel:%2B1%20515%20572%204490" value="+15155724490" target="_blank">+1 515 572 4490</a> (Home) *<br>
* Geo. and Atmos. Sci. * <a href="tel:%2B1%20515%20294%201321" value="+15152941321" target="_blank">+1 515 294 1321</a> (Office) *<br>* Iowa State University, Ames * <a href="tel:%2B1%20515%20203%209020" value="+15152039020" target="_blank">+1 515 203 9020</a> (Cell) *<br>
* Iowa. USA. * *<br>
******************************************************************************************* <br><br>****************************************************************************************************<br>* Abayomi A. Abatan * 234-802-724-7846 (out of service) *<br>
* Fed. Univ. of Tech., * 234-803-217-8815 (out of service) *<br>* SEMS, PMB 704 Akure * *<br>* Ondo Nigeria. * *<br>
**************************************************************************************************** <br>
</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></div>