Skip to content

Commit

Permalink
add cal_Pa
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Dec 2, 2023
1 parent 8214906 commit 8c8b8ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ET0_helper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function cal_Uz(U2::T, z)::T where {T<:Real}
log(67.8 * z - 5.42) / 4.87 * U2
end

cal_Pa(z::T) where {T<:Real} =
atm * (((293 - 0.0065 * z) / 293)^5.26) # kPa, Allen 1998 Eq. 7

function cal_lambda(Tair::T) where {T<:Real}
# * u"MJ / kg"
Expand Down Expand Up @@ -85,4 +87,4 @@ function aerodynamic_conductance(U2::T, hc::T; Zob=15.0) where {T<:Real}
end


export cal_Uz, cal_U2, cal_lambda, cal_gamma, cal_slope, cal_bowen, mol2m
export cal_Uz, cal_U2, cal_Pa, cal_lambda, cal_gamma, cal_slope, cal_bowen, mol2m

0 comments on commit 8c8b8ff

Please sign in to comment.