public void AddModel(MagneticModel newModel)
        {
            if (newModel == null)
            {
                return;
            }

            if (Models == null)
            {
                Models = new List <MagneticModel>();
            }

            Models.Add(newModel);

            //Update data range to include added model
            MinDate = newModel.Year;

            MaxDate = newModel.Year;

            //if (MinDate.Equals(-1) ||
            //    MinDate > newModel.Year) MinDate = newModel.Year;

            //if (MaxDate.Equals(-1) ||
            //    MaxDate < newModel.Year) MaxDate = newModel.Year;
        }
        public MagneticModel(MagneticModel other)
        {
            Type = other.Type;
            Year = other.Year;
            //EarthRadius = other.EarthRadius;

            SharmCoeff = new List <double>();
            if (other.SharmCoeff.Any())
            {
                SharmCoeff.AddRange(SharmCoeff);
            }
        }