GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
223 stars 106 forks source link

Spiral profile #1277

Open esheldon opened 5 months ago

esheldon commented 5 months ago

Adds a new profile Spiral that creates a logarithmic spiral object, represented by point sources.

The points are created in three dimensions in a disk, with possible inclination along the line of sight and rotations in the plane of the sky. The number of spiral arms is also configurable.

Some examples

two spiral arms

Points in 3d as well as a rendered image

Edge on

More arms

Full scenes

rgb-1021620208 rgb-119650250

cwwalter commented 5 months ago

Cool! Would you still add a bulge component separately?

esheldon commented 5 months ago

Yes, that can be added separately.

In the color images above, the galaxies have up to three parts

esheldon commented 5 months ago

Here you can see the knots clearly rgb-979104074

rmjarvis commented 5 months ago

This is quite cool, Erin! The images look great.

esheldon commented 5 months ago

Some things for discussion

rmandelb commented 5 months ago

Thanks Erin - this is super cool. I was going to ask about computational expense and then you commented on it yourself... it feels to me like there must be some trick one could use, relying on the fact that each point is fundamentally the same exact light profile after PSF convolution, modulo sub-pixel shifts. (I assume we are still making the approximation that there is a single well-defined PSF for the entire Spiral object... i.e. no PSF spatial variation across the Spiral object and no color gradients within the Spiral)

rmandelb commented 1 month ago

Hi @esheldon - thanks have been quiet on this PR for a while, so I wanted to check in and let you know that we've been discussing tagging GalSim v2.6 in about a month from now. Do you want this feature in the next tagged version, and if so, do you anticipate that timeline working for you to address the review?

esheldon commented 1 month ago

I started this as a fun project with my son while on vacation. I haven't had any time since to work on it.

If I don't get to Mike's comments in time, please don't wait for me.

rmandelb commented 1 month ago

Ah, the vacation project; I can relate to that phenomenon. Thanks for letting us know... we won't wait on this, but if you do find time for it, we can definitely include it.