Ejemplo n.º 1
0
        private void Init(int waterYear)
        {
            qu = new HydrometDailySeries("HEII", "QU");
            var t1 = new DateTime(waterYear-1, 10, 1);
            var t2 = new DateTime(waterYear, 8, 1);
            if (t2 > DateTime.Now && t2.Year != 7100)
            {
                t2 = DateTime.Now.AddDays(-1);
            }
            qu.Read(t1, t2);
            // find date where (if)  20,000 cfs occurs at heii.

            for (int i = 0; i < qu.Count; i++)
            {
                Point pt = qu[i];
                if( !pt.IsMissing  && pt.Value >=20000)
                {
                    quDate20000 = pt.DateTime;
                    break;
                }
            }

            solid = FcPlotDataSet.GetPeriodicSeries("Heii.Solid");
            dashed = FcPlotDataSet.GetPeriodicSeries("Heii.Dashed");
        }