<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Viewing and manipulating FITS images\n",
    "\n",
    "## Authors\n",
    "<NAME>, <NAME>\n",
    "\n",
    "## Learning Goals\n",
    "1. Learn how to FITS files and load the image data\n",
    "2. Learn how to view the image data and get basic statistics\n",
    "3. Learn about basic image math: image stacking\n",
    "4. Learn how to write image data to a FITS file\n",
    "\n",
    "## Keywords\n",
    "matplotlib, FITS image, table\n",
    "\n",
    "## Summary\n",
    "\n",
    "This tutorial demonstrates the use of `astropy.utils.data` to download a data file, then uses `astropy.io.fits` to open the file, and lastly uses `matplotlib` to view the image with different color scales and stretches and to make histograms. In this tutorial we've also included a demonstration of simple image stacking."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],<commit_msg>Apply suggestions from code review<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Viewing and manipulating FITS images\n",
    "\n",
    "## Authors\n",
    "<NAME>, <NAME>\n",
    "\n",
    "## Learning Goals\n",
    "1. Learn how to open FITS files and load the image data\n",
    "2. Learn how to visualize the image data\n",
    "3. Learn about basic image math: image stacking\n",
    "4. Learn how to write image data to a FITS file\n",
    "\n",
    "## Keywords\n",
    "matplotlib, FITS image, table\n",
    "\n",
    "## Summary\n",
    "\n",
    "This tutorial demonstrates the use of `astropy.utils.data` to download a data file, then uses `astropy.io.fits` to open the file, and lastly uses `matplotlib` to view the image with different color scales and stretches and to make histograms. In this tutorial we've also included a demonstration of simple image stacking."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
{'fraction_non_alphanumeric': 0.14811229428848016, 'fraction_numerical': 0.003872216844143272, 'mean_word_length': 2.929657794676806, 'pattern_counts': {'":': 16, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '669701', 'n_tokens_mistral': 679, 'n_tokens_neox': 655, 'n_words': 249}