TwiceAsNice
2019-02-18
|
A IifStarcat object is a star catalogue with a set of stars. More...
#include <IifStarcat.h>
Public Member Functions | |
IifStarcat () | |
The catalogue. More... | |
IifStarcat (const lbto::SeqPos2 &slist) | |
Define the catalogue through a list of stars. More... | |
IifStarcat (const Ltcs::SeqIifStar &slist) | |
Define the catalogue through a list of stars. More... | |
IifStarcat (const std::string &ifnam, const std::string &typ) | |
Define the catalogue by reading an LBTO ASCII catalogue. More... | |
IifStarcat (const Nice::SeqString &ifnam, const std::string &typ) | |
Define the catalogue by merging one or more LBTO ASCII catalogues. More... | |
operator lbto::SeqPos2 () const | |
Construct the lbto type of vector as used in SetStars2. More... | |
int | brightest () const |
find brightest in the list More... | |
void | add (const Ltcs::IifStar &s) |
Add a star to the catalogue. More... | |
void | add (const lbto::position2 &p) |
Add a star to the catalogue. More... | |
void | add (const Ltcs::IifStarcat &s) |
Add all stars of another catalogue. Warning: There is no criterion activated that eliminates duplicates. More... | |
void | rmFaint (const double mag) |
remove the faintest stars from the catalogue More... | |
void | rm (const size_t idx) |
remove a star at some index in the list. More... | |
IifStarcat | keepByDist (const double &close, const double &far) const |
Remove stars outside a range of distances to the first in the list. More... | |
IifStarcat | roi (const double coord1, const double coord2, const double dist) const |
reduce the star set to a neighbourhood (region of interest) of some coordinate. More... | |
IifStarcat | roi (const IifStar &cntr, const double dist) const |
reduce the star set to a neighbourhood (region of interest) of some coordinate. More... | |
virtual std::string | toLbtoFmt () |
Return a sequence of lines equivalent to the small catalogues of LBTO. More... | |
virtual std::string | toLbtoFmt (const IifStar &cntr, const Nice::Date &t, const double dist) |
Return a sequence of lines equivalent to the small catalogues of LBTO. More... | |
IifStarcat | propMot () const |
Apply all proper motions. More... | |
IifStarcat | propMot (const Nice::Date &t) const |
Apply the proper motions. More... | |
IifStarcat | precess () const |
Correct equatorial coordinates for precession. More... | |
IifStarcat | precess (const Nice::Date &t) const |
Correct for precession. More... | |
IifStarcat () | |
The catalogue. More... | |
IifStarcat (const lbto::SeqPos2 &slist) | |
IifStarcat (const Ltcs::SeqIifStar &slist) | |
IifStarcat (const std::string &ifnam, const std::string &typ) | |
IifStarcat (const Nice::SeqString &ifnam, const std::string &typ) | |
operator lbto::SeqPos2 () const | |
int | brightest () const |
void | add (const Ltcs::IifStar &s) |
void | add (const lbto::position2 &p) |
void | add (const Ltcs::IifStarcat &s) |
void | rmFaint (const double mag) |
void | rm (const size_t idx) |
IifStarcat | keepByDist (const double &close, const double &far) const |
IifStarcat | roi (const double coord1, const double coord2, const double dist) const |
IifStarcat | roi (const IifStar &cntr, const double dist) const |
virtual std::string | toLbtoFmt () |
virtual std::string | toLbtoFmt (const IifStar &cntr, const Nice::Date &t, const double dist) |
IifStarcat | propMot () const |
IifStarcat | propMot (const Nice::Date &t) const |
IifStarcat | precess () const |
IifStarcat | precess (const Nice::Date &t) const |
Protected Member Functions | |
void | aladin () const |
Show the star system with Aladin of the university of Strasbourgh. This opens a brower window that shows the 3 1/2 arcmin surrounding of the target star. More... | |
void | cat () |
void | aladin () const |
void | cat () |
Static Protected Member Functions | |
static std::string | mkstemp (const char *tmpnam) |
create a unique temporary empty file . The functionality of mkstemp(3) but resolving the file name on the way. More... | |
static std::string | mkstemp (const char *tmpnam) |
Ltcs::IifStarcat::IifStarcat | ( | ) |
The catalogue.
default ctor. This defines an empty star catalogue
An unsorted list of stars.
Ltcs::IifStarcat::IifStarcat | ( | const lbto::SeqPos2 & | slist | ) |
Define the catalogue through a list of stars.
slist | The stars in the IIF style that define the (original) set of stars. |
Ltcs::IifStarcat::IifStarcat | ( | const Ltcs::SeqIifStar & | slist | ) |
Define the catalogue through a list of stars.
slist | The stars of the LBTO star catalogue that define the (original) set of stars. |
Define the catalogue by reading an LBTO ASCII catalogue.
ifnam | The File stream of the ASCII file. |
typ | Type of the ASCII file. Recognized is the 13-field "lbto" and the 17-field "nomad" |
Ltcs::IifStarcat::IifStarcat | ( | const Nice::SeqString & | ifnam, |
const std::string & | typ | ||
) |
Define the catalogue by merging one or more LBTO ASCII catalogues.
ifnam | The File names of the ASCII files. |
typ | Type of the ASCII file. Recognized are "lbto" and "nomad." |
Ltcs::IifStarcat::IifStarcat | ( | ) |
The catalogue.
An unsorted list of stars.
Ltcs::IifStarcat::IifStarcat | ( | const lbto::SeqPos2 & | slist | ) |
Ltcs::IifStarcat::IifStarcat | ( | const Ltcs::SeqIifStar & | slist | ) |
Ltcs::IifStarcat::IifStarcat | ( | const Nice::SeqString & | ifnam, |
const std::string & | typ | ||
) |
void Ltcs::IifStarcat::add | ( | const Ltcs::IifStar & | s | ) |
Add a star to the catalogue.
s | The star to be incorporated. |
void Ltcs::IifStarcat::add | ( | const Ltcs::IifStar & | s | ) |
void Ltcs::IifStarcat::add | ( | const lbto::position2 & | p | ) |
Add a star to the catalogue.
p | The star to be incorporated. |
void Ltcs::IifStarcat::add | ( | const lbto::position2 & | p | ) |
void Ltcs::IifStarcat::add | ( | const Ltcs::IifStarcat & | s | ) |
Add all stars of another catalogue. Warning: There is no criterion activated that eliminates duplicates.
s | The stars to be incorporated. |
void Ltcs::IifStarcat::add | ( | const Ltcs::IifStarcat & | s | ) |
|
protected |
Show the star system with Aladin of the university of Strasbourgh. This opens a brower window that shows the 3 1/2 arcmin surrounding of the target star.
|
protected |
int Ltcs::IifStarcat::brightest | ( | ) | const |
int Ltcs::IifStarcat::brightest | ( | ) | const |
find brightest in the list
|
protected |
|
protected |
Ltcs::IifStarcat Ltcs::IifStarcat::keepByDist | ( | const double & | close, |
const double & | far | ||
) | const |
Remove stars outside a range of distances to the first in the list.
Examples: keep all the stars in the region of the HWS up to 1 arcmin: ... = keepByDist(-1.0, 0.000291) or to keep all the stars in the region of the GWS between 1 and 3 arcmin: ... = keepByDist(0.000291, 0.000873)
close | The lower distance of the stars in the ring of stars to be kept (radian). Should be set to a negative number if all stars up to some maximum distance are to be kept. |
far | The upper distance of the stars in the ring of stars to be kept (radian). Should be set to effectively 3.2 (above pi) to include all stars beyond some distanc.e |
IifStarcat Ltcs::IifStarcat::keepByDist | ( | const double & | close, |
const double & | far | ||
) | const |
|
staticprotected |
create a unique temporary empty file . The functionality of mkstemp(3) but resolving the file name on the way.
templ | A prefix to faciliate lookup of the use. Note that the XXXXXX marker of mkstemp(3) is not part of the parameter but added locally. |
|
staticprotected |
Ltcs::IifStarcat::operator lbto::SeqPos2 | ( | ) | const |
Construct the lbto type of vector as used in SetStars2.
Ltcs::IifStarcat::operator lbto::SeqPos2 | ( | ) | const |
IifStarcat Ltcs::IifStarcat::precess | ( | ) | const |
Ltcs::IifStarcat Ltcs::IifStarcat::precess | ( | ) | const |
Correct equatorial coordinates for precession.
Ltcs::IifStarcat Ltcs::IifStarcat::precess | ( | const Nice::Date & | t | ) | const |
Correct for precession.
t | The time when the motion ought to be finished. |
IifStarcat Ltcs::IifStarcat::precess | ( | const Nice::Date & | t | ) | const |
IifStarcat Ltcs::IifStarcat::propMot | ( | ) | const |
Ltcs::IifStarcat Ltcs::IifStarcat::propMot | ( | ) | const |
Apply all proper motions.
IifStarcat Ltcs::IifStarcat::propMot | ( | const Nice::Date & | t | ) | const |
Ltcs::IifStarcat Ltcs::IifStarcat::propMot | ( | const Nice::Date & | t | ) | const |
Apply the proper motions.
t | The time to which the motion ought to be promoted. |
void Ltcs::IifStarcat::rm | ( | const size_t | idx | ) |
void Ltcs::IifStarcat::rm | ( | const size_t | idx | ) |
remove a star at some index in the list.
[in] | idx | The 0-based index. If the index is outside the range of available stars, nothing happens. |
void Ltcs::IifStarcat::rmFaint | ( | const double | mag | ) |
void Ltcs::IifStarcat::rmFaint | ( | const double | mag | ) |
remove the faintest stars from the catalogue
[in] | mag | The fainting limit. The limiting magnitude. This means stars with numerical magnitude larger than that will be removed. |
IifStarcat Ltcs::IifStarcat::roi | ( | const double | coord1, |
const double | coord2, | ||
const double | dist | ||
) | const |
Ltcs::IifStarcat Ltcs::IifStarcat::roi | ( | const double | coord1, |
const double | coord2, | ||
const double | dist | ||
) | const |
reduce the star set to a neighbourhood (region of interest) of some coordinate.
coord1 | RA of the center of interest (radian) |
coord2 | DEC of the center of interest (radian) |
dist | Maximum distance to the (ra,dec) (radian). Effectively a radius working as a filter criterion on this set. |
IifStarcat Ltcs::IifStarcat::roi | ( | const IifStar & | cntr, |
const double | dist | ||
) | const |
Ltcs::IifStarcat Ltcs::IifStarcat::roi | ( | const IifStar & | cntr, |
const double | dist | ||
) | const |
reduce the star set to a neighbourhood (region of interest) of some coordinate.
cntr | The star that defines the position of center of the search radius |
dist | Maximum distance to the (ra,dec) (radian) |
|
virtual |
Return a sequence of lines equivalent to the small catalogues of LBTO.
|
virtual |
|
virtual |
Return a sequence of lines equivalent to the small catalogues of LBTO.
cntr | The star that defines the position of center of the search radius |
t | The time to which the coordinate transformations apply. |
dist | The maximum distance for keeping stars, relative to cntr, in radians . |
|
virtual |