📄 readfile.f
字号:
!!The user has the option of limiting the number of output
!!variables printed to the output.rch, output.sub and
!!output.hru files. Lines 60-67 of file.cio are used to
!!identify the variables the user wants to print
!!Output variables printed in REACH (output.rch) file
read (101,5101) titldum
read (101,*) (ipdvar(ii),ii=1,20)
!!IPDVAR - Output variables to output.rch file
!![ 1] Streamflow into reach (cms)
!![ 2] Streamflow out of reach (cms)
!![ 3] Loss of water from reach via evaporation (cms)
!![ 4] Loss of water from reach via transmission (cms)
!![ 5] Sediment entering reach (tons)
!![ 6] Sediment transported out of reach (tons)
!![ 7] Sediment concentration in reach (mg/kg)
!![ 8] Organic N entering reach (kg N)
!![ 9] Organic N transported out of reach (kg N)
!![ 10] Organic P entering reach (kg P)
!![ 11] Organic P transported out of reach (kg P)
!![ 12] NO3 entering reach (kg N)
!![ 13] NO3 transported out of reach (kg N)
!![ 14] NH4 entering reach (kg N)
!![ 15] NH4 transported out of reach (kg N)
!![ 16] NO2 entering reach (kg N)
!![ 17] NO2 transported out of reach (kg N)
!![ 18] Soluble P entering reach (kg P)
!![ 19] Soluble P transported out of reach (kg P)
!![ 20] Chlorophyll-a entering reach (kg)
!![ 21] Chlorophyll-a transported out of reach (kg)
!![ 22] CBOD entering reach (kg O2)
!![ 23] CBOD transported out of reach (kg O2)
!![ 24] Dissolved O2 entering reach (kg O2)
!![ 25] Dissolved O2 transported out of reach (kg O2)
!![ 26] Soluble pesticide entering reach (mg ai)
!![ 27] Soluble pesticide transported out of reach (mg ai)
!![ 28] Sorbed pesticide entering reach (mg ai)
!![ 29] Sorbed pesticide transported out of reach (mg ai)
!![ 30] Loss of pesticide from water by reaction (mg ai)
!![ 31] Loss of pesticide from water by volatilization (mg ai)
!![ 32] Transfer of pesticide from water to bed sediment by
!! settling (mg ai)
!![ 33] Transfer of pesticide from bed sediment to water by
!! resuspension (mg ai)
!![ 34] Transfer of pesticide between water and bed sediment by
!! diffusion (mg ai)
!![ 35] Loss of pesticide from bed sediment by reaction (mg ai)
!![ 36] Loss of pesticide from bed sediment by burial (mg ai)
!![ 37] Amount of pesticide in bed sediment (mg ai)
!![ 38] Persistent bacteria transported out of reach (#)
!![ 39] Less persistent bacteria transported out of reach (#)
!![ 40] Conservative metal #1 transported out of reach (kg)
!![ 41] Conservative metal #2 transported out of reach (kg)
!![ 42] Conservative metal #3 transported out of reach (kg)
!!Output variables printed in SUBASIN (output.sub) file
read (101,5101) titldum
read (101,*) (ipdvab(ii),ii=1,15)
!!IPDVAB - Output variables to output.sub file
!![ 1] Total precipitation falling on subbasin (mm)
!![ 2] Snow melt in subbasin (mm)
!![ 3] Potential evapotranspiration (mm)
!![ 4] Evapotranspiration (mm)
!![ 5] Soil water content (mm)
!![ 6] Water percolating out of soil profile (mm)
!![ 7] Amount of water entering reach from surface runoff (mm)
!![ 8] Groundwater discharge into reach from subbasin (mm)
!![ 9] Net water contribution to reach from subbasin (mm)
!![ 10] Amount of sediment entering reach from subbasin (t/ha)
!![ 11] Organic N released to reach from subbasin (kg N/ha)
!![ 12] Organic P released to reach from subbasin (kg P/ha)
!![ 13] NO3 released to reach from subbasin (kg N/ha)
!![ 14] Soluble P released to reach from subbasin (kg P/ha)
!!Output variables printed in HRU (output.hru) file
read (101,5101) titldum
read (101,*) (ipdvas(ii),ii=1,20)
!!IPDVAS - Output variables to output.hru file
!![ 1] Total precipitation falling on HRU (mm)
!![ 2] Precipitation falling as snow, ice, or freezing rain(mm)
!![ 3] Amount of snow or ice melt(mm)
!![ 4] Amt of irrigation water applied to HRU (mm)
!![ 5] Potential evapotranspiration (mm)
!![ 6] Loss of water by evapotranspiration (mm)
!![ 7] Soil water content at beginning of day/ave soil water (mm)
!![ 8] Soil water content at end of time step(mm)
!![ 9] Amt of water percolating past soil zone (mm)
!![ 10] Amt of water entering aquifers by percolation (mm)
!![ 11] Amt of water entering deep aquifer (mm)
!![ 12] Amt of water moving from shallow aquifer to soil zone(mm)
!![ 13] Amt of water removed from shallow aquifer to irrigate(mm)
!![ 14] Amt of water removed from deep aquifer to irrigate (mm)
!![ 15] Amt of water in shallow groundwater storage (mm)
!![ 16] Amt of water in deep groundwater storage (mm)
!![ 17] Surface runoff generated in time step (mm)
!![ 18] Surface runoff contribution to reach (mm)
!![ 19] Loss of water by transmission from stream channels
!! within HRU-enters shallow aquifer (mm)
!![ 20] Lateral flow contribution to reach (mm)
!![ 21] Groundwater contribution to reach (mm)
!![ 22] Net amt of water contributed by HRU to reach (mm)
!![ 23] Curve number
!![ 24] Average air temperature (deg C)
!![ 25] Average of daily max air temperatures (deg C)
!![ 26] Average of daily min air temperatures (deg C)
!![ 27] Average soil temperature for time period (deg C)
!![ 28] Average daily solar radiation (MJ/m^2)
!![ 29] Amount of sediment entering reach from HRU (t/ha)
!![ 30] Sediment yield calculated with USLE (t/ha)
!![ 31] Amt of N fertilizer applied (kg N/ha)
!![ 32] Amt of P fertilizer applied (kg P/ha)
!![ 33] Amt of N fertilizer auto-applied (kg N/ha)
!![ 34] Amt of P fertilizer auto-applied (kg P/ha)
!![ 35] Amt of N applied in grazing operation (kg N/ha)
!![ 36] Amt of P applied in grazing operation (kg N/ha)
!![ 37] Amt of N applied in continuous fert operation (kg N/ha)
!![ 38] Amt of P applied in continuous fert operation (kg P/ha)
!![ 39] Amt of N added to soil in rainwater (kg N/ha)
!![ 40] Amt of N added to soil via fixation by legumes (kg N/ha)
!![ 41] Transformation of N from fresh organic to mineral pool
!! (kg N/ha)
!![ 42] Transformation of N from active organic to mineral pool
!! (kg N/ha)
!![ 43] Transformation of N from active organic to stable organic
!! pool (kg N/ha)
!![ 44] Transformation of P from fresh organic to mineral pool
!! (kg P/ha)
!![ 45] Transformation of P from organic to labile pool (kg P/ha)
!![ 46] Transformation of P from labile to active mineral pool
!! (kg P/ha)
!![ 47] Transformation of P from active mineral to stable mineral
!! pool (kg P/ha)
!![ 48] Amt of N removed from soil via denitrification (kg N/ha)
!![ 49] Nitrogen uptake by plants (kg N/ha)
!![ 50] Phosphorus uptake by plants (kg P/ha)
!![ 51] Organic N contributed by HRU to reach (kg N/ha)
!![ 52] Organic P contributed by HRU to reach (kg P/ha)
!![ 53] Mineral P attached to sediment in surface runoff to
!! reach (kg P/ha)
!![ 54] NO3 contributed by HRU in surface runoff to reach(kgN/ha)
!![ 55] NO3 contributed by HRU in lateral flow to reach (kgN/ha)
!![ 56] NO3 leached below soil profile (kg N/ha)
!![ 57] NO3 contributed by HRU in baseflow to reach(kgN/ha)
!![ 58] Soluble P contributed by HRU in surface runoff to
!! reach (kg P/ha)
!![ 59] Soluble P contributed by HRU in baseflow to reach(kgP/ha)
!![ 60] Number of water stress days
!![ 61] Number of temperature stress days
!![ 62] Number of nitrogen stress days
!![ 63] Number of phosphorus stress days
!![ 64] Total plant biomass (t/ha)
!![ 65] Leaf area index
!![ 66] Harvested yield (t/ha)
!![ 67] Persistent bacteria in surface runoff (count)
!![ 68] Less persistent bacteria in surface runoff (count)
!!HRUs printed in HRU (output.hru,output.wtr) files
read (101,5101) titldum
read (101,*) (ipdhru(ii),ii=1,20)
!! Atmospheric deposition file (Kannan/Santhi input file)
do
read (101,5101,iostat=eof) titldum
if (eof < 0) exit
read (101,*,iostat=eof) atmofile
if (eof < 0) exit
exit
end do
!!Set default output variables for REACH, SUBBASIN and HRU files if none
!!were specified
do ii = 1, 20
if (ipdvar(ii) > 0) itotr = itotr + 1
end do
if (ipdvar(1) <= 0) then
do ii = 1, mrcho
ipdvar(ii) = ii
end do
itotr = mrcho
end if
do ii = 1, 15
if (ipdvab(ii) > 0) itotb = itotb + 1
end do
if (ipdvab(1) <= 0) then
do ii = 1, msubo
ipdvab(ii) = ii
end do
itotb = msubo
end if
do ii = 1, 20
if (ipdvas(ii) > 0) itots = itots + 1
end do
if (ipdvas(1) <= 0) then
do ii = 1, mhruo
ipdvas(ii) = ii
end do
itots = mhruo
end if
do ii = 1, 20
if (ipdhru(ii) > 0) itoth = itoth + 1
end do
if (ipdhru(1) <= 0) then
do ii = 1, mhru
! do ii = 1, mhruo
ipdhru(ii) = ii
end do
itoth = mhru
! itoth = mhruo
end if
!!Open output files
open (1,file="input.std")
open (2,file="output.std")
open (3,file="output.hru",recl=800)
open (4,file="output.wtr",recl=600)
open (5,file="output.pst",recl=600)
open (6,file="output.sub",recl=600)
open (7,file="output.rch",recl=600)
open (8,file="output.rsv",recl=800)
!! srin output file from watqual.f
open (82,file='watqual.out')
write (82,6000)
6000 format (18x,'WTEMP(C)','ALGAE_INppm','ALGAE_OUTppm',
*' ORGN_INppm','ORGN_OUTppm',' NH4_INppm',' NH4_OUTppm',
*' NO2_INppm',' NO2_OUTppm',' NO3_INppm',' NO3_OUTppm',
*' ORGP_INppm','ORGP_OUTppm',' SOLP_INppm','SOLP_OUTppm',
*' CBOD_INppm','CBOD_OUTppm',' SAT_OXppm','DISOX_INppm',
*'DISOX_OUTppm','H20VOLUMEm3','TRVL_TIMEhr')
!!darrell output files added for interface plotting
open (11,file='rch.dat')
open (12,file='hru.dat')
open (13,file='sub.dat')
open (14,file='rsv.dat')
!!darrell output files added for interface plotting
open (11123,file='hyd.out')
open (16,file='chan.deg')
open (17,file='temp')
open (18,file='swat.qst')
!! Output daily streamflow velocity for each channel (subbasin)
open (141,file='tempvel')
!! Atmospheric deposition input file (kannan/santhi)
! open (127,file='testatmo.dat')
! do iii = 1, 5
! read (127,5101) titldum
! end do
if (isproj == 1) then
open (19,file="output2.std")
open (20,file="output2.rch",recl=600)
open (21,file="output2.hru",recl=800)
open (22,file="output2.rsv",recl=800)
end if
close (101)
return
5000 format (6a)
5100 format (20a4)
5101 format (a80)
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -