Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 25 additions & 19 deletions var/spack/repos/builtin/packages/crtm-fix/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,34 @@

import os

from spack import *
from spack.package import *


class CrtmFix(Package):
"""CRTM coeffecient files"""
"""CRTM coefficient files"""

homepage = "https://github.com/NOAA-EMC/crtm"
url = "ftp://ftp.ucar.edu/pub/cpaess/bjohns/fix_REL-2.3.0_emc.tgz"
url = "ftp://ftp.ssec.wisc.edu/pub/s4/CRTM/fix_REL-2.3.0_emc.tgz"

maintainers = ["kgerheiser"]
maintainers = [
"BenjaminTJohnson",
"edwardhartnett",
"AlexanderRichert-NOAA",
"Hang-Lei-NOAA",
"climbfuji",
]

version("2.4.0", sha256="7924285b8aa25b0b864643f03e7f281ca1816958e24c76aa9531b3ca902bf6e9")
version("2.4.0_emc", sha256="88d659ae5bc4434f7fafa232ff65b4c48442d2d1a25f8fc96078094fa572ac1a")
version("2.3.0_emc", sha256="fde73bb41c3c00666ab0eb8c40895e02d36fa8d7b0896c276375214a1ddaab8f")
version("2.3.0_emc", sha256="1452af2d1d11d57ef3c57b6b861646541e7042a9b0f3c230f9a82854d7e90924")
Comment thread
climbfuji marked this conversation as resolved.

variant("big_endian", default=True, description="Install big_endian fix files")
variant("little_endian", default=False,
description="Install little endian fix files")
variant("little_endian", default=False, description="Install little endian fix files")
variant("netcdf", default=True, description="Install netcdf fix files")

conflicts("+big_endian", when="+little_endian",
msg="big_endian and little_endian conflict")
conflicts("+big_endian", when="+little_endian", msg="big_endian and little_endian conflict")

def url_for_version(self, version):
url = "ftp://ftp.ucar.edu/pub/cpaess/bjohns/fix_REL-{}.tgz"
url = "ftp://ftp.ssec.wisc.edu/pub/s4/CRTM/fix_REL-{}.tgz"
return url.format(version)

def install(self, spec, prefix):
Expand All @@ -54,19 +57,22 @@ def install(self, spec, prefix):
# Remove the incorrect file, and install it as noACC,, then install
# correct file under new name.
if "+big_endian" in spec and spec.version == Version("2.4.0_emc"):
remove_path = join_path(os.getcwd(), "fix", "SpcCoeff",
"Big_Endian", "amsua_metop-c.SpcCoeff.bin")
remove_path = join_path(
os.getcwd(), "fix", "SpcCoeff", "Big_Endian", "amsua_metop-c.SpcCoeff.bin"
)
fix_files.remove(remove_path)

# This file is incorrect, install it as a different name.
install(join_path("fix", "SpcCoeff", "Big_Endian",
"amsua_metop-c.SpcCoeff.bin"),
join_path(self.prefix.fix, "amsua_metop-c.SpcCoeff.noACC.bin"))
install(
join_path("fix", "SpcCoeff", "Big_Endian", "amsua_metop-c.SpcCoeff.bin"),
join_path(self.prefix.fix, "amsua_metop-c.SpcCoeff.noACC.bin"),
)

# This "Little_Endian" file is actually the correct one.
install(join_path("fix", "SpcCoeff", "Little_Endian",
"amsua_metop-c_v2.SpcCoeff.bin"),
join_path(self.prefix.fix, "amsua_metop-c.SpcCoeff.bin"))
install(
join_path("fix", "SpcCoeff", "Little_Endian", "amsua_metop-c_v2.SpcCoeff.bin"),
join_path(self.prefix.fix, "amsua_metop-c.SpcCoeff.bin"),
)

for f in fix_files:
install(f, self.prefix.fix)
Expand Down
5 changes: 1 addition & 4 deletions var/spack/repos/builtin/packages/crtm/package.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# 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)
Expand Down Expand Up @@ -41,15 +41,13 @@ class Crtm(CMakePackage):
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")
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")
depends_on("ecbuild", type=("build"), when="@v2.4-jedi.1")
depends_on("ecbuild", type=("build"), when="@v2.4-jedi.2")

Expand All @@ -65,6 +63,5 @@ class Crtm(CMakePackage):
# Branch release/crtm_jedi
version("v2.3-jedi.4", commit="bfede42")
# Branch release/crtm_jedi_v2.4.0
version("v2.4-jedi", commit="0ee3593")
version("v2.4-jedi.1", commit="8222341")
version("v2.4-jedi.2", commit="62831cb")
1 change: 1 addition & 0 deletions var/spack/repos/builtin/packages/ecflow/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Ecflow(CMakePackage):
maintainers = ["climbfuji"]

# https://confluence.ecmwf.int/download/attachments/8650755/ecFlow-5.8.3-Source.tar.gz?api=v2
version("5.8.4", sha256="bc628556f8458c269a309e4c3b8d5a807fae7dfd415e27416fe9a3f544f88951")
version("5.8.3", sha256="1d890008414017da578dbd5a95cb1b4d599f01d5a3bb3e0297fe94a87fbd81a6")
version("4.13.0", sha256="c743896e0ec1d705edd2abf2ee5a47f4b6f7b1818d8c159b521bdff50a403e39")
version("4.12.0", sha256="566b797e8d78e3eb93946b923ef540ac61f50d4a17c9203d263c4fd5c39ab1d1")
Expand Down
5 changes: 5 additions & 0 deletions var/spack/repos/builtin/packages/hdf5/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class Hdf5(CMakePackage):
version("1.13.2", sha256="01643fa5b37dba7be7c4db6bbf3c5d07adf5c1fa17dbfaaa632a279b1b2f06da")

# Even versions are maintenance versions
version(
"1.14.0",
sha256="a571cc83efda62e1a51a0a912dd916d01895801c5025af91669484a1575a6ef4",
preferred=True,
)
version(
"1.12.2",
sha256="2a89af03d56ce7502dcae18232c241281ad1773561ec00c0f0e8ee2463910f14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class BaseEnv(BundlePackage):
depends_on("nccmp", type="run")

# Python
depends_on("python@3.7:")
depends_on("python@3.7:", type="run")
depends_on("py-pip", type="run")

# There is no need for install() since there is no code.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class GlobalWorkflowEnv(BundlePackage):

depends_on("ufs-pyenv", when="+python")
depends_on("prod-util")
depends_on("grib-util")
depends_on("nco")
depends_on("cdo")
depends_on("netcdf-c")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UfsSrwAppEnv(BundlePackage):
depends_on("netcdf-fortran")
depends_on("parallelio")
depends_on("esmf")
depends_on("fms@2022.01")
depends_on("fms@2022.04")
depends_on("bacio")
depends_on("crtm@2.4.0")
depends_on("g2")
Expand All @@ -40,7 +40,9 @@ class UfsSrwAppEnv(BundlePackage):
depends_on("nemsiogfs")
depends_on("sfcio")
depends_on("sigio")
depends_on("wrf-io")
depends_on("w3emc")
depends_on("wgrib2")
depends_on("gsi-ncdiag")

# There is no need for install() since there is no code.