/acs-notebook

Python Jupyter Notebooks that support users of the ACS instrument on board the Hubble Space Telescope

Primary LanguageJupyter Notebook

Developed For: ACS Powered By: STScI

ACS logo

acs-notebook

This repository contains Jupyter notebooks to demonstrate how to calibrate and analyze data from the Hubble Space Telescope (HST) Advanced Camera for Surveys (ACS). Users are advised to visit the ACS website, Instrument Handbook, and Data Handbook for more information about the the current status of ACS, instrument specifications, and data analysis.

Users who need help transitioning from IRAF/PyRAF to Python should see the stak-notebooks repository.

If you have questions about HST data analysis, calibration software, instrument capabilities, and/or the methods discussed in this repository, please visit the HST Help Desk. Through the help desk portal, you can explore the HST Knowledge Base and request additional help from experts.

Getting Started

To download the notebooks in this repository, simply open a terminal, go to the directory where you would like the notebooks to be, and type

git clone https://github.com/spacetelescope/acs-notebook.git

which will create a new acs-notebook/ directory containing the contents of this repository.

Warning: Before running these examples, you must install or update to the latest version of AstroConda. Additionally, astroquery is not currently included in the AstroConda distribution and will need to be installed seperately using either conda or pip.

Jupyter Notebooks allow code to be packaged with formatted text to create illustrative examples. Users who are unfamiliar with Jupyter Notebooks should also see the short guide for how to use these tools.

Contents

Complex Workflow Notebooks

  • acs_reduction.ipynb: This notebook walks a user through an example of how to: 1) download data from MAST using astroquery, 2) update calibration information in the FITS primary headers, 3) calibration ACS observations using calacs, 4) align images to a common WCS, and 5) combine images using AstroDrizzle.

  • acs_sbc_dark_analysis.ipynb: The ACS Solar Blind Channel (SBC) has nominally negligible dark current. However, the temperature of the SBC detector increases steadily over time while it is in use, and the dark current is proportional to temperature. At temperatures above 25 ºC, the dark current is no longer negligible and must be subracted. This workflow demonstrates how to account for dark current in ACS/SBC observations.

Simple Example Notebooks

  • acs_subarrays.ipynb: Instructions for how to use the acs_destripe_plus code to calibrate, de-stripe, and correct ACS subarray observations for charge transfer efficiency (CTE). Also included are instructions for updating the OSCNTAB reference file to subtract the bias level from the prescan columns in user-defined subarray observations.

  • acs_zeropoints.ipynb: A description of the ACS photometric systems, header keywords, and topics related to photometrically calibrating ACS data.

  • pixel_area_maps.ipynb: How to use Python to create pixel area maps (PAMs) to account for the effects of geometric distortion in distorted images. This enables users to perform photometry on distorted images if desired.

Contributing

If you have feedback concerning our documentation or examples presented here on GitHub, please open an issue. For feedback concerning content exclusively from the ACS website, Instrument Handbook, or Data Handbook, or for questions about ACS in general, please contact the ACS Branch at STScI via the Hubble Space Telescope Help Desk portal.