Hi,
I was trying to get the input semi-major axis, a
, and semi-minor axis, b
, parameters given the measured base_Sdssshape_xx,yy,xy
(and their ext_HSMShape
equivalents) for simulated sources, and I was wondering if these moments are already PSF corrected, i.e., they correspond to the intrinsic un-convolved source or, on the contrary, they have the PSF included.
The way I am trying to compute them is the following:
selection = cat_table['deblend_nChild']==0
Mxx = cat_table['base_SdssShape_xx'][selection]
Myy = cat_table['base_SdssShape_yy'][selection]
Mxy = cat_table['base_SdssShape_xy'][selection]
Muu_p_Mvv = Mxx + Myy
Muu_m_Mvv = numpy.sqrt((Mxx - Myy)**2 + 4*Mxy**2)
Muu = 0.5*(Muu_p_Mvv + Muu_m_Mvv)
Mvv = 0.5*(Muu_p_Mvv - Muu_m_Mvv)
theta = 0.5*np.arctan2(2*Mxy, Mxx - Myy)*180/np.pi
a = np.sqrt(Muu)
b = np.sqrt(Mvv)
Where cat_table
is the input catalog table.