public InputCalculation() { EphemerisMode = SweNet.EphemerisMode.SwissEphemeris; JplFile = SwissEphNet.SwissEph.SE_FNAME_DFT; Planets = new List <Planet>(); DateUT = new DateUT(DateTime.Now); Longitude = new SweNet.Longitude(5, 20, 0, LongitudePolarity.East); Latitude = new SweNet.Latitude(47, 52, 0, LatitudePolarity.North); HouseSystem = HouseSystem.Placidus; Planets.AddRange(new Planet[] { Planet.Sun, Planet.Moon, Planet.Mercury, Planet.Venus, Planet.Mars, Planet.Jupiter, Planet.Saturn, Planet.Uranus, Planet.Neptune, Planet.Pluto, Planet.MeanNode, Planet.TrueNode, Planet.MeanApog, Planet.OscuApog, Planet.Earth }); Planets.AddRange(new Planet[] { Planet.AsAsteroid(433), Planet.AsAsteroid(3045), Planet.AsAsteroid(7066) }); }
public InputViewModel() { ListEphemerisModes = new List <Tuple <SweNet.EphemerisMode, string> > { new Tuple <EphemerisMode, String>(SweNet.EphemerisMode.SwissEphemeris, "Swiss Ephemeris"), new Tuple <EphemerisMode, String>(SweNet.EphemerisMode.JPL, "JPL Ephemeris"), new Tuple <EphemerisMode, String>(SweNet.EphemerisMode.Moshier, "Moshier Ephemeris"), }; EphemerisMode = SweNet.EphemerisMode.SwissEphemeris; ListJplFiles = new List <Tuple <string, string> > { new Tuple <String, String>(SwissEphNet.SwissEph.SE_FNAME_DE406, "JPL D406"), new Tuple <String, String>(SwissEphNet.SwissEph.SE_FNAME_DE431, "JPL D431") }; JplFile = SwissEphNet.SwissEph.SE_FNAME_DFT; InputDate = new InputDateViewModel(); Planets = new List <Planet>(); InputDate.Date = new DateUT(DateTime.Now); PositionCenter = SweNet.PositionCenter.Geocentric; ListPositionCenters = new List <Tuple <SweNet.PositionCenter, string> >(new Tuple <SweNet.PositionCenter, string>[] { new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.Geocentric, "Geocentric"), new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.Topocentric, "Topocentric"), new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.Heliocentric, "Heliocentric"), new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.Barycentric, "Barycentric"), new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.SiderealFagan, "Sidereal Fagan"), new Tuple <SweNet.PositionCenter, string>(SweNet.PositionCenter.SiderealLahiri, "Sidereal Lahiri"), }); Longitude = new SweNet.Longitude(5, 20, 0, LongitudePolarity.East); Latitude = new SweNet.Latitude(47, 52, 0, LatitudePolarity.North); HouseSystems = new List <Tuple <HouseSystem, String> >(); foreach (var hs in Enum.GetValues(typeof(SweNet.HouseSystem)).Cast <HouseSystem>()) { HouseSystems.Add(new Tuple <HouseSystem, string>(hs, SweHouse.GetHouseSystemName(hs))); } HouseSystem = SweNet.HouseSystem.Placidus; Planets.AddRange(new Planet[] { Planet.Sun, Planet.Moon, Planet.Mercury, Planet.Venus, Planet.Mars, Planet.Jupiter, Planet.Saturn, Planet.Uranus, Planet.Neptune, Planet.Pluto, Planet.MeanNode, Planet.TrueNode, Planet.MeanApog, Planet.OscuApog, Planet.Earth }); Planets.AddRange(new Planet[] { Planet.AsAsteroid(433), Planet.AsAsteroid(3045), Planet.AsAsteroid(7066) }); }
/// <summary> /// Create a new position /// </summary> public GeoPosition(Longitude lon, Latitude lat, Double alt) { this.Longitude = lon; this.Latitude = lat; this.Altitude = alt; }