| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| README.txt | 2019-07-06 | 2.8 kB | |
| mkRealVsRandom.pl | 2019-07-06 | 2.4 kB | |
| wdsDataStructures.h | 2019-07-06 | 1.8 kB | |
| preciseAscii2bin.c | 2019-07-06 | 4.8 kB | |
| sortNaGR2dataByRa.c | 2019-07-06 | 3.4 kB | |
| gaiaGR2toNa.c | 2019-07-06 | 4.7 kB | |
| g2dataStructures.h | 2019-07-06 | 1.5 kB | |
| findGaiaDR2_pairs.c | 2019-07-06 | 9.3 kB | |
| utilities.tgz | 2019-07-06 | 21.4 kB | |
| extractBrightStarsFromDR2.c | 2019-07-06 | 2.1 kB | |
| isolatedPairFind.c | 2019-07-06 | 9.3 kB | |
| sysInclude.h | 2019-07-06 | 559 Bytes | |
| Totals: 12 Items | 64.2 kB | 0 |
To compile these programs, you'll need a Linux based machine with gcc, gnuplot,
and perl installed. One could also use a Windows machine running cygwin,
but I have not tried it. These programs take full advantage that they were run
on a machine with 32GB of memory. You'll need to edit the bin size of the data
buffer in findGaiaDR2_paors.c, isolatedPairFind.c and others to make them
work on a machine with less memory.
The programs were compiled with this bash script:
------------------------------------------------------------------
#! /bin/sh
#
# Compile a C program ($1) to a debuggable $2 executable.
#
if [ $# != 2 ]; then
echo "Usage: cmpl <source> <executable>"
exit
elif [ ! -f $1 ]; then
echo "I couldn't find " $1
exit
fi
# gcc -std=gnu99 -o $2 -W<F2>all -Wextra -g $1 -lm
gcc -std=gnu99 -o $2 -Wall -g $1 -lm
-------------------------------------------------------------------
First, you need to obtain the Gaia DR2 data. These 1.7 billion ASCII records
took me over a day to download over a fast optical fiber link.
You'll need to gunzip the utilities.tgz file and put these subroutines into a
path that your gcc compiler can find. This is also true of the .h files.
The programs themselves:
In general, these programs assume a very specific directory structure that
allows them to locate subroutines and data. You'll have to either duplicat my
structure or edit them to reflect yours. Sorry! I was more interested in making
the code work to obtain the data for the JDSO paper than making a user friendly
product. That said, I did try to comment what the code is doing and why. It's
not as bad as you might think after reading this!
gaiaGR2toNa.c: This takes the ASCII Gaia DR2 data and converts it to g2data
structures (see g2dataStructures.h for details)
sortNaGR2dataByRa.c: Arranges to output of gaiaGR2toNa.c in increasing RA order.
findGaiaDR2_pairs.c: This searches the Gaia DR2 data for possible pairs and
binaries. It can search the 11, 15, 1nd 18mg limiting magnitude databases.
extractBrightStarsFromDR2.c: This extracts stars brighter than a given mg from
the Gaia DR2 data.
isolatedPairFind.c: Like findGaiaDR2_pairs.c, but it stops at the first star
found within an arcminute of a given star.
utilities.tgz: A series of subroutine that the above code call. These need to be
in the gcc compiler's path for the above to compile.
sysInclude.h: The include files required by the above.
mkRealVsRandom.pl: This script creates plots of real vs random stars for a given
mg limit.
Finally, if you do actually download these programs, edit them to suit your
directory structure, have the most recent versions of gcc, gnuplot, and perl,
and find that things just don't work on your machine as they do on mine, ping me
at rkk_529@hotmail.com, and I'll try to help.