{ "cells": [ { "cell_type": "markdown", "id": "b900438d-7a82-46bc-82e5-f187e8e20d54", "metadata": { "tags": [] }, "source": [ "# HETDEX Source Catalog 1: Catalog description and access" ] }, { "cell_type": "code", "execution_count": 1, "id": "d6f7de4a", "metadata": {}, "outputs": [], "source": [ "# Required python moduldes for opening FITS files and plotting\n", "import numpy as np\n", "import os.path as op\n", "import glob\n", "\n", "import matplotlib.pyplot as plt\n", "from matplotlib import gridspec\n", "\n", "from astropy.io import fits\n", "from astropy.table import Table, hstack\n", "import astropy.units as u\n", "from astropy.coordinates import SkyCoord\n", "from astropy.wcs import WCS\n", "\n", "from astropy.visualization import make_lupton_rgb, ZScaleInterval" ] }, { "cell_type": "code", "execution_count": 2, "id": "51ed1c40", "metadata": {}, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 3, "id": "5b10541a-9b9a-4a35-abe9-2b2ec47cb559", "metadata": {}, "outputs": [], "source": [ "# fill in the path to the HETDEX Source Catalog 1 files\n", "\n", "path_to_sc1 = \"/home/jovyan/Hobby-Eberly-Public/HETDEX/catalogs/hetdex_source_catalog_1\"\n", "\n", "version = 'v3.2' # Change to latest version." ] }, { "cell_type": "markdown", "id": "6ee0ab2c-0ea6-492d-abcf-3b3963f37fff", "metadata": { "jp-MarkdownHeadingCollapsed": true, "tags": [] }, "source": [ "## Catalog Organization\n", "\n", "Two catalogs make up HETDEX Source Catalog 1:\n", " \n", " 1. The Source Observation Table: hetdex_sc1_vX.dat/.fits/.ecsv\n", " With SPECTRA arrays included: hetdex_sc1_spec_vX.fits\n", " \n", " One row per source observation. The table provides basic coordinates/redshift/source information for each observation of a unique astornomical source. The larger file hetdex_sc1_spec_vX.fits contains the same info from the first table plus addition data units of spectral array data.\n", " \n", " 2. The Detection Information Table: hetdex_sc1_detinfo_vX.fits\n", " One row per line or continuum detection. Bright sources can be comprised of multiple line or continuum emission. This catalog provides specific detection information such as line parameter info (S/N, line flux, line width), observational data and instrument details." ] }, { "cell_type": "markdown", "id": "546db53f-8f43-43ef-96b2-e2021994b47f", "metadata": {}, "source": [ "## How to Open the Source Observation Table without Spectra" ] }, { "cell_type": "markdown", "id": "b608f9ab-0aec-4e61-8ae5-1f893843de79", "metadata": {}, "source": [ "Multiple formats are provided for the source table. As suggested by Astropy v5.1 developers, we provide the recommended .ecsv format which contains data masking, description and quantity info. We also provide a simple .dat ascii file." ] }, { "cell_type": "code", "execution_count": 4, "id": "79b94845-32d3-4762-80c2-7017460ffe3b", "metadata": {}, "outputs": [], "source": [ "source_table = Table.read(op.join( path_to_sc1, 'hetdex_sc1_{}.ecsv'.format(version) ) ) " ] }, { "cell_type": "code", "execution_count": 5, "id": "7cba7760-6499-433c-9db1-1955317eb4b6", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "