This package contains scripts for the PFS Cosmology Survey target selection.
git clone https://github.com/pfs-cosmo/pfstarget.git
cd pfstarget
pip install -e . - Download tracts from HSC using the script in
bin/hsc/sql. You will need a STARS account for this. This is the imaging catalog that will be used for target selection.
python3 hscReleaseQuery.py s23b_wide_pfs.sql -D --user username -r s23- Apply target selection. You can do this in python by manually in python loading the tracts.
from astropy.table import Table
from pfstarget import cuts as Cuts
tract = Table.read('your_tract_file_name.fits')
is_pfs_cosmo = Cuts.isCosmology(tract)
targets = tract[is_pfs_cosmo]Or, you can use the scripts in bin/.
# select targets using DESI galactic extinction model
python bin/select_targets.py DIR_WITH_TRACTS DIR_OUTPUT --dust desi
# select targets using SFD98 galactic extinction model
python bin/select_targets.py DIR_WITH_TRACTS DIR_OUTPUT --dust sfd98
If you'd like to contribute, please do so through forking, as described in https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project