ArtificialStellarPopulations / ArtPop

✨ ArtPop – Building artificial galaxies one star at a time.
https://artpop.readthedocs.io/en/latest/
MIT License
61 stars 10 forks source link

How to generate a source with only main sequence stars? #15

Closed PaulLiu666 closed 1 year ago

PaulLiu666 commented 1 year ago

Firstly, I built stellar populations and drew HR-diagram of the stellar evolution stages that interest me. image Then I wanted to generate a source with only the main sequence star, and I used the following code, but there were errors. How can I input the values of labels to obtain the desired results?

截屏2023-06-06 11 12 09

Thank you very much for your help!

johnnygreco commented 1 year ago

Hey @PaulLiu666 – I think the simplest approach would be to build the source object from the ground up:

If your end goal is to simply create an RGB image of the source, the observe method of Imager objects have an optional mask argument for selecting the stars you want to inject.

This is how we made the figure below in the ArtPop paper:

phase-ssp-grid

The script for making this figure is here.

PaulLiu666 commented 1 year ago

@johnnygreco Thank you very much!