示例#1
0
        /// <summary>
        /// constructs a RuleCurve based on the unregulated flow station name
        /// </summary>
        /// <param name="curveName"></param>
        public HydrometRuleCurve(string curveName)
        {
            this.curveName = curveName;
            FloodControlPoint pt = new FloodControlPoint(curveName, "StationQU");

            m_fillType = pt.FillType;
        }
示例#2
0
 public ResidualForecast(FloodControlPoint controlPoint)
 {
     this.controlPoint   = controlPoint;
     this.reservoirLags  = controlPoint.ReservoirLags;
     this.reservoirNames = controlPoint.UpstreamReservoirs;
     TotalContent        = new Series();
     SpaceRequired       = new Series("acre-feet", TimeInterval.Daily);;
     Space      = new Series("acre-feet", TimeInterval.Daily);
     reservoirs = new SeriesList();
     Residual   = new Series();
     Report     = new SeriesList();
     diff       = new Series();
     flags      = new List <string>();
 }
示例#3
0
        public static HydrometRuleCurve Create(FloodControlPoint pt, int waterYear, bool dashed)
        {
            var cbtt = pt.StationFC.ToLower();

            if (cbtt == "heii")// || stationQU == "jck")
            {
                return(new HeiiRuleCurve(cbtt, waterYear, pt.FillType, dashed));
            }
            if (cbtt == "hgh")
            {
                return(new HghRuleCurve(cbtt, pt.FillType));
            }

            if (cbtt == "wodi")
            {
                return(new WodiRuleCurve(cbtt, waterYear, FillType.Fixed));
            }

            return(new HydrometRuleCurve(pt));
        }
示例#4
0
 public HydrometRuleCurve(FloodControlPoint pt)
 {
     this.curveName = pt.StationQU;
     m_fillType     = pt.FillType;
 }
示例#5
0
 public HydrometRuleCurve(FloodControlPoint pt)
 {
     this.curveName = pt.StationQU;
     m_fillType = pt.FillType;
 }
示例#6
0
 /// <summary>
 /// constructs a RuleCurve based on the unregulated flow station name
 /// </summary>
 /// <param name="curveName"></param>
 public HydrometRuleCurve(string curveName)
 {
     this.curveName = curveName;
     FloodControlPoint pt = new FloodControlPoint(curveName, "StationQU");
     m_fillType = pt.FillType;
 }