<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
By the way, you do not need to write (:,:,:,:) when importing the
entire variable, write just <font color="#000099"><tt>a->$name$</tt></font><br>
<br>
Bye, Karin<br>
<br>
<div class="moz-cite-prefix">Am 18.04.16 um 11:02 schrieb Karin
Meier-Fleischer:<br>
</div>
<blockquote cite="mid:5714A2B3.8070908@dkrz.de" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a moz-do-not-send="true" 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>
<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>
<pre class="moz-signature" cols="72">--
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL
Application Support
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
Phone: +49 (0)40 460094 126
Fax: +49 (0)40 460094 270
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
URL: <a class="moz-txt-link-abbreviated" href="http://www.dkrz.de">www.dkrz.de</a>
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
</body>
</html>