Skip to content

Commit 98ddd36

Browse files
committed
make surface temperature dependent on surface height
1 parent 61c6dc0 commit 98ddd36

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/surface_conditions/surface_conditions.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,15 @@ function surface_state_to_conditions(
335335
end
336336

337337
function surface_temperature(::ZonallySymmetricSST, coordinates)
338-
FT = eltype(coordinates.lat)
339-
T = FT(271) + FT(29) * exp(-coordinates.lat^2 / (2 * 26^2))
338+
(; lat, z) = coordinates
339+
FT = eltype(lat)
340+
T = FT(271) + FT(29) * exp(-coordinates.lat^2 / (2 * 26^2)) - FT(6.5e-3) * z
340341
return T
341342
end
342343

343344
function surface_temperature(::ZonallyAsymmetricSST, coordinates)
344-
(; lat, long) = coordinates
345-
FT = eltype(coordinates.lat)
345+
(; lat, long, z) = coordinates
346+
FT = eltype(lat)
346347
#Assume a surface temperature that varies with both longitude and latitude, Neale and Hoskins, 2021
347348
T =
348349
(
@@ -355,7 +356,7 @@ function surface_temperature(::ZonallyAsymmetricSST, coordinates)
355356
FT(3) * cosd(long + FT(90)) * cospi(FT(0.5) * lat / FT(30))^2 +
356357
FT(0)
357358
) : FT(0)
358-
)
359+
) - FT(6.5e-3) * z
359360
return T
360361
end
361362

0 commit comments

Comments
 (0)