p.ma.array) - average over given parameters</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">data_shp</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">shape</span>

    <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">data_shp</span><span class="p">)</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
        <span class="k">if</span> <span class="n">lats_idc<