average_pwv

sofia_redux.calibration.pipecal_util.average_pwv(header)[source]

Robust average of precipitable water vapor from FITS header.

Header key used is WVZ_OBS only. WVZ_STA and WVZ_END may be present in header, but are considered unreliable.

Parameters:
headerastropy.io.fits.header.Header

FITS header containing PWV keys.

Returns:
float

The PWV value

Raises:
PipeCalError

If no valid PWV is found.