 both thresholds.
By default <code>maxGap2 = maxGap</code> and is ignored if <code>threshClim2</code> has not
been specified.</p></dd>


<dt id="arg-coldspells">coldSpells<a class="anchor" aria-label="anchor" href="#arg-coldspells"></a></dt>
<dd><p>Boolean specifying if the code should detect cold events
instead of warm events. The default is <code>FALSE</code>. Please note that the
climatological thresholds for cold-spells are considered to be the inverse
of those for MHWs. For example, the default setting