private void button_drawPhaseChart_Click(object sender, EventArgs e)
        {
            Dictionary <string, List <TimePeriod> > timeperiods = new Dictionary <string, List <TimePeriod> >();
            var siteXYZ              = XYZ.Parse(namedStringControl_coord.GetValue());
            var angleCut             = namedFloatControl_angleCut.GetValue();
            var prns                 = dataSourse.Prns;
            var from                 = Time.Parse(TimeFrom);
            var to                   = Time.Parse(TimeTo);
            var interval             = (to - from) / 1000;
            ObjectTableStorage table = new ObjectTableStorage("时段图");

            for (var time = from; time <= to; time = time + interval)
            {
                table.NewRow();
                table.AddItem("Epoch", time);
                foreach (var prn in prns)
                {
                    //  angle
                    var eph   = dataSourse.Get(prn, time);
                    var polar = Geo.Coordinates.CoordTransformer.XyzToGeoPolar(eph.XYZ, siteXYZ);
                    if (polar.Elevation < angleCut)
                    {
                        continue;
                    }

                    table.AddItem(prn.ToString(), true);
                }
            }
            EpochChartForm chartForm = new EpochChartForm(table);

            chartForm.Show();
        }
Exemplo n.º 2
0
        private void buttonViewOnChart_Click(object sender, EventArgs e)
        {
            bool isDrawAllPhase      = checkBox1ViewAllPhase.Checked;
            ObjectTableStorage table = BuildObjectTable(isDrawAllPhase);

            if (checkBox_sortPrn.Checked)
            {
                table.ParamNames.Sort();
            }

            EpochChartForm form = new EpochChartForm(table);

            form.Show();
        }