Galaxy effective radius in DP1

Hello,

Just to check… if I wanted to get a galaxy’s effective radius from sersic_reff_x, sersic_reff_y and sersic_rho

Would I use…

sigmaxy=sersic_rho * sersic_reff_x * sersic_reff_y #sigmaxy is covariance 

covmat=np.array([[sersic_reff_x**2, sigmaxy], [sigmaxy, sersic_reff_y**2]])

eigenvalues, eigenvectors = LA.eig(covmat)

reff=np.sqrt(np.max(np.abs(eigenvalues)))#semi-major axis effective radius 

?

cheers

John

Hi @jstott ,

Thanks for the question. Assuming LA refers to numpy.linalg , I believe your implementation is mathematically equivalent to the method demonstrated in Section 3.3 of NB 303.2. I recommend comparing the results of both methods to ensure consistency. If this addresses your question, please mark this as the solution.

1 Like

Just to clarify: gauss2d has no support for WCS or physical units. The main difference between the Covariance and lsst.afw.geom.ellipses.Quadrupole classes - besides the interfaces - is that gauss2d avoids taking the sqrt of negative numbers due to floating point roundoff.

Note that in DP2 the reff_x/y will be in arcsec rather than pixels. If you’re interested, I can point you at how and where that conversion is done using a local WCS, but the correction is very small and converting using a 0.2" pixel scale is fine for DP1.

1 Like

Thank you @dtaranu for your clarification. I’ve modified my initial response to incorporate your feedback and to ensure that future users are not misled by any inaccuracies.

It is good to know that DP2 provides these measurements in arcsec.

1 Like

Hi @galaxyumi331 and @dtaranu

Many thanks for the replies (yes LA is numpy.linalg)

I had completely missed that in the tutorials!

Is there a reason to not give the Reff along the major axis in the catalogue? or did I miss that too?

cheers

John

Major/minor axis and position angle columns will be available in DP2. The reason the parameters are given as correlation/covariance matrix terms is because that’s what multiprofit (and meas_modelfit for CModel) fit and - for multiprofit - provide uncertainties for.

1 Like