Skip to content

Commit

Permalink
Added option for zmin and zmax
Browse files Browse the repository at this point in the history
  • Loading branch information
HiramHerrera committed Aug 14, 2024
1 parent 8340561 commit 483ee55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion py/desisim/scripts/gen_qso_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def main():

parser.add_argument("--exptime", type=float, default=None, required=False,
help='Exposure time to assign to all targets in the mock catalog')

parser.add_argument("--zmin", type=float, default=1.7, required=False,
help='Minimum redshift')

parser.add_argument("--zmax", type=float, default=10.0, required=False,
help='Maximum redshift')

parser.add_argument("--release", type=str, default='jura', choices=['iron','jura','Y5'], required=False,
help='DESI survey release to reproduce')
Expand All @@ -47,7 +53,7 @@ def main():
# Note: For Y1 and Y3 mocks (and probably Y5 too) the target selection redshift distribution
# from Chaussidon et al. 2022 works better to match QSO targets Iron catalog.
# The option distribution='from_data' should be a better option once I finish implementing it.
survey.apply_redshift_dist(distribution='target_selection', zmin=1.8)
survey.apply_redshift_dist(distribution='target_selection', zmin=args.zmin, zmax=args.zmax)

# Apply NPASS geometry either from a release or a custom tiles file.
survey.apply_data_geometry(release=args.release, tilefile=args.tiles_file)
Expand Down

0 comments on commit 483ee55

Please sign in to comment.