📄 writem.f
字号:
subroutine writem
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine writes monthly output
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! curyr |none |current year of simulation
!! hrumono(:,:)|varies |HRU monthly output array
!! hrupest(:) |none |pesticide use flag:
!! | 0: no pesticides used in HRU
!! | 1: pesticides used in HRU
!! hrupstm(:,1,:)|mg pst |amount of pesticide type in surface runoff
!! |contribution to stream from HRU during month
!! |(in solution)
!! hrupstm(:,2,:)|mg pst |amount of pesticide type in surface runoff
!! |contribution to stream from HRU during month
!! |(sorbed to sediment)
!! i |julian date |current day of simulation
!! idaf |julian date |beginning day of simulation
!! idal |julian date |ending day of simulation
!! iprint |none |print code:
!! |0 monthly
!! |1 daily
!! |2 annually
!! iprp |none |print code for output.pst file
!! |0 do not print pesticide output
!! |1 print pesticide output
!! isproj |none |special project code:
!! |1 test rewind (run simulation twice)
!! leapyr |none |leap year flag
!! |0 leap year
!! |1 regular year
!! i_mo |none |month for next day of simulation
!! mo_chk |none |month for current day of simulation
!! nbyr |none |number of years in simulation
!! ndays(:) |julian date |julian date for last day of preceding
!! |month (where the array location is the
!! |number of the month). The dates are for
!! |leap years
!! nhru |none |number of HRUs in watershed
!! npmx |none |number of different pesticides used in
!! |the simulation
!! nres |none |total number of reservoirs in the
!! |watershed
!! nyskip |none |number of years to skip output summarization
!! |and printing
!! res_seci(:) |m |secchi-disk depth
!! res_vol(:) |m^3 H2O |reservoir volume
!! resoutm(1,:)|m^3/s |flow into reservoir during month
!! resoutm(2,:)|m^3/s |flow out of reservoir during month
!! resoutm(3,:)|metric tons |sediment entering reservoir during month
!! resoutm(4,:)|metric tons |sediment leaving reservoir during month
!! resoutm(5,:)|mg/L |sediment concentration in reservoir during
!! |month
!! resoutm(6,:)|mg pst |pesticide entering reservoir during month
!! resoutm(7,:)|mg pst |pesticide lost from reservoir through
!! |reactions during month
!! resoutm(8,:)|mg pst |pesticide lost from reservoir through
!! |volatilization during month
!! resoutm(9,:)|mg pst |pesticide moving from water to sediment
!! |through settling during month
!! resoutm(10,:)|mg pst |pesticide moving from sediment to water
!! |through resuspension during month
!! resoutm(11,:)|mg pst |pesticide moving from water to sediment
!! |through diffusion during month
!! resoutm(12,:)|mg pst |pesticide lost from reservoir sediment layer
!! |through reactions during month
!! resoutm(13,:)|mg pst |pesticide lost from reservoir sediment layer
!! |through burial during month
!! resoutm(14,:)|mg pst |pesticide transported out of reservoir during
!! |month
!! resoutm(15,:)|mg pst/m^3 |pesticide concentration in reservoir water
!! |during month
!! resoutm(16,:)|mg pst/m^3 |pesticide concentration in reservoir sediment
!! |layer during month
!! resoutm(17,:)|m^3 H2O |evaporation from reservoir during month
!! resoutm(18,:)|m^3 H2O |seepage from reservoir during month
!! resoutm(19,:)|m^3 H2O |precipitation on reservoir during month
!! resoutm(22,:)|kg N |organic N entering reservoir during month
!! resoutm(23,:)|kg N |organic N leaving reservoir during month
!! resoutm(24,:)|kg P |organic P entering reservoir during month
!! resoutm(25,:)|kg P |organic P leaving reservoir during month
!! resoutm(26,:)|kg N |nitrate entering reservoir during month
!! resoutm(27,:)|kg N |nitrate leaving reservoir during month
!! resoutm(28,:)|kg N |nitrite entering reservoir during month
!! resoutm(29,:)|kg N |nitrite leaving reservoir during month
!! resoutm(30,:)|kg N |ammonia entering reservoir during month
!! resoutm(31,:)|kg N |ammonia leaving reservoir during month
!! resoutm(32,:)|kg P |mineral P entering reservoir during month
!! resoutm(33,:)|kg P |mineral P leaving reservoir during month
!! resoutm(34,:)|kg chla |chlorophyll-a entering reservoir during month
!! resoutm(35,:)|kg chla |chlorophyll-a leaving reservoir during month
!! resoutm(36,:)|mg P/L |organic P concentration in reservoir water
!! |during month
!! resoutm(37,:)|mg P/L |mineral P concentration in reservoir water
!! |during month
!! resoutm(38,:)|mg N/L |organic N concentration in reservoir water
!! |during month
!! resoutm(39,:)|mg N/L |nitrate concentration in reservoir water during
!! |month
!! resoutm(40,:)|mg N/L |nitrite concentration in reservoir water during
!! |month
!! resoutm(41,:)|mg N/L |ammonia concentration in reservoir water during
!! |month
!! wshddayo(35)|mm H2O |amount of water stored in soil profile in
!! |watershed at end of day
!! wshdmono(1) |mm H2O |average amount of precipitation in watershed
!! |for the month
!! wshdmono(3) |mm H2O |surface runoff in watershed for month
!! wshdmono(4) |mm H2O |lateral flow contribution to streamflow in
!! |watershed for month
!! wshdmono(5) |mm H2O |water percolation past bottom of soil profile
!! |in watershed for month
!! wshdmono(6) |mm H2O |water yield to streamflow from HRUs in
!! |watershed for month
!! wshdmono(7) |mm H2O |actual evapotranspiration in watershed
!! |for month
!! wshdmono(8) |deg C |average maximum temperature in watershed for
!! |the month
!! wshdmono(9) |deg C |average minimum temperature in watershed for
!! |the month
!! wshdmono(12)|metric tons |sediment yield from HRUs in watershed for
!! |the month
!! wshdmono(39)|mm H2O |freezing rain/snow fall in watershed for
!! |the month
!! wshdmono(40)|kg N/ha |organic N loading to stream in watershed for
!! |the month
!! wshdmono(41)|kg P/ha |organic P loading to stream in watershed for
!! |the month
!! wshdmono(42)|kg N/ha |nitrate loading to stream in surface runoff
!! |in watershed for the month
!! wshdmono(43)|kg P/ha |soluble P loading to stream in watershed for
!! |the month
!! wshdmono(44)|kg N/ha |plant uptake of N in watershed for the month
!! wshdmono(45)|kg N/ha |nitrate loading to stream in lateral flow
!! |in watershed for the month
!! wshdmono(46)|kg N/ha |nitrate percolation past bottom of soil
!! |profile in watershed for the month
!! wshdmono(104)|mm H2O |groundwater contribution to stream in
!! |watershed for the month
!! wshdmono(108)|mm H2O |potential evapotranspiration in watershed
!! |for the month
!! wshdmono(109)|mm H2O |drainage tile flow contribution to stream
!! |in watershed for the month
!! wtrmon(:,:) |varies |HRU impoundment monthly output array
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! hrumono(:,:)|varies |HRU monthly output array
!! hrupstm(:,:,:)|varies |HRU monthly pesticide output array
!! hrupsty(:,:,:)|varies |HRU annual pesticide output array
!! hruyro(:,:) |varies |HRU annual output array
!! immo |none |current cumulative month of simulation
!! rchmono(:,:)|varies |reach monthly output array
!! rchyro(:,:) |varies |reach annual output array
!! resoutm(:,:)|varies |reservoir monthly output array
!! resouty(:,:) |varies |reservoir annual output array
!! submono(:,:)|varies |subbasin monthly output array
!! subyro(:,:) |varies |subbasin annual output array
!! wshd_aamon(:,1)|mm H2O |average annual precipitation in watershed
!! |falling during month
!! wshd_aamon(:,2)|mm H2O |average annual freezing rain in watershed
!! |falling during month
!! wshd_aamon(:,3)|mm H2O |average annual surface runoff in watershed
!! |during month
!! wshd_aamon(:,4)|mm H2O |average annual lateral flow in watershed
!! |during month
!! wshd_aamon(:,5)|mm H2O |average annual water yield in watershed
!! |during month
!! wshd_aamon(:,6)|mm H2O |average annual actual evapotranspiration
!! |in watershed during month
!! wshd_aamon(:,7)|metric tons |average annual sediment yield in watershed
!! |during month
!! wshd_aamon(:,8)|mm H2O |average annual potential evapotranspiration
!! |in watershed during month
!! wshdmono(:) |varies |watershed monthly output array
!! wshdyro(:) |varies |watershed annual output array
!! wtrmon(:,:) |varies |HRU impoundment monthly output array
!! wtryr(:,:) |varies |HRU impoundment annual output array
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ LOCAL DEFINITIONS ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! idlast |none |number of days simulated in month
!! j |none |counter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -