Giter Club home page Giter Club logo

artpop's Introduction

ArtPop

./docs/artpop_diagram.jpg

CI pypi arXiv zenodo

An engine for generating realistic mock images of Artificial Stellar Populations.

Documentation

Doc Status

The code documentation is hosted on Read the Docs.

License

License

ArtPop is open-source software made available under the MIT License.

artpop's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

artpop's Issues

3D spatial distribution

In light of the upcoming Gaia DR3, it might be nice to enable 3D spatial distribution of stellar populations.

If these distributions could be assigned differently for each sub-population (say young\old, low\high metallicity, etc.), and easily reflect the structure of the Solar neighborhood, it would be extremely nice :)

select stellar phases for a composite population

The select phase method of an ssp be inherited by a composite population?

For example, following the tutorial example of combining young, intermediate and old populations, we do something like
csp = ssp_old + ssp_intermediate + ssp_young

Then, is there an option to select the phases directly on the resulting population, rather than going back to the single ones and combining them again? For example:

# generate boolean phase masks
MS  = csp.select_phase('MS')
RGB = csp.select_phase('RGB')
AGB = csp.select_phase('AGB')

How to generate a source with only main sequence stars?

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!

Gaia filters

Hello, I am wondering if there is a way to include new filters in addition to those on the phot_system_list
I would like to use ArtPop for my stellar astrophysics class and compare with open clusters from Gaia. Is there a way for a user to add filters, like the Gaia filters, if the transmission curves exist?

Thanks!

smarter sersic grid sampling

Currently, the Sersic spatial sampling uses xy_from_grid, with the parameter num_r_eff setting how large of a grid to use. There are three downsides of this approach:

  • the xy positions are discrete integers (works okay if your PSF is well-sampled)
  • the number of sampled stars is fixed regardless of the size of the sampling grid (e.g., you could have all the stars packed into one effective radius if num_r_eff = 1)
  • the memory requirements can become extreme if r_eff is large in pixel space

One simple way to solve the second and third issues is to use the input Sersic distribution to calculate the fraction of stars that will fall outside the image and reduce the number of sampled stars by this factor.

Note: the implementation may require some more thought when total_mass given instead of num_stars.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.