<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Dear NCL users,</span><br style="font-family: "Times New Roman";">
<br style="font-family: "Times New Roman";">
<span style="font-family: "Times New Roman";"><span style="font-size: 18.6667px; font-family: "Times New Roman";"><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Is there any</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> NCL
function</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> to calculate the</span></span><br style="font-size: 18.6667px; font-family: "Times New Roman";">
<span style="font-size: 18.6667px; font-family: "Times New Roman";"><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">daily average from wrf </span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">output
files by each </span></span><span style="font-size: 12pt; font-family: Tahoma, Geneva, sans-serif; color: rgb(0, 0, 0);">6 hourly (4 files per day)</span></span><br style="font-family: "Times New Roman";">
</p>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">I've tried the function below, but it returns the error:</span></div>
<div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">No coordinate variable exists for dimension (Time) in variable (x)</span></div>
<div><br>
</div>
</div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">How can I resolve this issue for this data?</span></div>
<br style="font-family: "Times New Roman";">
<span style="font-family: "Times New Roman";"><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">files = systemfunc("ls -1 wrfout_d01_20*") + ".nc"</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> a = addfiles(files,"r")</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> x = wrf_user_getvar(a,"slp",-1)</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> printVarSummary(x)</span></div>
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> xDayAvg = calculate_daily_values(x, "avg", nDim, False)</span><br style="font-family: "Times New Roman";">
<br style="font-family: "Times New Roman";">
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Variable: x</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Type: float</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Total Size: 67200 bytes</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> 16800 values</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Number of Dimensions: 3</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Dimensions and sizes:</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">[Time | 12] x [south_north | 50] x [west_east | 28]</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Coordinates: </span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Number Of Attributes: 6</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> description :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Sea Level Pressure</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> units :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">hPa</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> coordinates :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">XLONG XLAT</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> stagger :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> MemoryOrder :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">XYZ</span></div>
<div><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> FieldType :</span><span class="Apple-tab-span" style="white-space: pre; font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</span><span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">104</span></div>
<div><br>
</div>
<br style="font-family: "Times New Roman";">
<span style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Regards </span><br>
<p></p>
</div>
</body>
</html>