/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/hydrotrend/hydrotrend.h File Reference

Go to the source code of this file.

Functions

int hydrocommandline (int *argc, char **argv)
int hydrosetparams ()
int hydrosecurityinputcheck ()
int hydroreadinput ()
int hydroreadhypsom ()
int hydroreadclimate (gw_rainfall_etc *gw_rain)
int hydrosetglobalpar ()
int hydrocheckinput ()
int hydroopenfiles ()
int hydrosetgeoparams (gw_rainfall_etc *gw_rain)
int hydrorandom ()
int hydroshoulder ()
int hydroclimate (gw_rainfall_etc *gw_rain)
int hydroweather (gw_rainfall_etc *gw_rain)
int hydrohypsom ()
int hydroglacial ()
int hydrosnow ()
int hydrorain ()
int hydrosumflow ()
int hydromaxevents ()
int hydrosedload (gw_rainfall_etc *gw_rain)
int hydrooutput ()
int hydroprinttable ()
int hydroprintannual ()
int hydrocalqsnew ()
int hydroprintstat ()
int hydroswap ()
int hydrooutletfraction (int x)
int hydrosetnumberoutlet (int x)
int hydroqfractionshuffle (int k)
void hydroallocmemoutlet (int ep)
void hydroallocmemoutlet1 (int ep)
void hydrofreememoutlet (int j)
void hydrofreememoutlet1 (int ep)
int hydroshuffle (int dvals[31], int mnth)
int hydroexpdist (double pvals[31], int mnth)


Function Documentation

void hydroallocmemoutlet ( int  ep  ) 

Definition at line 281 of file hydrooutlet.c.

References Coutlettotal, Csannualoutlet, Csgrandtotaloutlet, Csoutlet, daysiy, malloc1d, malloc2d, maxday, maxepoch, maxnoutlet, nyears, outletpcttotevents, Qbedannualoutlet, Qboutlet, Qdummy, Qgrandtotalperepoch, Qgrandtotaltotoutlet, Qpeakfloodtemp, Qpeakperoutlet, Qpeakperoutletall, Qsannualoutlet, Qsgrandtotaloutlet, Qsgrandtotaltotoutlet, Qsoutlet, Qsum, and Qtotaloutletannual.

Referenced by main().

void hydroallocmemoutlet1 ( int  ep  ) 

Definition at line 309 of file hydrooutlet.c.

References daysievent, eventsnr, malloc1d, malloc2d, malloc3d, maxepoch, maxepoche, maxnoutlet, nroutlets, numberday, outletpct, Qbar, Qgrandtotaloutlet, Qpeakallevents, Qpeakevents, and Qtotaloutlet.

Referenced by main().

int hydrocalqsnew (  ) 

Definition at line 25 of file hydrocalqsnew.c.

References daysiy, dTOs, ep, maxnoutlet, nyears, outletmodelflag, Qsbarnew, Qsbarnew2, Qsbartot, Qsgrandtotal, Qsgrandtotaloutlet, Qsmean, and sedfilter.

Referenced by main().

int hydrocheckinput (  ) 

Definition at line 19 of file hydrocheckinput.c.

References alphass, asciioutput, avgvel, baseflowtot, basinlength, betass, dryevap, dTOs, ELAchange, ELAstart, ep, grainpct, gwinitial, gwmax, gwmin, jj, Ko, lapserate, lat, maxalt, MAXCHAR, maxepoch, maxgrn, maxnoutlet, nepochs, ngrain, noutlet, noutletflag, nyears, OFF, ON, Pchange, Pexponent, Pmassbal, pmax, Pnominal, Pnomstd, Prange, Pstart, Pstd, Qsbarformulaflag, Ralt, rslope, Rvol, sedfilter, syear, tblend, tblstart, Tchange, timestep, Tnominal, Tnomstd, totalarea, Tstart, Tstd, velcof, velpow, widcof, and widpow.

Referenced by main().

int hydroclimate ( gw_rainfall_etc gw_rain  ) 

Definition at line 34 of file hydroclimate.c.

