Coverage for src / CSET / operators / atmospheric_constants.py: 0%
9 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-02 15:01 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-02 15:01 +0000
1# © Crown copyright, Met Office (2022-2026) and CSET contributors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14"""Constants for the atmosphere."""
16# Reference pressure.
17P0 = 1000.0 # hPa
19# Specific gas constant for dry air.
20RD = 287.0
22# Specific gas constant for water vapour.
23RV = 461.0
25# Specific heat capacity for dry air.
26CPD = 1005.7
28# Latent heat of vaporization.
29LV = 2.501e6
31# Reference vapour pressure.
32E0 = 6.1078 # hPa
34# Reference temperature.
35T0 = 273.15 # K
37# Ratio between mixing ratio of dry and moist air.
38EPSILON = 0.622
40# Ratio between specific gas constant and specific heat capacity.
41KAPPA = RD / CPD