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:
- header
astropy.io.fits.header.Header
FITS header containing PWV keys.
- header
- Returns:
- float
The PWV value
- Raises:
- PipeCalError
If no valid PWV is found.