Skip to content

Commit

Permalink
Merge pull request #216 from TheSkyentist/niriss-fix
Browse files Browse the repository at this point in the history
NIRISS Fixes for PhotoZs
  • Loading branch information
gbrammer committed Mar 7, 2024
2 parents 1f3347f + beb6f96 commit da10e45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion grizli/pipeline/auto_script.py
Expand Up @@ -2887,6 +2887,7 @@ def multiband_catalog(field_root='j142724+334246', threshold=1.8, detection_back

for c in filter_tab.colnames:
newc = '{0}_{1}'.format(filt.upper(), c)
newc = newc.replace('-CLEAR','')
tab[newc] = filter_tab[c]

# Kron total correction from EE
Expand All @@ -2899,7 +2900,7 @@ def multiband_catalog(field_root='j142724+334246', threshold=1.8, detection_back
photplam=filt_plam)

#ee_corr = prep.get_kron_tot_corr(tab, filter=filt.lower())
tab['{0}_tot_corr'.format(filt.upper())] = tot_corr
tab['{0}_tot_corr'.format(filt.upper().replace('-CLEAR',''))] = tot_corr

if clean_bkg:
bkg_files = glob.glob(f'{root}*{filt}*bkg.fits')
Expand Down
2 changes: 1 addition & 1 deletion grizli/pipeline/photoz.py
Expand Up @@ -255,7 +255,7 @@ def apply_catalog_corrections(root, total_flux='flux_auto', auto_corr=True, get_

return cat

FILTER_TRANS = {'f098m': 201, 'f105w': 202, 'f110w': 241, 'f125w': 203, 'f140w': 204, 'f160w': 205, 'f435w': 233, 'f475w': 234, 'f555w': 235, 'f606w': 236, 'f625w': 237, 'f775w': 238, 'f814w': 239, 'f850lp': 240, 'f702w': 15, 'f600lpu': 243, 'f225wu': 207, 'f275wu': 208, 'f336wu': 209, 'f350lpu': 339, 'f438wu': 211, 'f475wu': 212, 'f475xu': 242, 'f555wu': 213, 'f606wu': 214, 'f625wu': 215, 'f775wu': 216, 'f814wu': 217, 'f390wu': 210, 'ch1': 18, 'ch2': 19, 'f336w':209, 'f350lp':339, 'f115w': 309, 'f150w': 310, 'f200w': 311}
FILTER_TRANS = {'f098m': 201, 'f105w': 202, 'f110w': 241, 'f125w': 203, 'f140w': 204, 'f160w': 205, 'f435w': 233, 'f475w': 234, 'f555w': 235, 'f606w': 236, 'f625w': 237, 'f775w': 238, 'f814w': 239, 'f850lp': 240, 'f702w': 15, 'f600lpu': 243, 'f225wu': 207, 'f275wu': 208, 'f336wu': 209, 'f350lpu': 339, 'f438wu': 211, 'f475wu': 212, 'f475xu': 242, 'f555wu': 213, 'f606wu': 214, 'f625wu': 215, 'f775wu': 216, 'f814wu': 217, 'f390wu': 210, 'ch1': 18, 'ch2': 19, 'f336w':209, 'f350lp':339, 'f115wn': 309, 'f150wn': 310, 'f200wn': 311, }

def eazy_photoz(root, force=False, object_only=True, apply_background=True, aper_ix=1, apply_prior=False, beta_prior=True, get_external_photometry=False, external_limits=3, external_sys_err=0.3, external_timeout=300, sys_err=0.05, z_step=0.01, z_min=0.01, z_max=12, total_flux='flux_auto', auto_corr=True, compute_residuals=False, dummy_prior=False, extra_rf_filters=[], quiet=True, aperture_indices='all', zpfile='zphot.zeropoint', extra_params={}, filter_trans=FILTER_TRANS, extra_translate={}, force_apcorr=False, ebv=None, absmag_filters=[], save_pickle=False, **kwargs):

Expand Down

0 comments on commit da10e45

Please sign in to comment.