<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello ncl-users,</p>
<p>I had a question on the ncl function eofunc_n at
<a class="moz-txt-link-freetext" href="https://www.ncl.ucar.edu/Document/Functions/Built-in/eofunc_n.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/eofunc_n.shtml</a></p>
<p>The corresponding EOF map from e.g 3 (below) computes EOF based
on 4 dimensional variable, calculated on the last 3 dimensions.</p>
<p>Is there a way to calculate EOF on the first 2 dimensions e.g. ev
= eofunc_n(z<b>(/0,1/)</b>,neval,False,0) ?</p>
<p>I wish to compute EOFs based on the time and ensemble dimension
==>e.g. TS=[<b>time,ens</b>, lat,lon]<br>
</p>
<p><b>Example 3</b>
</p>
<p>
Let z be four-dimensional with dimensions time, lev, lat, lon:
</p>
<pre> neval = 3 ; calculate 3 EOFs out of klev*nlat*mlon
ev = <strong>eofunc_n</strong>(z,neval,False,0)
; ev will be dimensioned neval, level, lat, lon
; Use <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/eofunc_n_Wrap.shtml"><strong>eofunc_n_Wrap</strong></a> if metadata retention is desired
; ev = <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/eofunc_n_Wrap.shtml"><strong>eofunc_n_Wrap</strong></a>(z,neval,False,0)
Best
Sri
</pre>
</body>
</html>