Keck Observatory Archive (KOA) Python Client - Tutorial: Access to KPF Observations

May 2023 - pykoa v1.4.5

PyKOA offers access to public raw science and calibration files acquired at the W. M. Keck Observatory Archive, and for Keck Observatory PIs, secure access to their protected data with the KOA credentials assigned to them. PyKOA also supports queries to the nexsciTAP Table Access Protocol (TAP) server The PyKOA client thus enables a rich variety of searches, including cone, box, polygon, or all-sky spatial searches; temporal searches; searches on program information; and complex searches on multiple attributes.

This Jupyter Notebook provides examples of how to discover and access data acquired with the Keck Planet Finder (KPF) instrument with the methods supported by PyKOA, and examples of how Keck PIs may access their protected data. KPF calibration data are made public on acquisition.


PyKOA can be installed from PyPI:

$ pip install --upgrade pykoa


Requires Python 3.6 (or above), plus table read and write functions from Astropy. We have tested with Astropy 4.0.1. We recommend using the Anaconda Python distribution.