- This class read the csv file of Hipparcos catalogue and to enable other classes to use the data.
- Specify the max visual magnitude to read in
sample_simulation_base.ini
ReadContents
- Function to read
hip_main.csv
- Function to read
Get
functions
- Functions to access the data of
HipparcosCatalogue
from outside of this class
HipparcosCatalogue.cpp
,HipparcosCatalogue.hpp
- Definitions and declarations of the class
sample_simulation_base.ini
- Parameters for initialization
hip_main.csv
- This is the original data of the Hipparcos catalogue. It is in the
ExtLibraries
directory. This data is sorted in of the visual magnitude, not in the order of HIP ID.
- This is the original data of the Hipparcos catalogue. It is in the
s2e-core/scripts/download_HIPcatalogue.sh
is the script to download it. Run the following code using Git bash ins2e-core/scripts/
.- NOTE for Mac OS users: Run the following script not from the Mac terminal but the Ubuntu terminal in Docker. (Because the specification of
sed
is different between Mac and Linux, the file cannot be generated correctly. Reference: https://qiita.com/catfist/items/1156ae0c7875f61417ee)
bash download_HIPcatalogue.sh
- NOTE for Mac OS users: Run the following script not from the Mac terminal but the Ubuntu terminal in Docker. (Because the specification of
- Set the parameters in
sample_simulation_base.ini
- Create an instance by using initialization function
InitHipparcosCatalogue
- Run
GetContents
to read the csv file - Get the data from outside this class using
Get
functions. - The
HipparcosData
structure has four elements, hipparcos_id, visible_magnitude, right_ascension_deg, declination_deg.HipparcosCatalogue
stores the data as a vector ofHipparcosData
.
TBW
The verification using this class is conducted in Spec_Telescope.md
.