jcbird / ppv

Tools for dealing with SDSS-V plate files and plate runs.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

+TITLE: ppv - Python Plate Vetting

Tools for dealing with SDSS-V plate files and plate runs.

The contents of ~ppv_setup.ini~ | parameter | default value | description | |------------------+--------------------------------------------+----------------------------------------------------------------| | =plate_dir= | =/home/user/path/to/platedir= | absolute path to directory to store plate files | | =fiveplates_dir= | =/home/user/path/to/five_plates/plateruns= | absolute path to plateruns directory inside =five_plates= repo | | =sdss_org= | =username_at_utah= | username for sdss.org server at Utah |

Notes:

** Copy ~ppv_setup.ini~ to ~/.config and edit You MUST edit the ~ppv_setup.ini~ and copy it to the ~.config~ directory in your home directory. Make this directory if necessary. Using a posix shell,

+BEGIN_SRC shell

mkdir ~/.config cd ppv cp ppv_setup.ini ~/.config

+END_SRC

and edit accordingly.

** =five_plates= functionality [[~five_plates~][=https://github.com/sdss/five_plates/tree/master/python=]] produces the input files for the plate design code. ~ppv~ can interact with these "field files" as well.

** Plate directory and PlugHoles files If you have an account at Utah and put the ~ppv_setup.ini~ file in your =$HOME/.config= directory, you are good to go! ~ppv~ will take of everything! *** run =ppv.ppv.update_platefiles()= to ensure the latest versions of all plate files. See the [[file:docs/PPV_tutorial.ipynb][tutorial notebook]] in the =docs= directory for an example of this.

| Since version or commit | Change | | =v0.3= | list of available plateruns are now accessible via =ppv.ppv.available_plateruns()= | | =v0.3= | summary table of all plates now accessible via =ppv.ppv.allplate_summary= | | =v0.35= | =ppv.targets.Targets= constructor now just takes table and, optionally, column names |

Plate Summary Table accessible via ~ppv.ppv.allplate_summary~. Each row corresponds to a single plate and contains, amongst other columns, the plate id, position of the plate center, the program name driving plate design, the corresponding field (name), and the platerun. Plate One to one correspondence with a plate. A =Plate= is identified by its unique plate id (an integer; e.g., 15004). Field A field is defined by a field name (a string; e.g., =AQM_001.85+26.44=) and represents one field of view on the sky. All plates belong to one field. All fields contain one or more plates. Platerun A platerun is defined by its name (a string; e.g., 2020.08.c.bhm-mwm). A platerun is a collection of fields (and thus plates) to be a drilled for a given observing run. ** Targets The Targets class is a container for your targets of interest and interfaces with the Plate, Field, and Platerun objects.