Skip to main content

Machine learning tool for the determination of new members of open clusters using Gaia data.

Project description

Open Cluster Automatic Membership Determination with Gaia data

This repository presents automatic procedure for determining new members of open clusters was developed. We use a neural network architecture to find additional members of an open cluster based on already established probable members. To train our model, we use astrometric and photometric data of stars obtained with the Gaia space telescope. The repository contains code for downloading and preparing datasets, for training the model and for the visualization of some results.

Python environment setup

This code is available as a PyPI package and can be installed with

pip install gaia_oc_amd

Alternatively, download the code directly from GitHub with

git clone https://github.com/MGJvanGroeningen/gaia_oc_amd

Data preparation

To use this method, we need to download cluster properties, membership lists and isochrones. To simply get started use:

from gaia_oc_amd import download_startup_data
download_startup_data(save_dir='./data')

This downloads cluster parameters provided by Cantat-Gaudin et al. (2020) and membership lists provided by Cantat-Gaudin et al. (2018), Cantat-Gaudin & Anders (2020), Cantat-Gaudin et al. (2020) and Tarricq et al. (2022). Isochrones are downloaded from the Padova web interface.

In addition, we also want to query the Gaia archive at https://gea.esac.esa.int/archive/ to search for new members, which requires an account for large queries. The code that is used to handle the queries expects a credentials file (with filename 'gaia_credentials' by default), which contains 2 lines for username and password, in the supplied data directory to login to the Gaia archive. This file can be created manually or by running

from gaia_oc_amd import create_gaia_credentials_file
create_gaia_credentials_file(save_path='./gaia_credentials')

which prompts for username and password.

Quick start

With the data and Gaia credentials set up, we can find new members for a cluster with

from gaia_oc_amd import build_sets, evaluate_clusters

cluster_name = 'NGC_1039'

build_sets(cluster_name)
evaluate_clusters(cluster_name)

This performs a cone search on the Gaia archive to obtain source data for potential members and uses a pretrained model included in the package to determine their membership status.

Exploring the code

If you want to explore the methods that are used, be sure to check out the tutorial notebooks in the examples directory. The quick_tutorial.ipynb notebook shows a minimal example while the tutorial.ipynb notebook walks through the methods step by step.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaia_oc_amd-0.1.tar.gz (11.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gaia_oc_amd-0.1-py3-none-any.whl (203.0 kB view details)

Uploaded Python 3

File details

Details for the file gaia_oc_amd-0.1.tar.gz.

File metadata

  • Download URL: gaia_oc_amd-0.1.tar.gz
  • Upload date:
  • Size: 11.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for gaia_oc_amd-0.1.tar.gz
Algorithm Hash digest
SHA256 a3af9c865ea934c1a3c93d6dbed572c6e00b6bec6c3fbab52e212e4ab721e902
MD5 ab3d9b2de10923332f7c66b55c9b140d
BLAKE2b-256 7d64c7a00c72d17ab12cf7bad2024b8c7726e9fb5ceff9fb28ef7f6dadb6dffc

See more details on using hashes here.

File details

Details for the file gaia_oc_amd-0.1-py3-none-any.whl.

File metadata

  • Download URL: gaia_oc_amd-0.1-py3-none-any.whl
  • Upload date:
  • Size: 203.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for gaia_oc_amd-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fac171318a15bb4ceda0f3e99829d7941513a783bf49f56f99b5b3b0b5dbeae8
MD5 048112d042e9fa1c9fa66d06b3ef2c0f
BLAKE2b-256 7add24e04a2512b7fec49e138af7e76026c1c38cdaf649528122d0545ce8ded2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page