TwiceAsNice
2019-02-18
|
A IifStar object is a single sky object with location, brightness ect. More...
#include <IifStar.h>
Public Member Functions | |
IifStar () | |
default ctor. Basically not useful, but to build an empty star catalogue More... | |
IifStar (const lbto::position2 &star) | |
Create from a given structure. More... | |
IifStar (const Nice::DMS &ra, const Nice::DMS &dec) | |
Ctor given just a position on the sky. The proper motions, magnitudes etc are all kept at zero. More... | |
IifStar (const std::string &str, const std::string &typ) | |
Ctor with a specification of a single star. This should be line conforming to http://wiki.lbto.org/bin/view/Commissioning/LBTOStarCatalogs but not a comment line. More... | |
operator Nice::SkyPoint () const | |
Construct a simple ra/dec pointing from this. More... | |
double | distance (const IifStar &oth) const |
Distance to another star in units of radians. More... | |
std::string | toLbtoLoc () const |
Convert the Ra and Dec coordinates to a LBTO format. More... | |
std::string | toPosition2Py () const |
Convert the position2 structure to a Python list. More... | |
std::string | object () const |
A construed object name derived from the coordinates. More... | |
IifStar | propMot (const Nice::Date &t) const |
Apply a proper motion. More... | |
IifStar | propMot () const |
Apply a proper motion. More... | |
IifStar | precess (const Nice::Date &t) const |
Apply proper motion and precession from catalogue origin to some other time. More... | |
IifStar | precess () const |
Precess equatorial coordinate from the catalogues epoch to now. More... | |
Nice::DMS | getPang (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
compute the parallactic angle. More... | |
Nice::SkyPoint | getHoriz (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
compute the horizontal coordinates (altitude, azimuth) More... | |
Nice::DMS | getPangDot (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) |
compute the first time derivative of the parallactic angle. More... | |
Nice::DMS | derotStartAng (const Nice::Date t, const double lowLim, const double hiLim, const float dirScale, const int durat=12 *3600, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
compute a best start angle for derotation. The parallactic angle is computed from the start time into the future with 20 seconds of resolution, monitoring the maximum and minimum angles. The angle is computed which lets this derotation stay within the limits for the longest possible duration. More... | |
Nice::DMS | derotStartAng (const Nice::Date t, const Nice::Point &travelrange, const Nice::Point &transDegree, const float cfgDirection, const int durat=12 *3600, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
compute a proposal for a best start angle for derotation. The parallactic angle is computed from the start time into the future with 20 seconds of resolution, monitoring the maximum and minimum angles. The angle is computed which lets this derotation stay within the limits for the longest possible duration. More... | |
lbto::result | GetRotatorPolynomials (Ice::Double start, Ice::Int count, Ice::Double interval, Ice::Int order, const std::string &side, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
Use this command to get rotator polynomials. More... | |
bool | apparentMagnitudeIsGreater (double _mag) const |
void | aladin () const |
Open a firefox window to show the current region of the sky in Aladin's DSS2 . Opens a firefox screen with a 6 arcmin field-of-view around this target. More... | |
IifStar () | |
IifStar (const lbto::position2 &star) | |
IifStar (const Nice::DMS &ra, const Nice::DMS &dec) | |
IifStar (const std::string &str, const std::string &typ) | |
operator Nice::SkyPoint () const | |
double | distance (const IifStar &oth) const |
std::string | toLbtoLoc () const |
std::string | toPosition2Py () const |
std::string | object () const |
IifStar | propMot (const Nice::Date &t) const |
IifStar | propMot () const |
IifStar | precess (const Nice::Date &t) const |
IifStar | precess () const |
Nice::DMS | getPang (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
Nice::SkyPoint | getHoriz (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
Nice::DMS | getPangDot (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) |
Nice::DMS | derotStartAng (const Nice::Date t, const double lowLim, const double hiLim, const float dirScale, const int durat=12 *3600, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
Nice::DMS | derotStartAng (const Nice::Date t, const Nice::Point &travelrange, const Nice::Point &transDegree, const float cfgDirection, const int durat=12 *3600, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
lbto::result | GetRotatorPolynomials (Ice::Double start, Ice::Int count, Ice::Double interval, Ice::Int order, const std::string &side, const Nice::GeoLocation &geosite=Nice::GeoLocation()) const |
bool | apparentMagnitudeIsGreater (double _mag) const |
void | aladin () const |
Static Public Member Functions | |
static Nice::DMS | getGST (const Nice::Date &t=Nice::Date::now()) |
compute the apparent Greenwich sidereal time. More... | |
static Nice::DMS | getLST (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) |
compute the local sidereal time. More... | |
static Nice::DMS | getGST (const Nice::Date &t=Nice::Date::now()) |
static Nice::DMS | getLST (const Nice::Date &t=Nice::Date::now(), const Nice::GeoLocation &geosite=Nice::GeoLocation()) |
Additional Inherited Members | |
![]() | |
::std::string | type |
::Ice::Double | coord1 |
::Ice::Double | coord2 |
::std::string | system |
::Ice::Double | epoch |
::std::string | equinox |
::Ice::Double | pmcoord1 |
::Ice::Double | pmcoord2 |
::Ice::Double | apparentMagnitude |
::std::string | filter |
::Ice::Double | color |
::std::string | colorType |
::Ice::Float | wavelength |
::std::string | file |
::Ice::Double | time |
::Ice::Double | RARate |
::Ice::Double | DECRate |
Ltcs::IifStar::IifStar | ( | ) |
default ctor. Basically not useful, but to build an empty star catalogue
Ltcs::IifStar::IifStar | ( | const lbto::position2 & | star | ) |
Create from a given structure.
star | The contents to be read in. |
Ctor given just a position on the sky. The proper motions, magnitudes etc are all kept at zero.
ra | Right ascension |
dec | Declination |
Ctor with a specification of a single star. This should be line conforming to http://wiki.lbto.org/bin/view/Commissioning/LBTOStarCatalogs but not a comment line.
str | The string. This is typically a line of a star catalogue. |
typ | The indication of how this string is formatted. Should be "lbto" or "nomad". No other formats are implemented. |
Ltcs::IifStar::IifStar | ( | ) |
Ltcs::IifStar::IifStar | ( | const lbto::position2 & | star | ) |
void Ltcs::IifStar::aladin | ( | ) | const |
Open a firefox window to show the current region of the sky in Aladin's DSS2 . Opens a firefox screen with a 6 arcmin field-of-view around this target.
void Ltcs::IifStar::aladin | ( | ) | const |
|
inline |
|
inline |
Nice::DMS Ltcs::IifStar::derotStartAng | ( | const Nice::Date | t, |
const double | lowLim, | ||
const double | hiLim, | ||
const float | dirScale, | ||
const int | durat = 12 *3600 , |
||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
Nice::DMS Ltcs::IifStar::derotStartAng | ( | const Nice::Date | t, |
const double | lowLim, | ||
const double | hiLim, | ||
const float | dirScale, | ||
const int | durat = 12*3600 , |
||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
compute a best start angle for derotation. The parallactic angle is computed from the start time into the future with 20 seconds of resolution, monitoring the maximum and minimum angles. The angle is computed which lets this derotation stay within the limits for the longest possible duration.
t | The civil time in UTC time scales at which derotation should start. Note that this can be a very rough estimate (of the order of 1 or 2 minutes) because the actual start of the derotation will determine the derotator angles. This here is just to get an estimate about the rough extrapolation of the trajectory into the future. |
lowLim | The lower limit switch of the motor (in degrees). This is usually obtained by converting the TRAVELRANGE[0] by the TRANS.DEGREE of the configuration. |
hiLim | The high limit switch (in degrees) This is usually obtained by converting the TRAVELRANGE[1] by the TRANS.DEGREE of the configuration. |
dirScale | The sign of this value must be positive if positive steps lead to positive angles, otherwise negative. So the sign should be the sign of the factor in TRANS.DEGREE in the configuration file, that means negative for the GWS DX as of 2017-05-03, otherwise positive. The absolute value should be the absolute value of CFG.DIRECTION, which is 0.5 for the two K-mirrors and 1 for the 3 other cases. |
durat | The maximum time of extrapolating the trajectory (in seconds) |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
Nice::DMS Ltcs::IifStar::derotStartAng | ( | const Nice::Date | t, |
const Nice::Point & | travelrange, | ||
const Nice::Point & | transDegree, | ||
const float | cfgDirection, | ||
const int | durat = 12 *3600 , |
||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
Nice::DMS Ltcs::IifStar::derotStartAng | ( | const Nice::Date | t, |
const Nice::Point & | travelrange, | ||
const Nice::Point & | transDegree, | ||
const float | cfgDirection, | ||
const int | durat = 12*3600 , |
||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
compute a proposal for a best start angle for derotation. The parallactic angle is computed from the start time into the future with 20 seconds of resolution, monitoring the maximum and minimum angles. The angle is computed which lets this derotation stay within the limits for the longest possible duration.
t | The civil time in UTC time scales at which derotation should start. |
travelrange | The motor limit switches in units of steps. This is usually obtained by reading the TRAVELRANGE in the configuration. |
transDegree | The conversion matrix for conversion of steps to degress. This is usually obtained by reading TRANS.DEGREE of the configuration. |
cfgDirection | The value of CFG.DIRECTION of the configuration. The absolute value is 0.5 for K-mirrors and 1.0 for the others. |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
Distance to another star in units of radians.
oth | The other star to which the distance (along a great arc) is measured. |
|
static |
compute the apparent Greenwich sidereal time.
[in] | t | The civil time in UTC time scales. The default is "now", the time of the function call. |
|
static |
Nice::SkyPoint Ltcs::IifStar::getHoriz | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
Nice::SkyPoint Ltcs::IifStar::getHoriz | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
compute the horizontal coordinates (altitude, azimuth)
t | The civil time in UTC time scales. The default is "now", the time of the function call. |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
|
static |
compute the local sidereal time.
t | The civil time in UTC time scales. The default is "now", the time of the function call. |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
|
static |
Nice::DMS Ltcs::IifStar::getPang | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
Nice::DMS Ltcs::IifStar::getPang | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
compute the parallactic angle.
t | The civil time in UTC time scales. The default is "now", the time of the function call. |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
Nice::DMS Ltcs::IifStar::getPangDot | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) |
Nice::DMS Ltcs::IifStar::getPangDot | ( | const Nice::Date & | t = Nice::Date::now() , |
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) |
compute the first time derivative of the parallactic angle.
t | The civil time in UTC time scales. The default is "now", the time of the function call. |
geosite | Implies the geographic longitude of the observatory. The default is the LBTO in Arizona, the default ctor for the GeoLocation. |
lbto::result Ltcs::IifStar::GetRotatorPolynomials | ( | Ice::Double | start, |
Ice::Int | count, | ||
Ice::Double | interval, | ||
Ice::Int | order, | ||
const std::string & | side, | ||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
lbto::result Ltcs::IifStar::GetRotatorPolynomials | ( | Ice::Double | start, |
Ice::Int | count, | ||
Ice::Double | interval, | ||
Ice::Int | order, | ||
const std::string & | side, | ||
const Nice::GeoLocation & | geosite = Nice::GeoLocation() |
||
) | const |
Use this command to get rotator polynomials.
start | the start time in MJD (UT days) |
count | the number of points in the trajectory |
interval | the time between points (seconds) |
order | the desired polynomial order (0,1,2) |
side | the side this command applies to. |
std::string Ltcs::IifStar::object | ( | ) | const |
A construed object name derived from the coordinates.
std::string Ltcs::IifStar::object | ( | ) | const |
Ltcs::IifStar::operator Nice::SkyPoint | ( | ) | const |
Construct a simple ra/dec pointing from this.
Ltcs::IifStar::operator Nice::SkyPoint | ( | ) | const |
Ltcs::IifStar Ltcs::IifStar::precess | ( | const Nice::Date & | t | ) | const |
Apply proper motion and precession from catalogue origin to some other time.
t | The time when the coordinates should be valid. |
IifStar Ltcs::IifStar::precess | ( | const Nice::Date & | t | ) | const |
IifStar Ltcs::IifStar::precess | ( | ) | const |
Ltcs::IifStar Ltcs::IifStar::precess | ( | ) | const |
Precess equatorial coordinate from the catalogues epoch to now.
IifStar Ltcs::IifStar::propMot | ( | const Nice::Date & | t | ) | const |
Ltcs::IifStar Ltcs::IifStar::propMot | ( | const Nice::Date & | t | ) | const |
Apply a proper motion.
t | The time when the motion ought to be finished. |
Ltcs::IifStar Ltcs::IifStar::propMot | ( | ) | const |
Apply a proper motion.
IifStar Ltcs::IifStar::propMot | ( | ) | const |
std::string Ltcs::IifStar::toLbtoLoc | ( | ) | const |
std::string Ltcs::IifStar::toLbtoLoc | ( | ) | const |
Convert the Ra and Dec coordinates to a LBTO format.
std::string Ltcs::IifStar::toPosition2Py | ( | ) | const |
std::string Ltcs::IifStar::toPosition2Py | ( | ) | const |