danielapai / bioverse

A simulation framework to assess the statistical power of future biosignature surveys
MIT License
7 stars 5 forks source link

Enable selection of spectral types #58

Closed matiscke closed 3 months ago

matiscke commented 3 months ago

This adds the functionality of selecting desired spectral types in the star generator.

A selection of spectral types can be provided to the generated with a new keyword argument SpT.

Examples:

sample = generator.generate(SpT=['F', 'G', 'K'])
stars_args = {
    'd_max': 30,  # max. dist to stars (pc),
    'SpT' : ['F', 'G', 'K']
    }

g = Generator(label=None)
g.insert_step("read_stars_Gaia")

[g.set_arg(key, val) for key, val in stars_args.items()]
d = g.generate()