References days_in_month(), daysiy, Dec, end_of(), ep, Jan, jj, nran, Pannual, Pchange, Pmassbal, Pmaxstd, Pstart, Pstd, gw_rainfall_etc::R, raindatafile, ranarray, start_of(), syear, gw_rainfall_etc::T, Tannual, Tchange, Tmaxstd, Tmonth, Tnominal, gw_rainfall_etc::Tperyear, Tstart, Tstd, and yr.

Referenced by main().

int hydrocommandline ( int *  argc,
char **  argv 
)

Definition at line 29 of file hydrocommandline.c.

References commandlinearg, DUMMY, ffnamehyps, ffnameinput, ffnameinputgw_r, fnameclimateext, fnamehypsext, fnameinputext, INPUTSTRING, jj, MAXLENGTH, and webflag.

Referenced by main().

int hydroexpdist ( double  pvals[31],
int  mnth 
)

Definition at line 38 of file hydroexpdist.c.

References days_in_month(), ep, fidlog, nran, ntot, Pexponent, Pmassbal, Pnomstd, Prange, ranarray, sq, tblend, tblstart, and yr.

void hydrofreememoutlet ( int  j  ) 

Definition at line 335 of file hydrooutlet.c.

References Coutlettotal, Csannualoutlet, Csgrandtotaloutlet, Csoutlet, daysiy, freematrix1D(), freematrix2D(), maxday, maxepoch, maxnoutlet, outletpcttotevents, Qbedannualoutlet, Qboutlet, Qdummy, Qgrandtotalperepoch, Qgrandtotaltotoutlet, Qpeakfloodtemp, Qpeakperoutlet, Qpeakperoutletall, Qsannualoutlet, Qsgrandtotaloutlet, Qsgrandtotaltotoutlet, Qsoutlet, Qsum, and Qtotaloutletannual.

Referenced by main().

void hydrofreememoutlet1 ( int  ep  ) 

Definition at line 362 of file hydrooutlet.c.

References daysievent, freematrix1D(), freematrix2D(), freematrix3D(), maxepoch, maxepoche, maxnoutlet, nroutlets, numberday, outletpct, Qbar, Qgrandtotaloutlet, Qpeakallevents, Qpeakevents, and Qtotaloutlet.

Referenced by main().

int hydroglacial (  ) 

Definition at line 49 of file hydroglacial.c.

References areabins, Aug, bethaexpo, bethaglacier, bigg, daysiy, distbins, dryevap, dTOs, Eiceannual, ela, ELAchange, ELAindex, ELAstart, elevbins, elevbinsize, end_of(), ep, fidlog, FLAflag, FLAindex, floodtry, glacierarea, glacierelev, Gmass, initiallastarea, initiallastela, jj, Jun, lastarea, lastela, masscheck, maxalt, maxday, Minput, MPglacial, mx, nelevbins, nran, Pdaily, percentgw, Qice, Qicetogw, Qicewrap, ranarray, setstartmeanQandQs, shoulderleft, shouldermain, shouldern, shoulderright, smallg, start_of(), syear, tblend, tblstart, Televday, and yr.

Referenced by main().

int hydrohypsom (  ) 

Definition at line 41 of file hydrohypsom.c.

References areabins, avgvel, basinlength, daysiy, distbins, dmatrix(), dTOs, elevbins, elevbinsize, ep, fidlog, FLAflag, FLAindex, floodtry, floor, free_dmatrix(), freematrix1D(), hypsarea, hypselev, lapserate, malloc1d, maxalt, maxday, nelevbins, nhypts, Snowcarry, Snowelevday, syear, tblend, tblstart, Tdaily, Televday, totalarea, and yr.

Referenced by main().

int hydromaxevents (  ) 

Definition at line 26 of file hydromaxevents.c.

References ep, eventsnr, Qpeakallevents, Qpeakevents, syear, and yr.

Referenced by main().

int hydroopenfiles (  ) 

Definition at line 21 of file hydroopenfiles.c.

References allocate_1d_F(), asciioutput, ffidasc, ffidasc1, ffidasc2, ffidasc3, ffidasc4, ffidasc5, ffidnival_ice, ffnamedis, ffnamedistot, ffnameq, ffnameqs, ffnamestat, ffnametrend1, ffnametrend2, ffnametrend3, fidasc, fidasc1, fidasc2, fidasc3, fidasc4, fidasc5, fiddis, fiddistot, fidq, fidqnivalqice, fidqs, fidstat, fidtrend1, fidtrend2, fidtrend3, fnamedis, fnameq, fnameqs, fnamestat, fnametrend1, fnametrend2, fnametrend3, maxnoutlet, ON, outletmodelflag, outp, outp1, outp2, outp3, outp4, outp5, outpnival_ice, and startname.

