The zero point to convert counts to mags for both the K and J band images is 22.5: mag=-2.5*log10(counts)+22.5 The images are already corrected for atmospheric extinction. Also the resulting mags are in the Vega system.