1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Crtm(CMakePackage):
"""The Community Radiative Transfer Model (CRTM) package.
The CRTM is composed of four important modules for gaseous transmittance,
surface emission and reflection, cloud and aerosol absorption and
scattering, and a solver for a radiative transfer."""
homepage = "https://www.jcsda.org/jcsda-project-community-radiative-transfer-model"
git = "https://github.com/JCSDA/crtm.git"
url = "https://github.com/JCSDA/crtm/archive/refs/tags/v2.3.0.tar.gz"
maintainers(
"BenjaminTJohnson",
"t-brown",
"edwardhartnett",
"AlexanderRichert-NOAA",
"Hang-Lei-NOAA",
"climbfuji",
)
variant(
"fix", default=False, description='Download CRTM coeffecient or "fix" files (several GBs).'
)
depends_on("cmake@3.15:")
depends_on("git-lfs")
depends_on("netcdf-fortran", when="@2.4.0:")
depends_on("netcdf-fortran", when="@v2.3-jedi.4")
depends_on("netcdf-fortran", when="@v2.4-jedi.1")
depends_on("netcdf-fortran", when="@v2.4-jedi.2")
depends_on("crtm-fix@2.3.0_emc", when="@2.3.0 +fix")
depends_on("crtm-fix@2.4.0_emc", when="@2.4.0 +fix")
depends_on("ecbuild", type=("build"), when="@v2.3-jedi.4")
depends_on("ecbuild", type=("build"), when="@v2.4-jedi.1")
depends_on("ecbuild", type=("build"), when="@v2.4-jedi.2")
# ecbuild release v2.4.0 is broken
# add ecbuild dependency for next release with fix
# depends_on("ecbuild", when="@2.4.0:", type=("build"))
license("CC0-1.0")
# REL-2.4.0_emc (v2.4.0 ecbuild does not work)
version("2.4.0", commit="5ddd0d6b0138284764065feda73b5adf599082a2")
# Uses the tip of REL-2.3.0_emc branch
version("2.3.0", commit="99760e693ce3b90a3b3b0e97d80972b4dfb61196")
# JEDI applications so far use these versions
# Branch release/crtm_jedi
version("v2.3-jedi.4", commit="bfede42adc6149213f28f58bf4e02fa8f7cb0198")
# Branch release/crtm_jedi_v2.4.0
version("v2.4-jedi.1", commit="82223419fdb479d76c2f2109c2b704e1d9618f22")
version("v2.4-jedi.2", commit="62831cbb6c1ffcbb219eeec60e1b1c422526f597")
|