From e66a60744f8810dad6a9e1c7237d4d61ac77405d Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 27 Nov 2024 15:22:56 -0800 Subject: [PATCH] Use lake-filled landsea mask Switch to using the new land mask computed by filling inland basins instead of looking at elevation on sea level --- .buildkite/pipeline.yml | 2 +- experiments/ClimaEarth/Artifacts.toml | 13 +++++-------- experiments/ClimaEarth/run_amip.jl | 10 ++-------- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 59a4c7c7cd..95bfb21a28 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -228,7 +228,7 @@ steps: CLIMACOMMS_CONTEXT: "MPI" agents: slurm_ntasks: 4 - slurm_mem: 32GB + slurm_mem: 48GB # short high-res performance test - label: "Unthreaded AMIP FINE" # also reported by longruns with a flame graph diff --git a/experiments/ClimaEarth/Artifacts.toml b/experiments/ClimaEarth/Artifacts.toml index 86d620b8ce..ed502351ce 100644 --- a/experiments/ClimaEarth/Artifacts.toml +++ b/experiments/ClimaEarth/Artifacts.toml @@ -38,12 +38,9 @@ git-tree-sha1 = "9c3bd05b68e820fceb43d130ce6b4e86ce788e4e" sha256 = "46923ec3e1f9028a11899c47e6b13d675d84daa9db2f37351a19ec9187f87865" url = "https://caltech.box.com/shared/static/fuwajscgyblccy8y9aq01d0pgy91gwut.gz" -[earth_orography_30arcseconds] -git-tree-sha1 = "03dd08fcbf363ed055a176dd7adefb60ff1c3493" +[landsea_mask_30arcseconds] +git-tree-sha1 = "517c925535981f9d17ac9e7a65e2c35c3ce9597d" -[earth_orography_60arcseconds] -git-tree-sha1 = "fe19d8dbe7a18ff39588e1f718014b0479d9c0f7" - - [[earth_orography_60arcseconds.download]] - sha256 = "eca66c0701d1c2b9e271742314915ffbf4a0fae92709df611c323f38e019966e" - url = "https://caltech.box.com/shared/static/4asrxcgl6xsgenfcug9p0wkkyhtqilgk.gz" + [[landsea_mask_30arcseconds.download]] + sha256 = "11eaf6b7606056d198f3735f7b76ead76269cced186de78075f415101cf39088" + url = "https://caltech.box.com/shared/static/z013ay1k6oqofnw69bv5held9x374sux.gz" diff --git a/experiments/ClimaEarth/run_amip.jl b/experiments/ClimaEarth/run_amip.jl index 0265ea0a0d..4df5b179d0 100644 --- a/experiments/ClimaEarth/run_amip.jl +++ b/experiments/ClimaEarth/run_amip.jl @@ -247,8 +247,7 @@ catch error ) end co2_data = joinpath(@clima_artifact("co2_dataset", comms_ctx), "co2_mm_mlo.txt") -land_mask_data = - joinpath(@clima_artifact("earth_orography_60arcseconds", comms_ctx), "ETOPO_2022_v1_60s_N90W180_surface.nc") +land_mask_data = joinpath(@clima_artifact("landsea_mask_30arcseconds", comms_ctx), "landsea_mask.nc") #= ## Component Model Initialization @@ -293,12 +292,7 @@ Note that land-sea area fraction is different to the land-sea mask, which is a b =# # Preprocess the file to be 1s and 0s before remapping into onto the grid -land_area_fraction = SpaceVaryingInput( - land_mask_data, - "z", - boundary_space, - file_reader_kwargs = (; preprocess_func = (data) -> data >= 0), -) +land_area_fraction = SpaceVaryingInput(land_mask_data, "landsea", boundary_space) if !mono_surface land_area_fraction = Regridder.binary_mask.(land_area_fraction) end