Exemplo n.º 1
0
        public static SatelliteId ParseLine(string line)
        {
            SatelliteId b = new SatelliteId();

            b.SatelliteCode    = line.Substring(1, 4);
            b.PRN              = line.Substring(6, 2);
            b.CosparId         = line.Substring(9, 9);
            b.ObservationCode  = line.Substring(19, 1);
            b.LaunchTime       = Time.ParseYds(line.Substring(21, 12));
            b.DecommissionTime = Time.ParseYds(line.Substring(34, 12));
            b.AntennaType      = line.Substring(47, 20);

            return(b);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            SatelliteId site = obj as SatelliteId;

            return(site == null ? false : SatelliteCode.Equals(site.SatelliteCode));
        }