SUEWS API Site
Documentation of SUEWS source code
|
Functions/Subroutines | |
subroutine | beers_cal_main (iy, id, dectime, lamdap, lamdaf, avkdn, ldown, temp_c, avrh, press_hpa, tsurf, lat, lng, alt, timezone, zenith_deg, azimuth, alb_ground, alb_bldg, emis_ground, emis_wall, dataoutlinebeers) |
subroutine | cal_ci_latenight (iy, doy, ta_degc, rh_frac, radg, lat, p_kpa, cilatenight, dectime_sunrise, zen_sunrise, i0_sunrise) |
subroutine | kroof (radi, radd, radg, f_sh, altitude, svfr, svfveg, shadow, psi, alb_bldg, kdown) |
subroutine | cal_svfalfa (svfr, svfveg, svfalfa, tmp) |
real(kind(1d0)) function | cal_ratio_height2width (lamdap, lamdaf) |
real(kind(1d0)) function | hwtosvf_ground (hw) |
real(kind(1d0)) function | hwtosvf_roof (hw) |
subroutine | tsurfbeers (iy, ta, rh, radi, i0, dectime, snup, altitude, zen, timezone, lat, lng, alt, tg, tgwall, altmax) |
subroutine | shadowgroundkusaka (hw, azimuth, zen, shadowground, shadowwalls) |
subroutine | clearnessindex_2013b (zen, doy, ta_degc, rh_frac, radg, lat, p_kpa, i0, ci, kt, i0et, ciuncorr) |
subroutine | sun_distance (jday, d) |
subroutine | cylindric_wedge (zen, svfalfa, f_sh) |
subroutine | diffusefraction (radg, altitude, kt, ta, rh, radi, radd) |
subroutine | kwalls (svf, svfveg, shadow, f_sh, radi, radg, radd, azimuth, altitude, psi, t, alb_ground, alb_bldg, keast, knorth, ksouth, kwest) |
subroutine | kvikt_veg (svf, svfveg, vikttot, viktveg, viktwall) |
real(kind(1d0)) function | cal_vikt (svf_x, vikttot) |
subroutine | lwalls (svf, svfveg, svfaveg, ldown2d, lup2d, altitude, ta, tw, sbc, emis_wall, emis_sky, t, ci, azimuth, ldown, svfalfa, f_sh_in, least, lnorth, lsouth, lwest) |
subroutine | lvikt_veg (isvf, isvfveg, isvfaveg, vikttot, viktveg, viktsky, viktrefl, viktwall) |
subroutine | issign (ix, maxpos, isignm) |
subroutine | day2month (b, mb, md, seas, year, latitude) |
subroutine | month2day (mon, ne, k, b) |
subroutine | leapyearcalc (year_int, nrodays) |
elemental integer function | days_of_year (year_int) |
subroutine | day_of_week (date, month, year, dow) |
subroutine | dectime_to_timevec (dectime, hours, mins, secs) |
subroutine | daylen (doy, xlat, dayl, dec, sndn, snup) |
subroutine | suews_cal_dectime (id, it, imin, isec, dectime) |
subroutine | suews_cal_tstep (tstep, nsh, nsh_real, tstep_real) |
subroutine | suews_cal_weekday (iy, id, lat, dayofweek_id) |
subroutine | suews_cal_dls (id, startdls, enddls, dls) |
Variables | |
real(kind(1d0)), parameter | pi = ATAN(1.)*4 |
real(kind(1d0)), parameter | deg2rad = pi/180 |
real(kind(1d0)), parameter | rad2deg = 1/DEG2RAD |
subroutine beers_module::beers_cal_main | ( | integer, intent(in) | iy, |
integer, intent(in) | id, | ||
real(kind(1d0)), intent(in) | dectime, | ||
real(kind(1d0)), intent(in) | lamdap, | ||
real(kind(1d0)), intent(in) | lamdaf, | ||
real(kind(1d0)), intent(in) | avkdn, | ||
real(kind(1d0)), intent(in) | ldown, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | avrh, | ||
real(kind(1d0)), intent(in) | press_hpa, | ||
real(kind(1d0)), intent(in) | tsurf, | ||
real(kind(1d0)), intent(in) | lat, | ||
real(kind(1d0)), intent(in) | lng, | ||
real(kind(1d0)), intent(in) | alt, | ||
real(kind(1d0)), intent(in) | timezone, | ||
real(kind(1d0)), intent(in) | zenith_deg, | ||
real(kind(1d0)), intent(in) | azimuth, | ||
real(kind(1d0)), intent(in) | alb_ground, | ||
real(kind(1d0)), intent(in) | alb_bldg, | ||
real(kind(1d0)), intent(in) | emis_ground, | ||
real(kind(1d0)), intent(in) | emis_wall, | ||
real(kind(1d0)), dimension(ncolumnsdataoutbeers - 5), intent(out) | dataoutlinebeers ) |
Definition at line 37 of file suews_phys_beers.f95.
References cal_ci_latenight(), cal_ratio_height2width(), clearnessindex_2013b(), cylindric_wedge(), daylen(), allocatearray::deg2rad, diffusefraction(), hwtosvf_ground(), hwtosvf_roof(), kroof(), kwalls(), lwalls(), shadowgroundkusaka(), and tsurfbeers().
Referenced by suews_driver::suews_cal_main(), and suews_driver::suews_cal_main_dts().
subroutine beers_module::cal_ci_latenight | ( | integer, intent(in) | iy, |
integer, intent(in) | doy, | ||
real(kind(1d0)), intent(in) | ta_degc, | ||
real(kind(1d0)), intent(in) | rh_frac, | ||
real(kind(1d0)), intent(in) | radg, | ||
real(kind(1d0)), intent(in) | lat, | ||
real(kind(1d0)), intent(in) | p_kpa, | ||
real(kind(1d0)), intent(out) | cilatenight, | ||
real(kind(1d0)), intent(out) | dectime_sunrise, | ||
real(kind(1d0)), intent(out) | zen_sunrise, | ||
real(kind(1d0)), intent(out) | i0_sunrise ) |
Definition at line 339 of file suews_phys_beers.f95.
References clearnessindex_2013b(), daylen(), narp_module::narp_cal_sunposition(), and pi.
Referenced by beers_cal_main().
real(kind(1d0)) function beers_module::cal_ratio_height2width | ( | real(kind(1d0)), intent(in) | lamdap, |
real(kind(1d0)), intent(in) | lamdaf ) |
Definition at line 438 of file suews_phys_beers.f95.
Referenced by beers_cal_main().
subroutine beers_module::cal_svfalfa | ( | real(kind(1d0)), intent(in) | svfr, |
real(kind(1d0)), intent(in) | svfveg, | ||
real(kind(1d0)), intent(out) | svfalfa, | ||
real(kind(1d0)), intent(out) | tmp ) |
Definition at line 422 of file suews_phys_beers.f95.
real(kind(1d0)) function beers_module::cal_vikt | ( | real(kind(1d0)), intent(in) | svf_x, |
real(kind(1d0)), intent(in) | vikttot ) |
Definition at line 949 of file suews_phys_beers.f95.
Referenced by kvikt_veg().
subroutine beers_module::clearnessindex_2013b | ( | real(kind(1d0)), intent(in) | zen, |
integer, intent(in) | doy, | ||
real(kind(1d0)), intent(in) | ta_degc, | ||
real(kind(1d0)), intent(in) | rh_frac, | ||
real(kind(1d0)), intent(in) | radg, | ||
real(kind(1d0)), intent(in) | lat, | ||
real(kind(1d0)), intent(in) | p_kpa, | ||
real(kind(1d0)), intent(out) | i0, | ||
real(kind(1d0)), intent(out) | ci, | ||
real(kind(1d0)), intent(out) | kt, | ||
real(kind(1d0)), intent(out) | i0et, | ||
real(kind(1d0)), intent(out) | ciuncorr ) |
Definition at line 585 of file suews_phys_beers.f95.
References allocatearray::a2, pi, and sun_distance().
Referenced by beers_cal_main(), and cal_ci_latenight().
subroutine beers_module::cylindric_wedge | ( | real(kind(1d0)), intent(in) | zen, |
real(kind(1d0)), intent(in) | svfalfa, | ||
real(kind(1d0)), intent(out) | f_sh ) |
Definition at line 706 of file suews_phys_beers.f95.
References pi.
Referenced by beers_cal_main().
subroutine beers_module::day2month | ( | integer, intent(in) | b, |
integer, intent(out) | mb, | ||
integer, intent(out) | md, | ||
integer, intent(out) | seas, | ||
integer, intent(in) | year, | ||
real(kind(1d0)) | latitude ) |
Definition at line 1266 of file suews_phys_beers.f95.
Referenced by suews_cal_weekday().
subroutine beers_module::day_of_week | ( | integer | date, |
integer | month, | ||
integer | year, | ||
integer | dow ) |
Definition at line 1416 of file suews_phys_beers.f95.
Referenced by suews_cal_weekday().
subroutine beers_module::daylen | ( | integer | doy, |
real(kind(1d0)), intent(in) | xlat, | ||
real(kind(1d0)), intent(out) | dayl, | ||
real(kind(1d0)), intent(out) | dec, | ||
real(kind(1d0)), intent(out) | sndn, | ||
real(kind(1d0)), intent(out) | snup ) |
Definition at line 1469 of file suews_phys_beers.f95.
References pi.
Referenced by beers_cal_main(), and cal_ci_latenight().
elemental integer function beers_module::days_of_year | ( | integer, intent(in) | year_int | ) |
Definition at line 1399 of file suews_phys_beers.f95.
References allocatearray::ndays.
subroutine beers_module::dectime_to_timevec | ( | real(kind(1d0)) | dectime, |
integer | hours, | ||
integer | mins, | ||
real(kind(1d0)) | secs ) |
Definition at line 1445 of file suews_phys_beers.f95.
subroutine beers_module::diffusefraction | ( | real(kind(1d0)), intent(in) | radg, |
real(kind(1d0)), intent(in) | altitude, | ||
real(kind(1d0)), intent(in) | kt, | ||
real(kind(1d0)), intent(in) | ta, | ||
real(kind(1d0)), intent(in) | rh, | ||
real(kind(1d0)), intent(out) | radi, | ||
real(kind(1d0)), intent(out) | radd ) |
Definition at line 777 of file suews_phys_beers.f95.
References allocatearray::deg2rad.
Referenced by beers_cal_main(), and tsurfbeers().
real(kind(1d0)) function beers_module::hwtosvf_ground | ( | real(kind(1d0)), intent(in) | hw | ) |
Definition at line 457 of file suews_phys_beers.f95.
Referenced by beers_cal_main().
real(kind(1d0)) function beers_module::hwtosvf_roof | ( | real(kind(1d0)), intent(in) | hw | ) |
Definition at line 472 of file suews_phys_beers.f95.
Referenced by beers_cal_main().
subroutine beers_module::issign | ( | real(kind(1d0)) | ix, |
real(kind(1d0)) | maxpos, | ||
real(kind(1d0)) | isignm ) |
Definition at line 1236 of file suews_phys_beers.f95.
subroutine beers_module::kroof | ( | real(kind(1d0)), intent(in) | radi, |
real(kind(1d0)), intent(in) | radd, | ||
real(kind(1d0)), intent(in) | radg, | ||
real(kind(1d0)), intent(in) | f_sh, | ||
real(kind(1d0)), intent(in) | altitude, | ||
real(kind(1d0)), intent(in) | svfr, | ||
real(kind(1d0)), intent(in) | svfveg, | ||
real(kind(1d0)), intent(in) | shadow, | ||
real(kind(1d0)), intent(in) | psi, | ||
real(kind(1d0)), intent(in) | alb_bldg, | ||
real(kind(1d0)), intent(out) | kdown ) |
Definition at line 378 of file suews_phys_beers.f95.
References allocatearray::deg2rad.
Referenced by beers_cal_main().
subroutine beers_module::kvikt_veg | ( | real(kind(1d0)), intent(in) | svf, |
real(kind(1d0)), intent(in) | svfveg, | ||
real(kind(1d0)), intent(in) | vikttot, | ||
real(kind(1d0)), intent(out) | viktveg, | ||
real(kind(1d0)), intent(out) | viktwall ) |
Definition at line 922 of file suews_phys_beers.f95.
References cal_vikt().
Referenced by kwalls().
subroutine beers_module::kwalls | ( | real(kind(1d0)), intent(in) | svf, |
real(kind(1d0)), intent(in) | svfveg, | ||
real(kind(1d0)), intent(in) | shadow, | ||
real(kind(1d0)), intent(in) | f_sh, | ||
real(kind(1d0)), intent(in) | radi, | ||
real(kind(1d0)), intent(in) | radg, | ||
real(kind(1d0)), intent(in) | radd, | ||
real(kind(1d0)), intent(in) | azimuth, | ||
real(kind(1d0)), intent(in) | altitude, | ||
real(kind(1d0)), intent(in) | psi, | ||
real(kind(1d0)), intent(in) | t, | ||
real(kind(1d0)), intent(in) | alb_ground, | ||
real(kind(1d0)), intent(in) | alb_bldg, | ||
real(kind(1d0)), intent(out) | keast, | ||
real(kind(1d0)), intent(out) | knorth, | ||
real(kind(1d0)), intent(out) | ksouth, | ||
real(kind(1d0)), intent(out) | kwest ) |
Definition at line 822 of file suews_phys_beers.f95.
References allocatearray::deg2rad, and kvikt_veg().
Referenced by beers_cal_main().
subroutine beers_module::leapyearcalc | ( | integer | year_int, |
integer | nrodays ) |
Definition at line 1381 of file suews_phys_beers.f95.
subroutine beers_module::lvikt_veg | ( | real(kind(1d0)), intent(in) | isvf, |
real(kind(1d0)), intent(in) | isvfveg, | ||
real(kind(1d0)), intent(in) | isvfaveg, | ||
real(kind(1d0)), intent(in) | vikttot, | ||
real(kind(1d0)), intent(out) | viktveg, | ||
real(kind(1d0)), intent(out) | viktsky, | ||
real(kind(1d0)), intent(out) | viktrefl, | ||
real(kind(1d0)), intent(out) | viktwall ) |
Definition at line 1189 of file suews_phys_beers.f95.
Referenced by lwalls().
subroutine beers_module::lwalls | ( | real(kind(1d0)), intent(in) | svf, |
real(kind(1d0)), intent(in) | svfveg, | ||
real(kind(1d0)), intent(in) | svfaveg, | ||
real(kind(1d0)), intent(in) | ldown2d, | ||
real(kind(1d0)), intent(in) | lup2d, | ||
real(kind(1d0)), intent(in) | altitude, | ||
real(kind(1d0)), intent(in) | ta, | ||
real(kind(1d0)), intent(in) | tw, | ||
real(kind(1d0)), intent(in) | sbc, | ||
real(kind(1d0)), intent(in) | emis_wall, | ||
real(kind(1d0)), intent(in) | emis_sky, | ||
real(kind(1d0)), intent(in) | t, | ||
real(kind(1d0)), intent(in) | ci, | ||
real(kind(1d0)), intent(in) | azimuth, | ||
real(kind(1d0)), intent(in) | ldown, | ||
real(kind(1d0)), intent(in) | svfalfa, | ||
real(kind(1d0)), intent(in) | f_sh_in, | ||
real(kind(1d0)), intent(out) | least, | ||
real(kind(1d0)), intent(out) | lnorth, | ||
real(kind(1d0)), intent(out) | lsouth, | ||
real(kind(1d0)), intent(out) | lwest ) |
Definition at line 961 of file suews_phys_beers.f95.
References lvikt_veg(), and pi.
Referenced by beers_cal_main().
subroutine beers_module::month2day | ( | integer | mon, |
integer | ne, | ||
integer | k, | ||
integer | b ) |
Definition at line 1348 of file suews_phys_beers.f95.
subroutine beers_module::shadowgroundkusaka | ( | real(kind(1d0)), intent(in) | hw, |
real(kind(1d0)), intent(in) | azimuth, | ||
real(kind(1d0)), intent(in) | zen, | ||
real(kind(1d0)), intent(out) | shadowground, | ||
real(kind(1d0)), intent(out) | shadowwalls ) |
Definition at line 544 of file suews_phys_beers.f95.
References allocatearray::deg2rad, and pi.
Referenced by beers_cal_main().
subroutine beers_module::suews_cal_dectime | ( | integer, intent(in) | id, |
integer, intent(in) | it, | ||
integer, intent(in) | imin, | ||
integer, intent(in) | isec, | ||
real(kind(1d0)), intent(out) | dectime ) |
Definition at line 1513 of file suews_phys_beers.f95.
Referenced by suews_driver::suews_cal_main(), and suews_driver::suews_cal_main_dts().
subroutine beers_module::suews_cal_dls | ( | integer, intent(in) | id, |
integer, intent(in) | startdls, | ||
integer, intent(in) | enddls, | ||
integer, intent(out) | dls ) |
Definition at line 1569 of file suews_phys_beers.f95.
Referenced by suews_driver::suews_cal_main(), and suews_driver::suews_cal_main_dts().
subroutine beers_module::suews_cal_tstep | ( | integer, intent(in) | tstep, |
integer, intent(out) | nsh, | ||
real(kind(1d0)), intent(out) | nsh_real, | ||
real(kind(1d0)), intent(out) | tstep_real ) |
Definition at line 1529 of file suews_phys_beers.f95.
Referenced by suews_driver::suews_cal_main(), and suews_driver::suews_cal_main_dts().
subroutine beers_module::suews_cal_weekday | ( | integer, intent(in) | iy, |
integer, intent(in) | id, | ||
real(kind(1d0)), intent(in) | lat, | ||
integer, dimension(3), intent(out) | dayofweek_id ) |
Definition at line 1544 of file suews_phys_beers.f95.
References day2month(), and day_of_week().
Referenced by suews_driver::suews_cal_main(), and suews_driver::suews_cal_main_dts().
subroutine beers_module::sun_distance | ( | integer | jday, |
real(kind(1d0)) | d ) |
Definition at line 692 of file suews_phys_beers.f95.
Referenced by clearnessindex_2013b().
subroutine beers_module::tsurfbeers | ( | integer, intent(in) | iy, |
real(kind(1d0)), intent(in) | ta, | ||
real(kind(1d0)), intent(in) | rh, | ||
real(kind(1d0)), intent(in) | radi, | ||
real(kind(1d0)), intent(in) | i0, | ||
real(kind(1d0)), intent(in) | dectime, | ||
real(kind(1d0)), intent(in) | snup, | ||
real(kind(1d0)), intent(in) | altitude, | ||
real(kind(1d0)), intent(in) | zen, | ||
real(kind(1d0)), intent(in) | timezone, | ||
real(kind(1d0)), intent(in) | lat, | ||
real(kind(1d0)), intent(in) | lng, | ||
real(kind(1d0)), intent(in) | alt, | ||
real(kind(1d0)), intent(out) | tg, | ||
real(kind(1d0)), intent(out) | tgwall, | ||
real(kind(1d0)), intent(out) | altmax ) |
Definition at line 486 of file suews_phys_beers.f95.
References diffusefraction(), narp_module::narp_cal_sunposition(), pi, and allocatearray::rad2deg.
Referenced by beers_cal_main().
real(kind(1d0)), parameter beers_module::deg2rad = pi/180 |
Definition at line 32 of file suews_phys_beers.f95.
real(kind(1d0)), parameter beers_module::pi = ATAN(1.)*4 |
Definition at line 31 of file suews_phys_beers.f95.
Referenced by cal_ci_latenight(), clearnessindex_2013b(), cylindric_wedge(), daylen(), lwalls(), shadowgroundkusaka(), and tsurfbeers().
real(kind(1d0)), parameter beers_module::rad2deg = 1/DEG2RAD |
Definition at line 33 of file suews_phys_beers.f95.