Skip to content

Instantly share code, notes, and snippets.

View MarcvdSluys's full-sized avatar
💭
Alive and coding...

Marc van der Sluys MarcvdSluys

💭
Alive and coding...
View GitHub Profile
@sourceperl
sourceperl / weather_math.py
Last active July 12, 2024 14:58
Compute frost and dew point (Python function)
import math
def get_frost_point_c(t_air_c, dew_point_c):
"""Compute the frost point in degrees Celsius
:param t_air_c: current ambient temperature in degrees Celsius
:type t_air_c: float
:param dew_point_c: current dew point in degrees Celsius
:type dew_point_c: float