koa_middleware.download

Functions

download_koa(koa_filename, output_dir[, cookies])

Download a file from the Keck Observatory Archive (KOA).

koa_middleware.download.download_koa(koa_filename: str, output_dir: str, cookies: str | None = None) str[source]

Download a file from the Keck Observatory Archive (KOA).

Parameters:
  • koa_filename (str) – The KOA filename to download.

  • output_dir (str) – The directory to save the downloaded file.

  • cookies (str, optional) – Optional cookies to include in the HTTP request.

Returns:

The local file path of the downloaded file.

Return type:

str