Referenced by main().

int hydrooutletfraction ( int  x  ) 

Definition at line 62 of file hydrooutlet.c.

References ep, freematrix1D(), malloc1d, masscheck, maxnoutlet, noutlet, and outletpct.

Referenced by main().

int hydrooutput (  ) 

Definition at line 46 of file hydrooutput.c.

References asciioutput, Cs, Csoutlet, days_in_month(), daysiy, Dec, depcof, deppow, end_of(), ep, fiddis, fiddistot, freematrix1D(), freematrix2D(), grainpct, Jan, jj, malloc1d, malloc2d, maxnoutlet, nepochs, ngrain, nyears, ON, outletmodelflag, outp, outp1, outp2, outp3, outp4, outp5, Qb, Qboutlet, Qs, Qsoutlet, Qsum, Qsumtot, start_of(), syear, timestep, title, velcof, velpow, widcof, widpow, and yr.

Referenced by main().

int hydroprintannual (  ) 

Definition at line 29 of file hydroprintannual.c.

References baseflowtot, bigg, daysiy, dTOs, ela, ep, fidtrend1, fidtrend2, fidtrend3, gwstore, maxflood, maxnoutlet, outletmodelflag, outletpcttotevents, Pannual, Qbartotal, Qbedannual, Qbedannualoutlet, Qexceedgw, Qice, Qnival, Qpeak, Qpeakperoutlet, Qrain, Qsannual, Qsannualoutlet, Qss, Qtotal, Qtotaloutletannual, smallg, syear, Tannual, title, and yr.

Referenced by main().

int hydroprintstat (  ) 

Definition at line 29 of file hydroprintstat.c.

References alpha3, alpha4, alpha5, alpha6, alpha7, alpha8, ep, fidstat, k1, k2, lapserate, lat, maxalt, Qbartotal, Qsbarformulaflag, Qsbarnew, Qsbartot, Qsmean, title, totalarea, and Tstart.

Referenced by main().

int hydroprinttable (  ) 

Definition at line 23 of file hydroprinttable.c.

References baseflowtot, bigg, Cs, Csoutlet, daysiy, dTOs, ela, ELAchange, ELAstart, ep, exceedflood, fidlog, fidq, fidqs, Gmass, gwlast, gwstore, maxalt, maxflood, maxnoutlet, MEtotal, Minput, Moutput, MQnext, MQprevious, Msnowend, Msnowstart, nhypts, outletmodelflag, Pannual, Pchange, Pstart, Pstd, Qb, Qbartotal, Qbedannual, Qboutlet, Qexceedgw, Qgrandtotal, Qice, Qnival, Qrain, Qs, Qsannual, Qsoutlet, Qss, Qsum, Qsumtot, smallg, syear, Tannual, tblstart, Tchange, title, totalarea, Tstart, Tstd, and yr.

Referenced by main().

int hydroqfractionshuffle ( int  k  ) 

Definition at line 199 of file hydrooutlet.c.

References ep, freematrix1D(), hydroran5(), INIT_RAN_NUM_SEED, malloc1d, maxnoutlet, outletpct, rnd, and rnseed5.

Referenced by main().

int hydrorain (  ) 

Definition at line 55 of file hydrorain.c.

References alphac, alphag, alphagwe, alphass, areabins, avgvel, basinlength, betac, betag, betagwe, betass, daysiy, distbins, dTOs, Ecanopy, Egw, ep, fidlog, FLAindex, gwmax, gwmin, gwstore, jj, Ko, masscheck, maxday, Minput, mn, MPrain, mx, nelevbins, pcr, Pdaily, pmax, Qexceedgw, Qicetogw, Qnivaltogw, Qrain, Qrainwrap, Qss, Qsswrap, rainarea, Rvol, shoulderleft, shouldermain, shouldern, shoulderright, tblend, tblstart, totalarea, wrapday, and yr.

Referenced by main().

int hydrorandom (  ) 

Definition at line 51 of file hydrorandom.c.

