Get a Catalog File
Every search needs a catalog file. Building one from the survey data means downloading 701 GB and needs about 800 GB of disk, so start with a pre-built file. This page covers downloading one, checking it, and picking the size that fits your work.
Download a pre-built file
The catalog folder on Dropbox has three files. All three hold stars down to magnitude 18.5, with positions at epoch J2016.0. They differ in how many stars each patch of sky keeps:
| File | HEALPix order | Stars per cell | Stars | Size |
|---|---|---|---|---|
catalog-small.bin | 6 | 100 | 4,915,200 | 276 MB |
catalog-standard.bin | 8 | 50 | 38,841,656 | 2.2 GB |
catalog-full.bin | 8 | 200 | 111,072,265 | 6.2 GB |
Put the file anywhere and pass its path to Catalog::open or to
query-catalog --catalog. Nothing else needs to be installed next to it.
The rest of this page explains the order and stars-per-cell columns, and
Choose a size says which file to pick.
Install the command-line tools
The forge and query-catalog binaries need the cli feature. From a
clone of the repository:
cargo install --path celestial-catalog --features cli
Or straight from GitHub, without a clone:
cargo install --git https://github.com/gaker/celestial celestial-catalog --features cli
Both commands install the two binaries into ~/.cargo/bin. The library
doesn’t need the cli feature, which adds clap, rayon, reqwest and other
dependencies that only the binaries use.
Check the file
query-catalog info opens the file and prints its header. Opening checks
the header and every entry in the index, so a truncated or damaged
download fails here:
query-catalog --catalog catalog-small.bin info
HEALPix order: 6
nside: 64
npix: 49152
Total stars: 4915200
Epoch: J2016.0
Magnitude limit: 18.50
Average stars per pixel: 100.0
File size: 276037696 bytes (263.25 MB)
The star count and file size should match the table above. “Pixel” and “cell” mean the same thing: one patch of sky in the HEALPix grid. The query-catalog Command covers searching.
Choose a size
Two numbers set a file’s size. The HEALPix order sets how finely the sky is cut into cells: order 6 makes 49,152 cells about 55′ across, and order 8 makes 786,432 cells about 13.7′ across. Stars per cell caps how many stars each cell keeps, the brightest first. How the Catalog File Works explains the tradeoff between them.
What the cap costs you is depth: in a crowded cell, the cap fills up before the magnitude limit does. This table shows the magnitude down to which each file keeps every star, measured over all of its cells:
| File | Half the sky | 90% of the sky | Everywhere |
|---|---|---|---|
catalog-small.bin | G 13.1 | G 11.7 | G 9.7 |
catalog-standard.bin | G 16.1 | G 14.0 | G 10.4 |
catalog-full.bin | G 18.5 | G 15.8 | G 12.1 |
Read the small file’s row as: in half the sky it keeps every star brighter than G 13.1, and nowhere does it drop a star brighter than G 9.7. The faintest values come from cells along the Milky Way, where all of a 55′ cell’s 100 brightest stars can be brighter than G 10.
When the small file is enough
- Bright stars. Any search for stars brighter than G 9.7 returns the same stars from all three files. Choosing alignment stars, listing targets for a pointing run or drawing a finder chart to that magnitude doesn’t need the larger downloads.
- Wide-field plate solving. A field about 1° across or more holds plenty of small-catalog stars to match. The solver’s tests solved every test image with the small file, from a 22′ × 17′ frame of M106 up to 4° fields. On M106, though, it matched only 10 stars, too few to fit distortion terms. The Star Catalog in the plate solving section has the results for each image and file.
- Limited disk or bandwidth. The small file is 276 MB, so it fits on a small computer at the mount.
When to use a larger file
- Narrow fields. Under about 1° across, use
catalog-standard.bin. Under about 20′, or in crowded fields along the Milky Way, usecatalog-full.bin. - Faint stars. If you need stars fainter than G 13 to G 14 over most of the sky, the small file doesn’t have them.
If you aren’t sure, start with the standard file.
Credit the data
The pre-built files are derived from:
- Gaia DR3: European Space Agency (ESA) mission Gaia, processed by the Gaia Data Processing and Analysis Consortium (DPAC). Gaia DR3 is licensed under CC BY 4.0. See the Gaia credit page for how to cite it.
- Hipparcos: the new reduction of the Hipparcos data (van Leeuwen 2007), matched to Gaia with the Gaia EDR3 Hipparcos2 best-neighbour table.
If you use a catalog file in published work, cite Gaia DR3 as ESA asks.
Next steps
- To search from the shell, read The query-catalog Command.
- To search from your own code, read Search the Catalog from Rust.
- To build a file with a different order, cap or magnitude limit, read Build a Catalog with forge.