covariance localization weights for an assimilation using a specified cutoff distance. The method proceeds by determining the distances between a set of depths/heights/Z-coordinates and then applying a Gaspari-Cohn 5th order polynomial to the distances. This can be used to implement localization along the depth/height/Z coordinate of an ensemble. If the distance between two depths/heights/Z-coordinates is NaN, returns a weight of 1 (i.e. no localization).</p>
<pre><div class="syntax line-block" id="dash-loc