References ep, fidlog, freematrix1D(), hydroran2(), INIT_RAN_NUM_SEED, jj, malloc1d, maxran, mn, mx, nran, ranarray, rmax, rmin, rnseed, sq, syear, and yr.

Referenced by main().

int hydroreadclimate ( gw_rainfall_etc gw_rain  ) 

Definition at line 43 of file hydroreadclimate.c.

References ep, nepochs, nyears, Read_Rainfall_Etc(), and total_yr.

Referenced by main().

int hydroreadhypsom (  ) 

Definition at line 27 of file hydroreadhypsom.c.

References allocate_1d_F(), elevbinsize, ep, ffnamehyps, fidhyps, fidlog, fnamehyps, fnamehypsext, hypsarea, hypselev, maxalt, nepochs, nhypts, totalarea, and webflag.

Referenced by main().

int hydroreadinput (  ) 

Definition at line 31 of file hydroreadinput.c.

References alphass, asciioutput, avgvel, baseflowtot, basinlength, betass, depcof, deppow, directory, dryevap, ELAchange, ELAstart, ep, eventnrflag, eventsnr, fidinput, floodvalue, fnameinput, globalparflag, grainpct, gwinitial, gwmax, gwmin, jj, Ko, lapserate, lapserateflag, lat, lon, malloc2d, MAXCHAR, MAXDIR, maxepoch, maxnoutlet, minnoutlet, moname, nepochs, ngrain, nooutletpctflag, noutlet, noutletflag, nyears, OFF, outletmodelflag, outletpctdummy, OUTPUT_DIR, Pchange, Pexponent, Pmassbal, Pnominal, Pnomstd, Prange, Pstart, Pstd, Qsbarformulaflag, Ralt, Rarea, Rparamcheck, rslope, Rvol, sedfilter, steadyoutletpctflag, syear, tblend, tblstart, Tchange, timestep, title, Tnominal, Tnomstd, Tstart, Tstd, velcof, velpow, velpowflag, webflag, widcof, widpow, and widpowflag.

Referenced by main().

int hydrosecurityinputcheck (  ) 

Definition at line 21 of file hydrosecurityinputcheck.c.

References chrdump, ffnamehyps, ffnameinput, ffnameinputgw_r, fidhyps, fidinput, fidinputgw_r, jj, NCOLS, NROWS, and raindatafile.

Referenced by main().

int hydrosedload ( gw_rainfall_etc gw_rain  ) 

Definition at line 79 of file hydrosedload.c.

References alpha3, alpha4, alpha5, alpha6, alpha7, alpha8, alphabed, anglerep, baseflowtot, C, Coutlettotal, Cs, Csannual, Csannualoutlet, Csgrandtotal, Csgrandtotaloutlet, Csoutlet, daysiy, degTOr, dTOs, ep, eventcounter, eventsperyear, freematrix1D(), freematrix2D(), hypsarea, hypselev, k1, k2, lapserate, malloc1d, malloc2d, maxalt, maxepoch, maxnoutlet, nhypts, numberday, nyears, outletmodelflag, outletpct, Qb, Qbar, Qbartotal, Qbedannual, Qbedannualoutlet, Qboutlet, Qexceedgw, Qice, Qnival, Qrain, Qs, Qsannual, Qsannualoutlet, Qsbarformulaflag, Qsbarnew, Qsbarnew2, Qsbartot, Qsbartotoutlet, Qsgrandtotal, Qsgrandtotaloutlet, Qsoutlet, Qsoutletdummy, Qss, Qsum, Qsumtot, raindatafile, Ralt, ranarray, Rarea, rhosed, rhowater, rslope, Rvol, setstartmeanQandQs, sigma(), syear, Tchange, TE, TEsubbasin, totalarea, gw_rainfall_etc::Tperyear, trneff, Tstart, and yr.

Referenced by main().

int hydrosetgeoparams ( gw_rainfall_etc gw_rain  ) 

Definition at line 68 of file hydrosetgeoparams.c.

References alpha3, alpha4, alpha5, alpha6, alpha7, alpha8, ep, k1, k2, lapserate, lat, maxalt, nyears, raindatafile, Tchange, gw_rainfall_etc::Tperyear, and Tstart.

Referenced by main().

