Skip to content

pfs-cosmo/pfstarget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pfstarget

This package contains scripts for the PFS Cosmology Survey target selection.

Installation

git clone https://github.com/pfs-cosmo/pfstarget.git
cd pfstarget
pip install -e . 

getting started

  1. 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
  1. 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  

Contribution

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

About

target selection for the PFS Cosmology Survey

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •