Skip to content

Commit

Permalink
Use lake-filled landsea mask
Browse files Browse the repository at this point in the history
Switch to using the new land mask computed by filling inland basins
instead of looking at elevation on sea level
  • Loading branch information
Sbozzolo committed Dec 2, 2024
1 parent e168347 commit e66a607
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 5 additions & 8 deletions experiments/ClimaEarth/Artifacts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 2 additions & 8 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e66a607

Please sign in to comment.