Skip to content

Commit

Permalink
Change cos_zenith_angle to cos_zenith
Browse files Browse the repository at this point in the history
It is refered to as `cos_zenith` by atmos and
`cos\thetas` by land. This unifies it with one of
the models.
[skip ci]
  • Loading branch information
imreddyTeja committed Feb 28, 2025
1 parent 97874c1 commit 0077d3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/interfacer.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ for the following properties:
| `LW_d` | downwards longwave flux | W m^-2 |
| `SW_d` | downwards shortwave flux | W m^-2 |

Note that `air_temperature`, `air_pressure`, `cos_zenith_angle`, `co2`, `diffuse_fraction`, `LW_d` and
Note that `air_temperature`, `air_pressure`, `cos_zenith`, `co2`, `diffuse_fraction`, `LW_d` and
`SW_d` will not be present in a `ClimaAtmosSimulation` if the model is setup with no radiation.
Because of this, a `ClimaAtmosSimulation` must have radiation if running with the full `ClimaLand` model.

Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/components/atmosphere/climaatmos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:air_temperature}) =
sim.integrator.p.params.thermodynamics_params,
CC.Fields.level(sim.integrator.p.precomputed.ᶜts, 1),
)
Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:cos_zenith_angle}) = CC.Fields.array2field(
Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:cos_zenith}) = CC.Fields.array2field(
sim.integrator.p.radiation.rrtmgp_model.cos_zenith,
CC.Fields.level(axes(sim.integrator.u.c), 1),
)
Expand Down
2 changes: 1 addition & 1 deletion src/Interfacer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ get_field(
val::Union{
Val{:air_pressure},
Val{:air_temperature},
Val{:cos_zenith_angle},
Val{:cos_zenith},
Val{:co2},
Val{:diffuse_fraction},
Val{:height_int},
Expand Down
2 changes: 1 addition & 1 deletion test/interfacer_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ end
for value in (
:air_pressure,
:air_temperature,
:cos_zenith_angle,
:cos_zenith,
:co2,
:diffuse_fraction,
:height_int,
Expand Down

0 comments on commit 0077d3c

Please sign in to comment.