Published January 11, 2026 | Version 1.0.0
Dataset Open

Gaia-2MASS Local Sharded SQLite Catalogue

  • 1. EDMO icon ETH Zürich
  • 2. EDMO icon University of Cambridge Department of Physics

Description

This repository contains sharded SQLite databases of the Gaia-2MASS crossmatch catalogue, enabling fast local queries, up to different J magnitudes.

The locally created database is currently optimised for offline astrometric plate solving for visible and near-infrared observations.

The catalogue was generated by cross-matching Gaia DR2 and 2MASS catalogues using the astroquery Python package.

J mag cut Number of records
1 144
2 650
3 2.1K
4 6.3K
5 18.0K
6 57.8K
7 160.3K
8 426.4K
9 1.10M
10 2.83M
11 6.96M
12 16.1M
13 36.1M
14 79.2M
15 160.6M
16 296.9M

 

Usage

To use a local catalogue, download one of the already created Gaia-2MASS SQLite database files.

You can find an example of how to use the database in [example.py](example.py) from gaia-tmass-sqlite-generating-code.zip:

```python
if __name__ == '__main__':
    min_dec = -50.2
    max_dec = -49.2
    min_ra = 23.3
    max_ra = 24.4

    t0 = datetime.now()
    df = db_query('./db/gaia_tmass_16_jm_cut.db', min_dec, max_dec, min_ra, max_ra)
    print("Executed query", datetime.now() - t0)
    print(df)

```

```
Executed query 0:00:00.236333

            ra        dec       pmra      pmdec  phot_g_mean_mag     j_m
0    23.693215 -49.805034   17.91935 -36.989641         7.487380   5.177
1    23.573126 -49.448267  91.111847  10.057243         9.748498   8.751
2    24.121133 -49.926295  91.715677  47.979666         9.838325   8.860
3    23.817866 -49.549265  14.543387   8.118343        10.602289   9.109
4    24.226083 -49.414841  -2.335897 -87.573116        10.764868   9.329
..         ...        ...        ...        ...              ...     ...
615  23.629336 -50.186380  11.270629  -0.525701        17.416536  15.977
616  24.218084 -50.074234  12.997597  -0.806246        17.658678  15.986
617  24.326128 -49.769186  11.724527  -6.793672        18.224480  15.989
618  23.476797 -49.334399   0.578949  -1.991031        17.085663  15.993
619  23.386318 -49.613298  22.275294  -0.469569        17.023968  15.998

```

 

This work has made use of data from the European Space Agency (ESA) mission Gaia (https://www.cosmos.esa.int/gaia), processed by the Gaia Data Processing and Analysis Consortium (DPAC, https://www.cosmos.esa.int/web/gaia/dpac/consortium). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the Gaia Multilateral Agreement.

This publication makes use of data products from the Two Micron All Sky Survey, which is a joint project of the University of Massachusetts and the Infrared Processing and Analysis Center/California Institute of Technology, funded by the National Aeronautics and Space Administration and the National Science Foundation.

Files

gaia-tmass-sqlite-generating-code.zip

Files (36.6 GB)

Name Size Download all
md5:9277216bb100373235350c09d2095e78
388.7 kB Preview Download
md5:988c088cc9348a32dcec4c92eb3c3c91
172.3 MB Download
md5:7c5930cb01549e92fa8d78146690e6c7
425.2 MB Download
md5:e782bdda5808f277137b25e0132c7df9
987.6 MB Download
md5:066edee576967502c33f2dc3a1a2a736
2.2 GB Download
md5:176195add8d198b8fbf6728ad942c02b
4.8 GB Download
md5:a31e9ecef9a51f59798b451ffaec7ba1
9.8 GB Download
md5:37dd19f9c062165b9ee186f4825d4a23
18.1 GB Download
md5:78a0fbce9d7a36f141714ddce970e42b
766.0 kB Download
md5:80b3eb551891d9c0709c2579bff59525
766.0 kB Download
md5:e74e886d223937f9af2d601d492cf90e
766.0 kB Download
md5:8ee40c2dd9a68c42835542db5e9f995f
766.0 kB Download
md5:30be339aac3dbcf01d867fc965928572
2.0 MB Download
md5:f3d74c4877ac113d73e6570700fab17e
4.5 MB Download
md5:d57e9a3b9f6307790843c3154264d8e6
10.8 MB Download
md5:ee1d275832771f4bdb1b3f5e43d73da4
26.8 MB Download
md5:316e953e56361c9bc3478527598951c6
67.2 MB Download

Additional details

Related works

Cites
Journal article: 10.1051/0004-6361/201629272 (DOI)
Journal article: 10.1086/498708 (DOI)

Dates

Created
2026-01-11