Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Oct 12, 2018
2 parents 770143f + 583804a commit 8298866
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pp_calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ def create_photometrycatalog(ra_deg, dec_deg, rad_deg, filtername,
(cat['_rmag']-cat['_imag']) < sol_ri-_pp_conf.solcol)
n_rejected += cat.reject_sources_with(
(cat['_rmag']-cat['_imag']) > sol_ri+_pp_conf.solcol)
elif 'GAIA' in cat.catalogname:
cat.transform_filters('g') # derive Sloan gri
n_rejected += cat.reject_sources_with(
(cat['_gmag']-cat['_rmag']) < sol_gr-_pp_conf.solcol)
n_rejected += cat.reject_sources_with(
(cat['_gmag']-cat['_rmag']) > sol_gr+_pp_conf.solcol)
n_rejected += cat.reject_sources_with(
(cat['_rmag']-cat['_imag']) < sol_ri-_pp_conf.solcol)
n_rejected += cat.reject_sources_with(
(cat['_rmag']-cat['_imag']) > sol_ri+_pp_conf.solcol)
else:
if display:
print('Warning: solar colors not supported for catalog',
Expand All @@ -137,7 +147,10 @@ def create_photometrycatalog(ra_deg, dec_deg, rad_deg, filtername,
('PANSTARRS' in catalogname and
filtername not in {'gp1', 'rp1', 'ip1', 'zp1', 'yp1'}) or
('SkyMapper' in catalogname and
filtername not in {'g', 'r', 'i'})):
filtername not in {'g', 'r', 'i'}) or

('GAIA' in catalogname and
filtername not in {'G', 'RP', 'BP'})):

n_transformed = cat.transform_filters(filtername)
if n_transformed == 0:
Expand Down

0 comments on commit 8298866

Please sign in to comment.