SUEWS API Site
Documentation of SUEWS source code
|
Functions/Subroutines | |
subroutine | radmethod (netradiationmethod, snowuse, netradiationmethod_use, albedochoice, ldown_option) |
subroutine | narp (storageheatmethod, nsurf, sfr_surf, tsfc_surf, snowfrac, alb, emis, icefrac, narp_trans_site, narp_emis_snow, dtime, zenith_deg, tsurf_0, kdown, temp_c, rh, press_hpa, qn1_obs, ldown_obs, snowalb, albedochoice, ldown_option, netradiationmethod_use, diagqn, qn_surf, qstarall, qstar_sf, qstar_s, kclear, kupall, ldown, lupall, fcld, tsurfall, qn1_ind_snow, kup_ind_snow, tsurf_ind_snow, tsurf_surf, albedo_snowfree, albedo_snow) |
subroutine | narp_cal_sunposition (year, idectime, utc, locationlatitude, locationlongitude, locationaltitude, sunazimuth, sunzenith) |
subroutine | julian_calculation (year, month, day, hour, min, sec, utc, juliancentury, julianday, julianephemeris_century, julianephemeris_day, julianephemeris_millenium) |
subroutine | earth_heliocentric_position_calculation (julianephemeris_millenium, earth_heliocentric_positionlatitude, earth_heliocentric_positionlongitude, earth_heliocentric_positionradius) |
subroutine | sun_geocentric_position_calculation (earth_heliocentric_positionlongitude, earth_heliocentric_positionlatitude, sun_geocentric_positionlatitude, sun_geocentric_positionlongitude) |
subroutine | nutation_calculation (julianephemeris_century, nutationlongitude, nutationobliquity) |
subroutine | corr_obliquity_calculation (julianephemeris_millenium, nutationobliquity, corr_obliquity) |
subroutine | abberation_correction_calculation (earth_heliocentric_positionradius, aberration_correction) |
subroutine | apparent_sun_longitude_calculation (sun_geocentric_positionlongitude, nutationlongitude, aberration_correction, apparent_sun_longitude) |
subroutine | apparent_stime_at_greenwich_calculation (julianday, juliancentury, nutationlongitude, corr_obliquity, apparent_stime_at_greenwich) |
subroutine | sun_rigth_ascension_calculation (apparent_sun_longitude, corr_obliquity, sun_geocentric_positionlatitude, sun_rigth_ascension) |
subroutine | sun_geocentric_declination_calculation (apparent_sun_longitude, corr_obliquity, sun_geocentric_positionlatitude, sun_geocentric_declination) |
subroutine | observer_local_hour_calculation (apparent_stime_at_greenwich, locationlongitude, sun_rigth_ascension, observer_local_hour) |
subroutine | topocentric_sun_position_calculate (topocentric_sun_positionrigth_ascension, topocentric_sun_positionrigth_ascension_parallax, topocentric_sun_positiondeclination, locationaltitude, locationlatitude, observer_local_hour, sun_rigth_ascension, sun_geocentric_declination, earth_heliocentric_positionradius) |
subroutine | topocentric_local_hour_calculate (observer_local_hour, topocentric_sun_positionrigth_ascension_parallax, topocentric_local_hour) |
subroutine | sun_topocentric_zenith_angle_calculate (locationlatitude, topocentric_sun_positiondeclination, topocentric_local_hour, sunazimuth, sunzenith) |
real(kind(1d0)) function | set_to_range (var) |
real(kind(1d0)) function | dewpoint_narp (temp_c, rh) |
real(kind(1d0)) function | prata_emis (temp_k, ea_hpa) |
real(kind(1d0)) function | emis_cloud (emis_a, fcld) |
real(kind(1d0)) function | emis_cloud_sq (emis_a, fcld) |
real(kind(1d0)) function | cloud_fraction (kdown, kclear) |
real(kind(1d0)) function | wc_fraction (rh, temp) |
real(kind(1d0)) function | isurface (doy, zenith) |
real(kind(1d0)) function | solar_esdist (doy) |
real(kind(1d0)) function, dimension(365) | smithlambda (lat) |
real(kind(1d0)) function | transmissivity (press_hpa, temp_c_dew, g, zenith) |
subroutine narp_module::abberation_correction_calculation | ( | real(kind(1d0)), intent(in) | earth_heliocentric_positionradius, |
real(kind(1d0)), intent(out) | aberration_correction ) |
Definition at line 1048 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
subroutine narp_module::apparent_stime_at_greenwich_calculation | ( | real(kind(1d0)), intent(in) | julianday, |
real(kind(1d0)), intent(in) | juliancentury, | ||
real(kind(1d0)), intent(in) | nutationlongitude, | ||
real(kind(1d0)), intent(in) | corr_obliquity, | ||
real(kind(1d0)), intent(out) | apparent_stime_at_greenwich ) |
Definition at line 1076 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
subroutine narp_module::apparent_sun_longitude_calculation | ( | real(kind(1d0)), intent(in) | sun_geocentric_positionlongitude, |
real(kind(1d0)), intent(in) | nutationlongitude, | ||
real(kind(1d0)), intent(in) | aberration_correction, | ||
real(kind(1d0)), intent(out) | apparent_sun_longitude ) |
Definition at line 1061 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
real(kind(1d0)) function narp_module::cloud_fraction | ( | real(kind(1d0)) | kdown, |
real(kind(1d0)) | kclear ) |
Definition at line 1338 of file suews_phys_narp.f95.
Referenced by narp().
subroutine narp_module::corr_obliquity_calculation | ( | real(kind(1d0)), intent(in) | julianephemeris_millenium, |
real(kind(1d0)), intent(in) | nutationobliquity, | ||
real(kind(1d0)), intent(out) | corr_obliquity ) |
Definition at line 1025 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
real(kind(1d0)) function narp_module::dewpoint_narp | ( | real(kind(1d0)) | temp_c, |
real(kind(1d0)) | rh ) |
Definition at line 1301 of file suews_phys_narp.f95.
Referenced by narp().
subroutine narp_module::earth_heliocentric_position_calculation | ( | real(kind(1d0)) | julianephemeris_millenium, |
real(kind(1d0)) | earth_heliocentric_positionlatitude, | ||
real(kind(1d0)) | earth_heliocentric_positionlongitude, | ||
real(kind(1d0)) | earth_heliocentric_positionradius ) |
Definition at line 701 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
real(kind(1d0)) function narp_module::emis_cloud | ( | real(kind(1d0)) | emis_a, |
real(kind(1d0)) | fcld ) |
Definition at line 1324 of file suews_phys_narp.f95.
Referenced by narp().
real(kind(1d0)) function narp_module::emis_cloud_sq | ( | real(kind(1d0)) | emis_a, |
real(kind(1d0)) | fcld ) |
Definition at line 1332 of file suews_phys_narp.f95.
Referenced by narp().
real(kind(1d0)) function narp_module::isurface | ( | integer | doy, |
real(kind(1d0)) | zenith ) |
Definition at line 1389 of file suews_phys_narp.f95.
References solar_esdist().
Referenced by narp().
subroutine narp_module::julian_calculation | ( | real(kind(1d0)) | year, |
integer | month, | ||
integer | day, | ||
integer | hour, | ||
integer | min, | ||
real(kind(1d0)) | sec, | ||
real(kind(1d0)) | utc, | ||
real(kind(1d0)) | juliancentury, | ||
real(kind(1d0)) | julianday, | ||
real(kind(1d0)) | julianephemeris_century, | ||
real(kind(1d0)) | julianephemeris_day, | ||
real(kind(1d0)) | julianephemeris_millenium ) |
Definition at line 631 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
subroutine narp_module::narp | ( | integer, intent(in) | storageheatmethod, |
integer, intent(in) | nsurf, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr_surf, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | tsfc_surf, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowfrac, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | alb, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | emis, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | icefrac, | ||
real(kind(1d0)), intent(in) | narp_trans_site, | ||
real(kind(1d0)), intent(in) | narp_emis_snow, | ||
real(kind(1d0)), intent(in) | dtime, | ||
real(kind(1d0)), intent(in) | zenith_deg, | ||
real(kind(1d0)), intent(in) | tsurf_0, | ||
real(kind(1d0)), intent(in) | kdown, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | rh, | ||
real(kind(1d0)), intent(in) | press_hpa, | ||
real(kind(1d0)), intent(in) | qn1_obs, | ||
real(kind(1d0)), intent(in) | ldown_obs, | ||
real(kind(1d0)), intent(in) | snowalb, | ||
integer, intent(in) | albedochoice, | ||
integer, intent(in) | ldown_option, | ||
integer, intent(in) | netradiationmethod_use, | ||
integer, intent(in) | diagqn, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | qn_surf, | ||
real(kind(1d0)), intent(out) | qstarall, | ||
real(kind(1d0)), intent(out) | qstar_sf, | ||
real(kind(1d0)), intent(out) | qstar_s, | ||
real(kind(1d0)), intent(out) | kclear, | ||
real(kind(1d0)), intent(out) | kupall, | ||
real(kind(1d0)), intent(out) | ldown, | ||
real(kind(1d0)), intent(out) | lupall, | ||
real(kind(1d0)), intent(out) | fcld, | ||
real(kind(1d0)), intent(out) | tsurfall, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | qn1_ind_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | kup_ind_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | tsurf_ind_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | tsurf_surf, | ||
real(kind(1d0)), intent(out) | albedo_snowfree, | ||
real(kind(1d0)), intent(out) | albedo_snow ) |
Definition at line 121 of file suews_phys_narp.f95.
References cloud_fraction(), dewpoint_narp(), emis_cloud(), emis_cloud_sq(), isurface(), prata_emis(), transmissivity(), and wc_fraction().
Referenced by suews_driver::suews_cal_qn(), and suews_driver::suews_cal_qn_dts().
subroutine narp_module::narp_cal_sunposition | ( | real(kind(1d0)), intent(in) | year, |
real(kind(1d0)), intent(in) | idectime, | ||
real(kind(1d0)), intent(in) | utc, | ||
real(kind(1d0)), intent(in) | locationlatitude, | ||
real(kind(1d0)), intent(in) | locationlongitude, | ||
real(kind(1d0)), intent(in) | locationaltitude, | ||
real(kind(1d0)), intent(out) | sunazimuth, | ||
real(kind(1d0)), intent(out) | sunzenith ) |
Definition at line 522 of file suews_phys_narp.f95.
References abberation_correction_calculation(), apparent_stime_at_greenwich_calculation(), apparent_sun_longitude_calculation(), corr_obliquity_calculation(), day2month(), dectime_to_timevec(), earth_heliocentric_position_calculation(), julian_calculation(), nutation_calculation(), observer_local_hour_calculation(), sun_geocentric_declination_calculation(), sun_geocentric_position_calculation(), sun_rigth_ascension_calculation(), sun_topocentric_zenith_angle_calculate(), topocentric_local_hour_calculate(), and topocentric_sun_position_calculate().
Referenced by beers_module::cal_ci_latenight(), metdisagg::disaggregatemet(), suews_driver::suews_cal_main(), suews_driver::suews_cal_main_dts(), and beers_module::tsurfbeers().
subroutine narp_module::nutation_calculation | ( | real(kind(1d0)), intent(in) | julianephemeris_century, |
real(kind(1d0)) | nutationlongitude, | ||
real(kind(1d0)) | nutationobliquity ) |
Definition at line 904 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
subroutine narp_module::observer_local_hour_calculation | ( | real(kind(1d0)), intent(in) | apparent_stime_at_greenwich, |
real(kind(1d0)), intent(in) | locationlongitude, | ||
real(kind(1d0)), intent(in) | sun_rigth_ascension, | ||
real(kind(1d0)), intent(out) | observer_local_hour ) |
Definition at line 1144 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
real(kind(1d0)) function narp_module::prata_emis | ( | real(kind(1d0)) | temp_k, |
real(kind(1d0)) | ea_hpa ) |
Definition at line 1315 of file suews_phys_narp.f95.
Referenced by narp().
subroutine narp_module::radmethod | ( | integer, intent(in) | netradiationmethod, |
integer, intent(in) | snowuse, | ||
integer, intent(out) | netradiationmethod_use, | ||
integer, intent(out) | albedochoice, | ||
integer, intent(out) | ldown_option ) |
Definition at line 44 of file suews_phys_narp.f95.
Referenced by suews_driver::suews_cal_qn(), and suews_driver::suews_cal_qn_dts().
real(kind(1d0)) function narp_module::set_to_range | ( | real(kind(1d0)) | var | ) |
Definition at line 1281 of file suews_phys_narp.f95.
Referenced by apparent_stime_at_greenwich_calculation(), earth_heliocentric_position_calculation(), observer_local_hour_calculation(), sun_geocentric_position_calculation(), sun_rigth_ascension_calculation(), and sun_topocentric_zenith_angle_calculate().
real(kind(1d0)) function, dimension(365) narp_module::smithlambda | ( | integer | lat | ) |
Definition at line 1427 of file suews_phys_narp.f95.
References errorhint(), defaultnotused::notused, and filename::smithfile.
real(kind(1d0)) function narp_module::solar_esdist | ( | integer | doy | ) |
Definition at line 1411 of file suews_phys_narp.f95.
Referenced by isurface().
subroutine narp_module::sun_geocentric_declination_calculation | ( | real(kind(1d0)), intent(in) | apparent_sun_longitude, |
real(kind(1d0)), intent(in) | corr_obliquity, | ||
real(kind(1d0)), intent(in) | sun_geocentric_positionlatitude, | ||
real(kind(1d0)), intent(out) | sun_geocentric_declination ) |
Definition at line 1127 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
subroutine narp_module::sun_geocentric_position_calculation | ( | real(kind(1d0)), intent(in) | earth_heliocentric_positionlongitude, |
real(kind(1d0)), intent(in) | earth_heliocentric_positionlatitude, | ||
real(kind(1d0)) | sun_geocentric_positionlatitude, | ||
real(kind(1d0)) | sun_geocentric_positionlongitude ) |
Definition at line 883 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
subroutine narp_module::sun_rigth_ascension_calculation | ( | real(kind(1d0)), intent(in) | apparent_sun_longitude, |
real(kind(1d0)), intent(in) | corr_obliquity, | ||
real(kind(1d0)), intent(in) | sun_geocentric_positionlatitude, | ||
real(kind(1d0)), intent(out) | sun_rigth_ascension ) |
Definition at line 1104 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
subroutine narp_module::sun_topocentric_zenith_angle_calculate | ( | real(kind(1d0)), intent(in) | locationlatitude, |
real(kind(1d0)), intent(in) | topocentric_sun_positiondeclination, | ||
real(kind(1d0)), intent(in) | topocentric_local_hour, | ||
real(kind(1d0)) | sunazimuth, | ||
real(kind(1d0)) | sunzenith ) |
Definition at line 1230 of file suews_phys_narp.f95.
References set_to_range().
Referenced by narp_cal_sunposition().
subroutine narp_module::topocentric_local_hour_calculate | ( | real(kind(1d0)), intent(in) | observer_local_hour, |
real(kind(1d0)), intent(in) | topocentric_sun_positionrigth_ascension_parallax, | ||
real(kind(1d0)), intent(out) | topocentric_local_hour ) |
Definition at line 1217 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
subroutine narp_module::topocentric_sun_position_calculate | ( | real(kind(1d0)) | topocentric_sun_positionrigth_ascension, |
real(kind(1d0)) | topocentric_sun_positionrigth_ascension_parallax, | ||
real(kind(1d0)) | topocentric_sun_positiondeclination, | ||
real(kind(1d0)), intent(in) | locationaltitude, | ||
real(kind(1d0)), intent(in) | locationlatitude, | ||
real(kind(1d0)), intent(in) | observer_local_hour, | ||
real(kind(1d0)), intent(in) | sun_rigth_ascension, | ||
real(kind(1d0)), intent(in) | sun_geocentric_declination, | ||
real(kind(1d0)), intent(in) | earth_heliocentric_positionradius ) |
Definition at line 1158 of file suews_phys_narp.f95.
Referenced by narp_cal_sunposition().
real(kind(1d0)) function narp_module::transmissivity | ( | real(kind(1d0)) | press_hpa, |
real(kind(1d0)) | temp_c_dew, | ||
real(kind(1d0)) | g, | ||
real(kind(1d0)) | zenith ) |
Definition at line 1451 of file suews_phys_narp.f95.
Referenced by narp().
real(kind(1d0)) function narp_module::wc_fraction | ( | real(kind(1d0)), intent(in) | rh, |
real(kind(1d0)), intent(in) | temp ) |
Definition at line 1346 of file suews_phys_narp.f95.
Referenced by narp().