<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Yan,<br>
<br>
the problem is the dot within the variable name. Write the variable
name p110.162 to a string variable and enclose it with $...$ to
import the variable with "->" :<br>
<br>
<font color="#000099"><tt> name = "p110.162"</tt><tt><br>
</tt><tt> a = f->$name$(:,:,:,:)</tt></font><br>
<br>
Bye,<br>
Karin<br>
<br>
<div class="moz-cite-prefix">Am 18.04.16 um 05:22 schrieb WIND:<br>
</div>
<blockquote cite="mid:tencent_583DFB993EABE00A0549E82B@qq.com"
type="cite"><span style="font-family: Simsun; font-size: medium;
line-height: normal;">Hi all, </span>
<div><span style="font-family: Simsun; font-size: medium;
line-height: normal;">I am trying to analyze the ERA-20C
temperature tendency due to physics data</span><span
style="font-family: Simsun; font-size: medium; line-height:
normal;">. My version is 6.2.1 and I cannot read the data by</span></div>
<div><font face="Simsun" size="3"><span style="line-height:
normal;"> a=f->p110.162(:,:,:,:)</span></font></div>
<div><span style="font-family: Simsun; font-size: medium;
line-height: normal;">the error says </span><br
style="font-family: Simsun; font-size: medium; line-height:
normal;">
<div><font face="Simsun" size="3"><span style="line-height:
normal;"> fatal:syntax error: line 18 before or near .162</span></font></div>
<div><font face="Simsun" size="3"><span style="line-height:
normal;"> a=f->p110.162</span></font></div>
<div>The file data is listed as</div>
<div>
<div> file global attributes:</div>
<div> Conventions : CF-1.6</div>
<div> history : 2016-04-18 01:42:30 GMT by
grib_to_netcdf-1.14.5: grib_to_netcdf</div>
<div> /data/data01/scratch/_mars-atls17-95e2cf679cd58ee9b4db4dd119a05a8d-b7PJNh.grib</div>
<div>-o
/data/data01/scratch/_grib2netcdf-atls09-95e2cf679cd58ee9b4db4dd119a05a8d-WLB</div>
<div>95O.nc -utime</div>
<div> dimensions:</div>
<div> longitude = 144</div>
<div> latitude = 13</div>
<div> level = 91</div>
<div> time = 33 // unlimited</div>
<div> variables:</div>
<div> float longitude ( longitude )</div>
<div> units : degrees_east</div>
<div> long_name : longitude</div>
<div><br>
</div>
<div> float latitude ( latitude )</div>
<div> units : degrees_north</div>
<div> long_name : latitude</div>
<div><br>
</div>
<div> integer level ( level )</div>
<div> long_name : model_level_number</div>
<div><br>
</div>
<div> integer time ( time )</div>
<div> units : hours since 1900-01-01 00:00:0.0</div>
<div> long_name : time</div>
<div> calendar : gregorian</div>
<div><br>
</div>
<div> short p110.162 ( time, level, latitude, longitude )</div>
<div> scale_factor : 0.001885669448575691</div>
<div> add_offset : 21.14551006902327</div>
<div> _FillValue : -32767</div>
<div> missing_value : -32767</div>
<div> units : K</div>
<div> long_name : Tendency of temperature due to
physics</div>
</div>
<span style="font-family: Simsun; font-size: medium;
line-height: normal;">Are there ways I can read this variable?
Any help you could lend would be </span><span
style="font-family: Simsun; font-size: medium; line-height:
normal;">appreciated.</span><br style="font-family: Simsun;
font-size: medium; line-height: normal;">
<br style="font-family: Simsun; font-size: medium; line-height:
normal;">
<span style="font-family: Simsun; font-size: medium;
line-height: normal;">Yan </span><span style="font-family:
'lucida Grande', Verdana, 'Microsoft YaHei'; line-height:
23.7999992370605px;"></span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</body>
</html>