Skip to main content

Good enough CMDs based on simple star cluster member selection.

Project description

gaiacmds DOI

Good enough simple membership selection to recover color-magnitude diagrams for use in the classroom!

Installation

To install:

cd ~

git clone https://github.com/avapolzin/goodenough_gaia_cmds.git

cd gaiacmds

pip install .

or

pip install gaiacmds

Getting Started

This lightweight code is designed to auto-generate CMDs from Gaia data based on a simple object name search. While not using a sophisticated selection function suited to research purposes, results are good enough for pedagogical use, including explaining SSPs (or CSPs as the case may be), "fitting" isochrones, and recovering age/distance/metallicity for nearby stellar populations.

import gaiacmds

# adopting age and distance from Chen+23: https://ui.adsabs.harvard.edu/abs/2023ApJ...948...59C/abstract
gaiacmds.plot('NGC 3532', 5, isos = 'mist', logage = 8.5, feh = 0.25, dist = 484)
NGC3532
# adopting isochrone properties and membership cut from Griggio+23: https://ui.adsabs.harvard.edu/abs/2023MNRAS.523.5148G/abstract
gaiacmds.plot('M38', 5, isos = 'mist', logage = 8.5, feh = 0.06, dist = 1130, pmra = 1.5, pmd = -4.5)
M38

gaiacmds ships with easy plotting of MIST and PARSEC stellar isochrones for Gaia EDR3. BaSTI may be added in the future.

Stellar isochrone models will not always perfectly align with the CMD, and, for example, this paper may be of interest in understanding discrepancies between the CMD and theoretical isochrone positions. Additionally, for consistency between models, all of the synthetic Gaia photometry is for EDR3, and all models use solar abundance patterns.

Documentation (of a sort)

Since the options are so minimal/simple, please refer to the docstring for gaiacmds.plot() to understand what options exist. The other functions may be used in isolation, too, though only gaiacmds.plot() is intended to be user-facing.

In the future, I may add options to make proper motion or other plots to help guide user choices, though this is the intent of the colormaps and spatial plot that are available at the moment. I may also add the ability to correct for reddening, though that would similarly further complicate what is intended to be a simple pedagogical tool.

Citation

If you use this package or the scripts in this repository in a publication, please add a footnote linking to https://github.com/avapolzin/goodenough_gaia_cmds and/or consider adding this software to your acknowledgments. If you would like to cite gaiacmds, please use the Zenodo DOI linked here.

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

gaiacmds-0.5.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

gaiacmds-0.5.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file gaiacmds-0.5.1.tar.gz.

File metadata

  • Download URL: gaiacmds-0.5.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for gaiacmds-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b5c4976a36ec23a8ea399fbbed774f475aa0663a82d4731d0067b3f482af23f5
MD5 dd4957d677571319460e74a32990f88b
BLAKE2b-256 e031727416c97eee1f88a8a9b606d974bf64a6c11ceab00c9f979b15d41dabfe

See more details on using hashes here.

File details

Details for the file gaiacmds-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: gaiacmds-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for gaiacmds-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7cf1e16a119fe324a42a4c6498e7d9eabdf62b3326c016424224fa1176537d32
MD5 1e921d718ac2bcdf1caf9e11de5437af
BLAKE2b-256 976ef65ad6a514b96dbe3591f0481d18240556e952d1714810335af05d0a53d9

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