Functions to convert between weather metrics