int hydrosetglobalpar (  ) 

Definition at line 26 of file hydrosetglobalpar.c.

References depcof, deppow, ep, fidlapserate, fnamelapserate, lapserate, lapserateflag, lat, lon, nepochs, velcof, velpow, velpowflag, widcof, widpow, and widpowflag.

Referenced by main().

int hydrosetnumberoutlet ( int  x  ) 

Definition at line 136 of file hydrooutlet.c.

References fidlog, hydroran4(), INIT_RAN_NUM_SEED, maxnoutlet, minnoutlet, and rnseed4.

Referenced by main().

int hydrosetparams (  ) 

Definition at line 23 of file hydrosetparams.c.

References alphac, alphag, alphagwe, betac, betag, betagwe, bethaexpo, bethaglacier, maxepoch, Meltrate, pcr, percentgw, pmax, rho_sed, rho_water, rhosed, rhowater, and webflag.

Referenced by main().

int hydroshoulder (  ) 

Definition at line 37 of file hydroshoulder.c.

References avgvel, basinlength, dTOs, ep, fidlog, floor, jj, maxshoulder, mx, PI, Rvol, shoulderleft, shouldermain, shouldern, and shoulderright.

Referenced by main().

int hydroshuffle ( int  dvals[31],
int  mnth 
)

Definition at line 35 of file hydroshuffle.c.

References days_in_month(), ep, fidlog, hydroran3(), INIT_RAN_NUM_SEED, rnd, rnseed3, syear, tblend, tblstart, and yr.

int hydrosnow (  ) 

Definition at line 47 of file hydrosnow.c.

References areabins, Aug, daysiy, distbins, dryevap, dTOs, ELAindex, elevbins, end_of(), Enivalannual, ep, fidlog, FLAindex, jj, masscheck, maxday, Meltrate, Minput, mn, MPnival, Msnowend, Msnowstart, nelevbins, Pdaily, percentgw, Qnival, Qnivaltogw, Qnivalwrap, setstartmeanQandQs, shoulderleft, shouldermain, shouldern, shoulderright, Snowelevday, Snowremains, tblend, tblstart, Televday, totalarea, and yr.

Referenced by main().

int hydrosumflow (  ) 

Definition at line 35 of file hydrosumflow.c.

References baseflowtot, daysievent, daysiy, dTOs, Ecanopy, Egw, Eiceannual, Enivalannual, ep, eventcounter, eventsnr, eventsperyear, Ewetannual, floodcounter, floodvalue, glacierarea, Gmass, gwlast, gwstore, masscheck, maxday, maxnoutlet, MEtotal, Minput, Moutput, MPglacial, MPnival, MPrain, MQnext, MQprevious, Msnowend, Msnowstart, mx, numberday, outletmodelflag, outletpct, Pannual, Qbartotal, Qexceedgw, Qgrandtotal, Qgrandtotaloutlet, Qice, Qicewrap, Qnival, Qnivalwrap, Qpeak, Qpeakallevents, Qpeakevents, Qpeakfloodtemp, Qpeakperoutlet, Qrain, Qrainwrap, Qss, Qsswrap, Qsum, Qsumtot, Qtotal, Qtotaloutlet, Qtotaloutletannual, rainarea, setstartmeanQandQs, steadyoutletpctflag, syear, totalarea, and yr.

Referenced by main().

int hydroswap (  ) 

Definition at line 41 of file hydroswap.c.

References allocate_1d_F(), DEFAULT_WORD, ffnameconvdis, ffnameconvdistot, ffnamedis, ffnamedistot, fidconvdis, fidconvdistot, fiddis, fiddistot, fnameconvdis, fnamedis, maxnoutlet, nepochs, nyears, outletmodelflag, startname, syear, timestep, and title.

Referenced by main().

int hydroweather ( gw_rainfall_etc gw_rain  ) 

Definition at line 55 of file hydroweather.c.

References cost_fcn(), days_in_month(), daysiy, Dec, end_of(), ep, Jan, jj, nran, raindatafile, ranarray, start_of(), syear, gw_rainfall_etc::T, Tdaily, Tmonth, Tnomstd, and yr.

Referenced by main().


Generated on Fri Jan 4 18:04:17 2008 for sedflux by  doxygen 1.5.2