<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Ehsan,<br>
<br>
please, have a look at your data first. Do<br>
<br>
<span style="font-size: small; font-family: verdana, helvetica,
sans-serif;"> prc = f[:]->precipitationCal<br>
printVarSummary(prc)<br>
</span><span style="font-size: small; font-family: verdana,
helvetica, sans-serif;"><br>
</span>to see what dimension names precipitationCal has.<br>
<br>
-Karin<br>
<br>
<div class="moz-cite-prefix">Am 07.12.17 um 12:18 schrieb Ehsan
Taghizadeh:<br>
</div>
<blockquote type="cite"
cite="mid:2095500164.249562.1512645512760@mail.yahoo.com">
<div style="font-family:bookman old style, new york, times,
serif;font-size:16px;">
<div><font face="verdana, helvetica, sans-serif"><font size="2">Hi,
I want to open multiple netcdf files. Also I had to change
dimesion of variable (</font><span style="color: rgb(0, 0,
0); font-family: verdana, helvetica, sans-serif;"><font
size="1">precipitationCal(lat | :, lon | :)</font></span><font
size="2">), but I got an error (fatal:(lat) is not a
dimension name in variable (lon), could not determine
dimension number). What should I do?</font></font></div>
<div><font face="verdana, helvetica, sans-serif"><font size="2">Following
lines are simple code.</font></font></div>
<div><font face="verdana, helvetica, sans-serif" size="2"><br>
</font></div>
<div><font face="verdana, helvetica, sans-serif" size="2">
diri = "path/" ; input directory</font></div>
<div><font face="verdana, helvetica, sans-serif" size="2">
files = systemfunc("ls
"+diri+"3B-DAY-L.MS.MRG.3IMERG.201704*.nc") ; file paths</font></div>
<div><font face="verdana, helvetica, sans-serif" size="2"> f =
addfiles(files,"r")</font></div>
<div><span style="font-size: small; font-family: verdana,
helvetica, sans-serif;"> prc =
f[:]->precipitationCal(lat | :, lon | :) ; read
precipitation from all files</span><br>
</div>
<div><font face="verdana, helvetica, sans-serif" size="1"><br>
</font><br>
</div>
<div>Sincerely</div>
<div>Ehsan</div>
</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>