alejandrobll / py-sphviewer

Py-SPHViewer is a framework for rendering cosmological simulations in Python using the Smoothed Particle Hydrodynamics scheme.
https://alejandrobll.github.com/py-sphviewer
GNU General Public License v3.0
70 stars 29 forks source link

Render.get_image() units #32

Closed sj-wilkinson closed 1 year ago

sj-wilkinson commented 1 year ago

Hi there,

I saw the previous post here asking about the units of the final image, but still could use some clarification. If my input mass is in units of solar masses, is the image a surface density in solar masses per pixel area?

For some reason, the sum of the image output is larger in a smaller FOV cutout than a larger one and neither seem particularly close to the total mass of the halo found in the catalogues (IllustrisTNG100-1).

Thanks very much for your time.

Scott

alejandrobll commented 1 year ago

Hi, are you using "r=infinity" for the camera? If so, the units should be given by the gas particle mass and the extent parameters.

Cheers, Alejandro.

On Wed, 2 Nov 2022 at 00:13, Scott Wilkinson @.***> wrote:

Hi there,

I saw the previous post here asking about the units of the final image, but still could use some clarification. If my input mass is in units of solar masses, is the image a surface density in solar masses per pixel area?

For some reason, the sum of the image output is larger in a smaller FOV cutout than a larger one and neither seem particularly close to the total mass of the halo found in the catalogues (IllustrisTNG100-1).

Thanks very much for your time.

Scott

— Reply to this email directly, view it on GitHub https://github.com/alejandrobll/py-sphviewer/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYAMDITAI2TT5NOFDIXUSLWGGPZVANCNFSM6AAAAAARUQZP2E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sj-wilkinson commented 1 year ago

Hi Alejandro,

Thanks for the response. By this do you mean that the units of the pixel values in the output image are in Msun/kpc^2, as per the input mass and extent parameters?

Thanks, Scott

alejandrobll commented 1 year ago

Hi Scott, Indeed, provided r='infinity' in the camera parameters.

On Thu, 10 Nov 2022, 03:08 Scott Wilkinson, @.***> wrote:

Hi Alejandro,

Thanks for the response. By this do you mean that the units of the pixel values in the output image are in Msun/kpc^2, as per the input mass and extent parameters?

Thanks, Scott

— Reply to this email directly, view it on GitHub https://github.com/alejandrobll/py-sphviewer/issues/32#issuecomment-1309669225, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYAMDL33QCX5VKLUKPIQVDWHRKJJANCNFSM6AAAAAARUQZP2E . You are receiving this because you modified the open/close state.Message ID: @.***>