GithubHelp home page GithubHelp logo

websky-cita / xgpaint.jl Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 3.0 110.23 MB

fast forward simulations of extragalactic foregrounds

Home Page: https://websky-cita.github.io/XGPaint.jl/dev/

License: MIT License

Julia 100.00%
cosmology julia

xgpaint.jl's Introduction

XGPaint.jl

Dev Build Status codecov

XGPaint.jl paints maps of extragalactic foregrounds using halo catalogs. Please read the documentation.

xgpaint.jl's People

Contributors

dongwooc avatar lucas-kuhn avatar marlena6 avatar xzackli avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xgpaint.jl's Issues

separate interpolator generation for model from source generation

at the moment get_interpolators runs every time generate_sources happens. this results in an inefficiency that is admittedly very minor, but if interpolator generation becomes expensive for whatever reason at some future point, for chunked runs it is likely more performant to generate interpolators once for the whole halo catalogue and then pass that to the per-chunk function each time.

thread safety

XGPaint until this point has been used on very large sky areas and a huge number of halos. Shared-memory calculations where multiple threads mutate one shared array has been ok, because the sources in each thread's chunk are super far away from each other on the sky.

Now that we're generating smaller patches, we should probably make a small workspace structure that holds a copy of the map for each thread.

Then we'll add up the final maps at the end. For large maps, it still makes sense not to make 32 copies of the full sky, so we should probably have an option to do what XGPaint currently does.

what exactly is wrong with websky CIB?

I'd like to collect some overplots of data and websky CIB predictions. I'll see if I can bring back the Planck auto spectra plots. That's one of the things that Websky does right (to my knowledge), and is one of the key constraints for this model.

My impression is that there is something wrong with the redshift evolution of flux in frequencies. How do we know about that? What are other data constraints?

Does this CIB model agree with the Shang halo model C_ell that Boris has?

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

CIB conditional luminosities

  • Poisson draw dn/dL(L|M, z) in xgpaint โ€” can be provided by user or, in the case of the exisitng websky model, calculate dn/dL = dn/dmsub * dmsub / dL, where L = L_0 * Sigma(msub) and dn/dmsub is the subhalo mass function already included
  • Plot the dn/dL(L|M, z) for the existing websky subhalo HOD model

randomisation performance

it would be good to figure out if calling rand for each satellite individually is really the best approach, or if pre-allocating however many random numbers are needed is better. of course the latter approach would increase memory requirements to some extent, so even if pre-allocated rands results in faster performance it'd probably need to be possible to turn that on/off.

Bug in the definition of Sigma_cen

It seems to me that the definition of sigma_cen is missing a square in model.shang_sigmaM https://github.com/xzackli/XGPaint.jl/blob/aee8f41fbf712153b8f9cd8f231fef05ef6ddbf7/src/cib.jl#L103

See eq. 23 of https://arxiv.org/abs/1109.1522 .Could you please confirm that ?

Also in
https://github.com/xzackli/XGPaint.jl/blob/aee8f41fbf712153b8f9cd8f231fef05ef6ddbf7/src/cib.jl#L108
it doesn't seem implemented the SED form adopted in eq.24 of https://arxiv.org/abs/1109.1522 . why ?

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.