SUEWS API Site
Documentation of SUEWS source code
|
AnOHM: Analytical Objective Hysteresis Model. More...
Functions/Subroutines | |
subroutine | anohm (tstep, dt_since_start, qn1, qn1_av_prev, dqndt_prev, qf, MetForcingData_grid, moist_surf, alb, emis, cpAnOHM, kkAnOHM, chAnOHM, sfr, nsurf, EmissionsMethod, id, Gridiv, qn1_av_next, dqndt_next, a1, a2, a3, qs, deltaQi) |
High level wrapper for AnOHM calculation. More... | |
subroutine | anohm_coef (sfc_typ, xid, xgrid, MetForcingData_grid, moist, EmissionsMethod, qf, alb, emis, cpAnOHM, kkAnOHM, chAnOHM, xa1, xa2, xa3) |
High level wrapper for AnOHM coefficients calculation. More... | |
subroutine | anohm_xts (sfc_typ, ASd, mSd, ATa, mTa, tau, mWS, mWF, mAH, xalb, xemis, xcp, xk, xch, xBo, tSd, xTHr, xTs) |
calculate the surface temperature related parameters (ATs, mTs, gamma) based on forcings and sfc. More... | |
subroutine | anohm_coef_land_cal (ASd, mSd, ATa, mTa, tau, mWS, mWF, mAH, xalb, xemis, xcp, xk, xch, xBo, xa1, xa2, xa3, ATs, mTs, gamma) |
subroutine | anohm_coef_water_cal (ASd, mSd, ATa, mTa, tau, mWS, mWF, mAH, xalb, xemis, xcp, xk, xch, xBo, xeta, xmu, xa1, xa2, xa3, ATs, mTs, gamma) |
a wrapper for retrieving AnOHM coefficients of water body More... | |
subroutine | anohm_fc (xid, MetForcingData_grid, EmissionsMethod, qf, ASd, mSd, tSd, ATa, mTa, tTa, tau, mWS, mWF, mAH) |
subroutine | anohm_fcload (xid, MetForcingData_grid, EmissionsMethod, qf, Sd, Ta, RH, pres, WS, WF, AH, tHr) |
load forcing series for AnOHM_FcCal More... | |
subroutine | anohm_fccal (Sd, Ta, WS, WF, AH, tHr, ASd, mSd, tSd, ATa, mTa, tTa, tau, mWS, mWF, mAH) |
calculate the key parameters of a sinusoidal curve for AnOHM forcings i.e., a, b, c in a*Sin(Pi/12*t+b)+c More... | |
subroutine | anohm_shapefit (tHr, obs, amp, mean, tpeak) |
calculate the key parameters of a sinusoidal curve for AnOHM forcings i.e., a, b, c in a*Sin(Pi/12*t+b)+c, where t is in hour More... | |
subroutine | fsin (m, n, x, xdat, ydat, fvec, iflag) |
sinusoidal function f(t) for fitting: f(t) = mean+amp*Sin(Pi/12(t-delta)) x = (/mean,amp,delta/) contains the fitting parameters More... | |
subroutine | anohm_bo_cal (sfc_typ, Sd, Ta, RH, pres, tHr, ASd, mSd, ATa, mTa, tau, mWS, mWF, mAH, xalb, xemis, xcp, xk, xch, xSM, tSd, xBo) |
estimate daytime Bowen ratio for calculation of AnOHM coefficients More... | |
subroutine | fcnbo (n, x, fvec, iflag, m, prms) |
this fucntion will construct an equaiton for Bo calculation More... | |
real(kind(1d0)) function | esat_fn (Ta) |
calculate saturation vapor pressure (es) at air temperature (Ta) (MRR, 1987) More... | |
real(kind(1d0)) function | qsat_fn (Ta, pres) |
calculate saturation specific humidity (qsat) at air temperature (Ta) and atmospheric pressure (pres) (MRR, 1987) More... | |
real(kind(1d0)) function | qa_fn (Ta, RH, pres) |
convert relative humidity (RH) to specific humidity (qa) at air temperature (Ta) and atmospheric pressure (pres) More... | |
AnOHM: Analytical Objective Hysteresis Model.
calculate heat storage. model details refer to https://doi.org/10.5194/gmd-2016-300
subroutine anohm_module::anohm | ( | integer, intent(in) | tstep, |
integer, intent(in) | dt_since_start, | ||
real(kind(1d0)), intent(in) | qn1, | ||
real(kind(1d0)), intent(in) | qn1_av_prev, | ||
real(kind(1d0)), intent(in) | dqndt_prev, | ||
real(kind(1d0)), intent(in) | qf, | ||
real(kind(1d0)), dimension(:, :), intent(in) | MetForcingData_grid, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | moist_surf, | ||
real(kind(1d0)), dimension(:), intent(in) | alb, | ||
real(kind(1d0)), dimension(:), intent(in) | emis, | ||
real(kind(1d0)), dimension(:), intent(in) | cpAnOHM, | ||
real(kind(1d0)), dimension(:), intent(in) | kkAnOHM, | ||
real(kind(1d0)), dimension(:), intent(in) | chAnOHM, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr, | ||
integer, intent(in) | nsurf, | ||
integer, intent(in) | EmissionsMethod, | ||
integer, intent(in) | id, | ||
integer, intent(in) | Gridiv, | ||
real(kind(1d0)), intent(out) | qn1_av_next, | ||
real(kind(1d0)), intent(out) | dqndt_next, | ||
real(kind(1d0)), intent(out) | a1, | ||
real(kind(1d0)), intent(out) | a2, | ||
real(kind(1d0)), intent(out) | a3, | ||
real(kind(1d0)), intent(out) | qs, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | deltaQi | ||
) |
High level wrapper for AnOHM calculation.
calculate heat storage based within AnOHM framework.
[in] | metforcingdata_grid | met forcing array of grid |
[in] | qn1 | net all-wave radiation [W m-2] |
[in] | qf | anthropogenic heat flux [W m-2] |
[in] | sfr | surface fraction (0-1) [-] |
[in] | moist_surf | non-dimensional surface wetness status (0-1) [-] |
[in] | alb | albedo [-] |
[in] | emis | emissivity [-] |
[in] | cpanohm | heat capacity [J m-3 K-1] |
[in] | kkanohm | thermal conductivity [W m-1 K-1] |
[in] | chanohm | bulk transfer coef [J m-3 K-1] |
[in] | id | day of year [-] |
[in] | gridiv | grid id [-] |
[in] | emissionsmethod | AnthropHeat option [-] |
[in] | nsurf | number of surfaces [-] |
[out] | a1 | AnOHM coefficients of grid [-] |
[out] | a2 | AnOHM coefficients of grid [h] |
[out] | a3 | AnOHM coefficients of grid [W m-2] |
[out] | qs | storage heat flux [W m-2] |
[out] | deltaqi | storage heat flux of snow surfaces |
Definition at line 36 of file suews_phys_anohm.f95.
References anohm_coef(), errorhint(), ohm_dqndt_cal_x(), and ohm_qs_cal().
Referenced by suews_driver::suews_cal_qs().
subroutine anohm_module::anohm_bo_cal | ( | integer, intent(in) | sfc_typ, |
real(kind=8), dimension(:), intent(in) | Sd, | ||
real(kind=8), dimension(:), intent(in) | Ta, | ||
real(kind=8), dimension(:), intent(in) | RH, | ||
real(kind=8), dimension(:), intent(in) | pres, | ||
real(kind=8), dimension(:), intent(in) | tHr, | ||
real(kind(1d0)), intent(in) | ASd, | ||
real(kind(1d0)), intent(in) | mSd, | ||
real(kind(1d0)), intent(in) | ATa, | ||
real(kind(1d0)), intent(in) | mTa, | ||
real(kind(1d0)), intent(in) | tau, | ||
real(kind(1d0)), intent(in) | mWS, | ||
real(kind(1d0)), intent(in) | mWF, | ||
real(kind(1d0)), intent(in) | mAH, | ||
real(kind(1d0)), intent(in) | xalb, | ||
real(kind(1d0)), intent(in) | xemis, | ||
real(kind(1d0)), intent(in) | xcp, | ||
real(kind(1d0)), intent(in) | xk, | ||
real(kind(1d0)), intent(in) | xch, | ||
real(kind(1d0)), intent(in) | xSM, | ||
real(kind(1d0)), intent(in) | tSd, | ||
real(kind=8), intent(out) | xBo | ||
) |
estimate daytime Bowen ratio for calculation of AnOHM coefficients
[in] | sd | incoming solar radiation [W m-2] |
[in] | ta | air temperature [degC] |
[in] | rh | relative humidity [%] |
[in] | pres | Atmospheric pressure [mbar] |
[in] | thr | local time [hr] |
[in] | asd | daily amplitude of solar radiation [W m-2] |
[in] | msd | daily mean solar radiation [W m-2] |
[in] | tsd | local peaking time of solar radiation [hr] |
[in] | ata | daily amplitude of air temperature [degC] |
[in] | mta | daily mean air temperature [degC] |
[in] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[in] | mws | daily mean wind speed [m s-1] |
[in] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[in] | mah | daily mean anthropogenic heat flux [W m-2] |
[in] | xalb | albedo [-] |
[in] | xemis | emissivity [-] |
[in] | xcp | heat capacity [J m-3 K-1] |
[in] | xk | thermal conductivity [W m-1 K-1] |
[in] | xch | bulk transfer coef [J m-3 K-1] |
[in] | xsm | surface moisture status [-] |
Definition at line 1044 of file suews_phys_anohm.f95.
References fcnbo(), and hybrd1().
Referenced by anohm_coef().
subroutine anohm_module::anohm_coef | ( | integer, intent(in) | sfc_typ, |
integer, intent(in) | xid, | ||
integer, intent(in) | xgrid, | ||
real(kind(1d0)), dimension(:, :), intent(in) | MetForcingData_grid, | ||
real(kind(1d0)), dimension(:), intent(in) | moist, | ||
integer, intent(in) | EmissionsMethod, | ||
real(kind(1d0)), intent(in) | qf, | ||
real(kind(1d0)), dimension(:), intent(in) | alb, | ||
real(kind(1d0)), dimension(:), intent(in) | emis, | ||
real(kind(1d0)), dimension(:), intent(in) | cpAnOHM, | ||
real(kind(1d0)), dimension(:), intent(in) | kkAnOHM, | ||
real(kind(1d0)), dimension(:), intent(in) | chAnOHM, | ||
real(kind(1d0)), intent(out) | xa1, | ||
real(kind(1d0)), intent(out) | xa2, | ||
real(kind(1d0)), intent(out) | xa3 | ||
) |
High level wrapper for AnOHM coefficients calculation.
calculate OHM coefficients within AnOHM framework.
[in] | sfc_typ | surface type [-] |
[in] | xid | day of year [-] |
[in] | xgrid | grid id [-] |
[in] | emissionsmethod | AnthropHeat option [-] |
[in] | qf | anthropogenic heat flux [W m-2] |
[in] | alb | albedo [-] |
[in] | emis | emissivity [-] |
[in] | cpanohm | heat capacity [J m-3 K-1] |
[in] | kkanohm | thermal conductivity [W m-1 K-1] |
[in] | chanohm | bulk transfer coef [J m-3 K-1] |
[in] | moist | surface wetness status [-] |
[in] | metforcingdata_grid | met forcing array of grid |
[out] | xa1 | AnOHM coefficients of grid [-] |
[out] | xa2 | AnOHM coefficients of grid [h] |
[out] | xa3 | AnOHM coefficients of grid [W m-2] |
Definition at line 154 of file suews_phys_anohm.f95.
References anohm_bo_cal(), anohm_coef_land_cal(), anohm_coef_water_cal(), anohm_fc(), and anohm_fcload().
Referenced by anohm().
subroutine anohm_module::anohm_coef_land_cal | ( | real(kind(1d0)), intent(in) | ASd, |
real(kind(1d0)), intent(in) | mSd, | ||
real(kind(1d0)), intent(in) | ATa, | ||
real(kind(1d0)), intent(in) | mTa, | ||
real(kind(1d0)), intent(in) | tau, | ||
real(kind(1d0)), intent(in) | mWS, | ||
real(kind(1d0)), intent(in) | mWF, | ||
real(kind(1d0)), intent(in) | mAH, | ||
real(kind(1d0)), intent(in) | xalb, | ||
real(kind(1d0)), intent(in) | xemis, | ||
real(kind(1d0)), intent(in) | xcp, | ||
real(kind(1d0)), intent(in) | xk, | ||
real(kind(1d0)), intent(in) | xch, | ||
real(kind(1d0)), intent(in) | xBo, | ||
real(kind(1d0)), intent(out) | xa1, | ||
real(kind(1d0)), intent(out) | xa2, | ||
real(kind(1d0)), intent(out) | xa3, | ||
real(kind(1d0)), intent(out) | ATs, | ||
real(kind(1d0)), intent(out) | mTs, | ||
real(kind(1d0)), intent(out) | gamma | ||
) |
[in] | asd | daily amplitude of solar radiation [W m-2] |
[in] | msd | daily mean solar radiation [W m-2] |
[in] | ata | daily amplitude of air temperature [K] |
[in] | mta | daily mean air temperature [K] |
[in] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[in] | mws | daily mean wind speed [m s-1] |
[in] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[in] | mah | daily mean anthropogenic heat flux [W m-2] |
[in] | xalb | albedo [-] |
[in] | xemis | emissivity [-] |
[in] | xcp | heat capacity [J m-3 K-1] |
[in] | xk | thermal conductivity [W m-1 K-1] |
[in] | xch | bulk transfer coef [J m-3 K-1] |
[in] | xbo | Bowen ratio [-] |
[out] | xa1 | AnOHM coefficients of grid [-] |
[out] | xa2 | AnOHM coefficients of grid [h] |
[out] | xa3 | AnOHM coefficients of grid [W m-2] |
[out] | ats | daily amplitude of surface temperature [K] |
[out] | mts | daily mean of surface temperature [K] |
[out] | gamma | phase difference between Ts and Sd [K] |
Definition at line 367 of file suews_phys_anohm.f95.
Referenced by anohm_coef(), and anohm_xts().
subroutine anohm_module::anohm_coef_water_cal | ( | real(kind(1d0)), intent(in) | ASd, |
real(kind(1d0)), intent(in) | mSd, | ||
real(kind(1d0)), intent(in) | ATa, | ||
real(kind(1d0)), intent(in) | mTa, | ||
real(kind(1d0)), intent(in) | tau, | ||
real(kind(1d0)), intent(in) | mWS, | ||
real(kind(1d0)), intent(in) | mWF, | ||
real(kind(1d0)), intent(in) | mAH, | ||
real(kind(1d0)), intent(in) | xalb, | ||
real(kind(1d0)), intent(in) | xemis, | ||
real(kind(1d0)), intent(in) | xcp, | ||
real(kind(1d0)), intent(in) | xk, | ||
real(kind(1d0)), intent(in) | xch, | ||
real(kind(1d0)), intent(in) | xBo, | ||
real(kind(1d0)), intent(in) | xeta, | ||
real(kind(1d0)), intent(in) | xmu, | ||
real(kind(1d0)), intent(out) | xa1, | ||
real(kind(1d0)), intent(out) | xa2, | ||
real(kind(1d0)), intent(out) | xa3, | ||
real(kind(1d0)), intent(out) | ATs, | ||
real(kind(1d0)), intent(out) | mTs, | ||
real(kind(1d0)), intent(out) | gamma | ||
) |
a wrapper for retrieving AnOHM coefficients of water body
[in] | asd | daily amplitude of solar radiation [W m-2] |
[in] | msd | daily mean solar radiation [W m-2] |
[in] | ata | daily amplitude of air temperature [K] |
[in] | mta | daily mean air temperature [K] |
[in] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[in] | mws | daily mean wind speed [m s-1] |
[in] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[in] | mah | daily mean anthropogenic heat flux [W m-2] |
[in] | xalb | albedo [-] |
[in] | xemis | emissivity [-] |
[in] | xcp | heat capacity [J m-3 K-1] |
[in] | xk | thermal conductivity [W m-1 K-1] |
[in] | xch | bulk transfer coef [J m-3 K-1] |
[in] | xbo | Bowen ratio [-] |
[in] | xeta | effective absorption fraction [-] |
[in] | xmu | effective absorption coefficient [m-1] |
[out] | xa1 | AnOHM coefficients of grid [-] |
[out] | xa2 | AnOHM coefficients of grid [h] |
[out] | xa3 | AnOHM coefficients of grid [W m-2] |
[out] | ats | daily amplitude of surface temperature [K] |
[out] | mts | daily mean of surface temperature [K] |
[out] | gamma | phase difference between Ts and Sd [K] |
Definition at line 524 of file suews_phys_anohm.f95.
Referenced by anohm_coef(), and anohm_xts().
subroutine anohm_module::anohm_fc | ( | integer, intent(in) | xid, |
real(kind(1d0)), dimension(:, :), intent(in) | MetForcingData_grid, | ||
integer, intent(in) | EmissionsMethod, | ||
real(kind(1d0)), intent(in) | qf, | ||
real(kind(1d0)), intent(out) | ASd, | ||
real(kind(1d0)), intent(out) | mSd, | ||
real(kind(1d0)), intent(out) | tSd, | ||
real(kind(1d0)), intent(out) | ATa, | ||
real(kind(1d0)), intent(out) | mTa, | ||
real(kind(1d0)), intent(out) | tTa, | ||
real(kind(1d0)), intent(out) | tau, | ||
real(kind(1d0)), intent(out) | mWS, | ||
real(kind(1d0)), intent(out) | mWF, | ||
real(kind(1d0)), intent(out) | mAH | ||
) |
[in] | qf | anthropogenic heat flux [W m-2] |
[out] | asd | daily amplitude of solar radiation [W m-2] |
[out] | msd | daily mean solar radiation [W m-2] |
[out] | tsd | local peaking time of solar radiation [hr] |
[out] | ata | daily amplitude of air temperature [degC] |
[out] | mta | daily mean air temperature [degC] |
[out] | tta | local peaking time of air temperature [hour] |
[out] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[out] | mws | daily mean wind speed [m s-1] |
[out] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[out] | mah | daily mean anthropogenic heat flux [W m-2] |
Definition at line 670 of file suews_phys_anohm.f95.
References anohm_fccal(), and anohm_fcload().
Referenced by anohm_coef().
subroutine anohm_module::anohm_fccal | ( | real(kind(1d0)), dimension(:), intent(in) | Sd, |
real(kind(1d0)), dimension(:), intent(in) | Ta, | ||
real(kind(1d0)), dimension(:), intent(in) | WS, | ||
real(kind(1d0)), dimension(:), intent(in) | WF, | ||
real(kind(1d0)), dimension(:), intent(in) | AH, | ||
real(kind(1d0)), dimension(:), intent(in) | tHr, | ||
real(kind(1d0)), intent(out) | ASd, | ||
real(kind(1d0)), intent(out) | mSd, | ||
real(kind(1d0)), intent(out) | tSd, | ||
real(kind(1d0)), intent(out) | ATa, | ||
real(kind(1d0)), intent(out) | mTa, | ||
real(kind(1d0)), intent(out) | tTa, | ||
real(kind(1d0)), intent(out) | tau, | ||
real(kind(1d0)), intent(out) | mWS, | ||
real(kind(1d0)), intent(out) | mWF, | ||
real(kind(1d0)), intent(out) | mAH | ||
) |
calculate the key parameters of a sinusoidal curve for AnOHM forcings i.e., a, b, c in a*Sin(Pi/12*t+b)+c
[in] | sd | incoming shortwave radiation [W m-2] |
[in] | ta | air temperature [degC] |
[in] | ws | wind speed [m s-1] |
[in] | wf | water flux density [m3 s-1 m-2] |
[in] | ah | anthropogenic heat [W m-2] |
[in] | thr | time [hr] |
[out] | asd | daily amplitude of solar radiation [W m-2] |
[out] | msd | daily mean solar radiation [W m-2] |
[out] | tsd | local peaking time of solar radiation [hr] |
[out] | ata | daily amplitude of air temperature [degC] |
[out] | mta | daily mean air temperature [degC] |
[out] | tta | local peaking time of air temperature [hr] |
[out] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[out] | mws | daily mean wind speed [m s-1] |
[out] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[out] | mah | daily mean anthropogenic heat flux [W m-2] |
Definition at line 811 of file suews_phys_anohm.f95.
References anohm_shapefit(), and r8vec_print().
Referenced by anohm_fc().
subroutine anohm_module::anohm_fcload | ( | integer, intent(in) | xid, |
real(kind(1d0)), dimension(:, :), intent(in) | MetForcingData_grid, | ||
integer, intent(in) | EmissionsMethod, | ||
real(kind(1d0)), intent(in) | qf, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | Sd, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | Ta, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | RH, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | pres, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | WS, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | WF, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | AH, | ||
real(kind(1d0)), dimension(:), intent(out), allocatable | tHr | ||
) |
load forcing series for AnOHM_FcCal
[in] | xid | day of year |
[in] | emissionsmethod | AnthropHeat option |
[in] | metforcingdata_grid | met forcing array of grid |
[in] | qf | anthropogenic heat flux [W m-2] |
[out] | sd | incoming solar radiation [W m-2] |
[out] | ta | air temperature [degC] |
[out] | rh | relative humidity [%] |
[out] | pres | atmospheric pressure [mbar] |
[out] | ws | wind speed [m s-1] |
[out] | wf | water flux density [m3 s-1 m-2] |
[out] | ah | anthropogenic heat [W m-2] |
[out] | thr | local time [hr] |
Definition at line 720 of file suews_phys_anohm.f95.
Referenced by anohm_coef(), and anohm_fc().
subroutine anohm_module::anohm_shapefit | ( | real(kind(1d0)), dimension(:), intent(in) | tHr, |
real(kind(1d0)), dimension(:), intent(in) | obs, | ||
real(kind(1d0)), intent(out) | amp, | ||
real(kind(1d0)), intent(out) | mean, | ||
real(kind(1d0)), intent(out) | tpeak | ||
) |
calculate the key parameters of a sinusoidal curve for AnOHM forcings i.e., a, b, c in a*Sin(Pi/12*t+b)+c, where t is in hour
[in] | thr | time in hour |
[in] | obs | observation |
[out] | amp | amplitude |
[out] | mean | average |
[out] | tpeak | peaking time (h) |
Definition at line 943 of file suews_phys_anohm.f95.
References fsin(), and lmdif1().
Referenced by anohm_fccal().
subroutine anohm_module::anohm_xts | ( | integer, intent(in) | sfc_typ, |
real(kind(1d0)), intent(in) | ASd, | ||
real(kind(1d0)), intent(in) | mSd, | ||
real(kind(1d0)), intent(in) | ATa, | ||
real(kind(1d0)), intent(in) | mTa, | ||
real(kind(1d0)), intent(in) | tau, | ||
real(kind(1d0)), intent(in) | mWS, | ||
real(kind(1d0)), intent(in) | mWF, | ||
real(kind(1d0)), intent(in) | mAH, | ||
real(kind(1d0)), intent(in) | xalb, | ||
real(kind(1d0)), intent(in) | xemis, | ||
real(kind(1d0)), intent(in) | xcp, | ||
real(kind(1d0)), intent(in) | xk, | ||
real(kind(1d0)), intent(in) | xch, | ||
real(kind(1d0)), intent(in) | xBo, | ||
real(kind(1d0)), intent(in) | tSd, | ||
real(kind(1d0)), intent(in) | xTHr, | ||
real(kind(1d0)), intent(out) | xTs | ||
) |
calculate the surface temperature related parameters (ATs, mTs, gamma) based on forcings and sfc.
conditions
[in] | sfc_typ | surface type (land: 1-6, water: 7) |
[in] | asd | daily amplitude of solar radiation [W m-2] |
[in] | msd | daily mean solar radiation [W m-2] |
[in] | ata | daily amplitude of air temperature [K] |
[in] | mta | daily mean air temperature [K] |
[in] | tau | phase lag between Sd and Ta (Ta-Sd) [rad] |
[in] | mws | daily mean wind speed [m s-1] |
[in] | mwf | daily mean underground moisture flux [m3 s-1 m-2] |
[in] | mah | daily mean anthropogenic heat flux [W m-2] |
[in] | xalb | albedo [-] |
[in] | xemis | emissivity [-] |
[in] | xcp | heat capacity [J m-3 K-1] |
[in] | xk | thermal conductivity [W m-1 K-1] |
[in] | xch | bulk transfer coef [J m-3 K-1] |
[in] | xbo | Bowen ratio [-] |
[in] | tsd | local peaking time of Sd, hour |
[in] | xthr | local time to calculate Ts, hour |
[out] | xts | surface temperature at xTHr(hr) |
Definition at line 297 of file suews_phys_anohm.f95.
References anohm_coef_land_cal(), and anohm_coef_water_cal().
Referenced by fcnbo().
real(kind(1d0)) function anohm_module::esat_fn | ( | real(kind(1d0)) | Ta | ) |
calculate saturation vapor pressure (es) at air temperature (Ta) (MRR, 1987)
ta | air temperature [degC] |
Definition at line 1401 of file suews_phys_anohm.f95.
Referenced by qa_fn(), and qsat_fn().
subroutine anohm_module::fcnbo | ( | integer(kind=4) | n, |
real(kind=8), dimension(n) | x, | ||
real(kind=8), dimension(n) | fvec, | ||
integer(kind=4) | iflag, | ||
integer(kind=4) | m, | ||
real(kind=8), dimension(m) | prms | ||
) |
this fucntion will construct an equaiton for Bo calculation
Definition at line 1171 of file suews_phys_anohm.f95.
References anohm_xts(), qa_fn(), qsat_fn(), and r8vec_print().
Referenced by anohm_bo_cal().
subroutine anohm_module::fsin | ( | integer(kind=4) | m, |
integer(kind=4) | n, | ||
real(kind=8), dimension(n) | x, | ||
real(kind=8), dimension(m) | xdat, | ||
real(kind=8), dimension(m) | ydat, | ||
real(kind=8), dimension(m) | fvec, | ||
integer(kind=4) | iflag | ||
) |
sinusoidal function f(t) for fitting: f(t) = mean+amp*Sin(Pi/12(t-delta)) x = (/mean,amp,delta/) contains the fitting parameters
Definition at line 1006 of file suews_phys_anohm.f95.
Referenced by anohm_shapefit().
real(kind(1d0)) function anohm_module::qa_fn | ( | real(kind(1d0)) | Ta, |
real(kind(1d0)) | RH, | ||
real(kind(1d0)) | pres | ||
) |
convert relative humidity (RH) to specific humidity (qa) at air temperature (Ta) and atmospheric pressure (pres)
ta | air temperature [degC] |
rh | relative humidity [%] |
pres | atmospheric pressure [hPa] |
Definition at line 1434 of file suews_phys_anohm.f95.
References esat_fn().
Referenced by fcnbo().
real(kind(1d0)) function anohm_module::qsat_fn | ( | real(kind(1d0)) | Ta, |
real(kind(1d0)) | pres | ||
) |
calculate saturation specific humidity (qsat) at air temperature (Ta) and atmospheric pressure (pres) (MRR, 1987)
ta | air temperature [degC] |
pres | atmospheric pressure [hPa] |
Definition at line 1417 of file suews_phys_anohm.f95.
References esat_fn().
Referenced by fcnbo().