<div dir="ltr">Hi Shasha,<div>Can you send the part of your script where you read in the data, along with the results of printing the string array that holds your systemfunc commands?</div><div><br></div><div>An example of coding where multiple files are read in would look something like this:</div><div>fils = systemfunc("ls *_<a href="http://pre_6hour_u.nc" target="_blank">pre_6hour_u.nc</a>")</div><div>print(fils)</div><div>a = addfiles(fils,"r")</div><div>array = a[:]->u</div><div>printVarSummary(array)</div><div>(You will have to modify the above for your situation.)</div><div><br></div><div>Please respond to the ncl-talk email list with the outputs of the print statements cited above, along with the coding you are using to read the data in. </div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 18, 2021 at 6:32 AM Shang, Shasha (IMK) via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</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="DE">
<div class="gmail-m_5490549454311188558WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Dear ncl-tal group,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I have a question that when I use NCL “systemfunc” to read many ERA5 files.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">The detail as following:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Because of the download limitation size of ERA5, we couldn’t download a long time series what we need in one file. So we usually have files like this: <a href="http://1979_1994_pre_6hour_u.nc" target="_blank">1979_1994_pre_6hour_u.nc</a> <a href="http://1995_2010_pre_6hour_u.nc" target="_blank">1995_2010_pre_6hour_u.nc</a>
<a href="http://2011_2018_pre_6hour_u.nc" target="_blank">2011_2018_pre_6hour_u.nc</a> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Then I will use NCL function “systemfunc” to list all the files and read them at the same time. But, at the end, when I calculate an area mean of one variable, the final values only right at
the first file, that is from 1979 to 1994 in my case. <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">When I calculate every file separately, the results are right.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">So the problem is that the NCL could not process several splitted ERA5 files right. Does anyone encounter the same problem? If there are any solutions for that?
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Shasha <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>