/// <summary> /// Sets the topocentric azimuth and elevation /// </summary> /// <param name="Azimuth">Topocentric Azimuth in degrees</param> /// <param name="Elevation">Topocentric elevation in degrees</param> /// <remarks></remarks> public void SetAzimuthElevation(double Azimuth, double Elevation) { LastSetBy = SetBy.AzimuthElevation; RequiresRecalculate = true; AzimuthTopoValue = Azimuth; ElevationTopoValue = Elevation; }
/// <summary> /// Sets the known apparent Right Ascension and Declination coordinates that are to be transformed /// </summary> /// <param name="RA">RA in apparent co-ordinates</param> /// <param name="DEC">DEC in apparent co-ordinates</param> /// <remarks></remarks> public void SetApparent(double RA, double DEC) { LastSetBy = SetBy.Apparent; if ((RA != RAApparentValue) || (DEC != DECApparentValue)) { RequiresRecalculate = true; } RAApparentValue = ValidateRA("SetApparent", RA); DECApparentValue = ValidateDec("SetApparent", DEC); }
///<summary> /// Sets the known local topocentric Right Ascension and Declination coordinates that are to be transformed /// </summary> /// <param name="RA">RA in local topocentric co-ordinates</param> /// <param name="DEC">DEC in local topocentric co-ordinates</param> /// <remarks></remarks> public void SetTopocentric(double RA, double DEC) { LastSetBy = SetBy.Topocentric; if ((RA != RATopoValue) || (DEC != DECTopoValue)) { RequiresRecalculate = true; } RATopoValue = ValidateRA("SetTopocentric", RA); DECTopoValue = ValidateDec("SetTopocentric", DEC); }
/// <summary> /// Sets the known J2000 Right Ascension and Declination coordinates that are to be transformed /// </summary> /// <param name="RA">RA in J2000 co-ordinates</param> /// <param name="DEC">DEC in J2000 co-ordinates</param> /// <remarks></remarks> public void SetJ2000(double RA, double DEC) { LastSetBy = SetBy.J2000; if ((RA != RAJ2000Value) || (DEC != DECJ2000Value)) { RequiresRecalculate = true; } RAJ2000Value = ValidateRA("SetJ2000", RA); DECJ2000Value = ValidateDec("SetJ2000", DEC); }
public Transform() { SOFA = new SOFA.SOFA(); RAJ2000Value = System.Convert.ToDouble(double.NaN); //Initialise to invalid values in case these are read before they are set DECJ2000Value = System.Convert.ToDouble(double.NaN); RATopoValue = System.Convert.ToDouble(double.NaN); DECTopoValue = System.Convert.ToDouble(double.NaN); SiteElevValue = System.Convert.ToDouble(double.NaN); SiteLatValue = System.Convert.ToDouble(double.NaN); SiteLongValue = System.Convert.ToDouble(double.NaN); RefracValue = false; LastSetBy = SetBy.Never; RequiresRecalculate = true; JulianDateTTValue = 0; // Initialise to a value that forces the current PC date time to be used in determining the TT Julian date of interest CheckGAC(); }