{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "c9b841eb-d476-49b8-82dd-6e730b6b98d5",
   "metadata": {},
   "outputs": [],
   "source": [
    "import matplotlib.pyplot as plt \n",
    "from astropy.io import fits \n",
    "from astropy.wcs import WCS \n",
    "from astropy import units as u \n",
    "from astropy.visualization.wcsaxes.frame import EllipticalFrame\n",
    "from reproject import reproject_interp\n",
    "from spectral_cube import SpectralCube"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "734b74e5-37e0-470e-bc91-bd5711aa4023",
   "metadata": {},
   "outputs": [],
   "source": [
    "fn = '/srv/data/dragons/dragons-canfar-Nov2025/frequency_cubes/dragons_freqK_gal_conv_i.car.fits'\n",
    "freqIdat = fits.getdata(fn)\n",
    "freqIhdr = fits.getheader(fn)\n",
    "\n",
    "indat = fn"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "93cac491-b06e-4af6-8c1f-c703ade0cb8f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "SIMPLE  =                    T / conforms to FITS standard                      \n",
       "BITPIX  =                  -64 / array data type                                \n",
       "NAXIS   =                    3 / number of array dimensions                     \n",
       "NAXIS1  =                  720                                                  \n",
       "NAXIS2  =                  360                                                  \n",
       "NAXIS3  =                  680                                                  \n",
       "EXTEND  =                    T                                                  \n",
       "DATE    = '2025-11-14'                                                          \n",
       "INSTRUME= 'DRAO-15 '                                                            \n",
       "EPOCH   = '2000    '                                                            \n",
       "CDELT1  =                 -0.5                                                  \n",
       "CRPIX1  =                360.5                                                  \n",
       "CRVAL1  =                    0                                                  \n",
       "CTYPE1  = 'GLON-CAR'                                                            \n",
       "CUNIT1  = 'deg     '                                                            \n",
       "CDELT2  =                  0.5                                                  \n",
       "CRPIX2  =                180.5                                                  \n",
       "CRVAL2  =                    0                                                  \n",
       "CTYPE2  = 'GLAT-CAR'                                                            \n",
       "CUNIT2  = 'deg     '                                                            \n",
       "CDELT3  =                  1.0                                                  \n",
       "CRPIX3  =                    1                                                  \n",
       "CRVAL3  =           350.520833                                                  \n",
       "CTYPE3  = 'FREQ    '                                                            \n",
       "CUNIT3  = 'MHz     '                                                            \n",
       "BUNIT   = 'K       '                                                            \n",
       "BMEXTENS=                    T                                                  \n",
       "CASAMBM =                    T                                                  "
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "freqIhdr"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d5de214c-5c2e-41f3-9ae7-be9336428971",
   "metadata": {},
   "source": [
    "#need a target header, "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
