lair.pcaps#

Functions for calculating the valley heat deficit (VHD) and determining persistent cold air pool (PCAP) events.

Functions

build_pcap_mask

Build a boolean mask for PCAP events.

determine_pcap_events

Determine the periods of persistent cold air pool (PCAP) events using the valley heat deficit (VHD) metric.

filter_pcap_events

Filter a DataFrame to exclude rows within PCAP events.

valleyheatdeficit

Calculate the valley heat deficit.