Giter Club home page Giter Club logo

hst_qso_photometry's Introduction

HST_QSO_Photometry

This repository contains a code for Apparture Photometry of data taken by the Wide Field Camera 3 located on Hubble Space Telescope.

Requirements

  • anaconda with python 3.7
  • astropy, numpy, matplotlib packages
  • A basic understanding of FITS (Flexible Image Transport System) files and their structure
  • A basic undestanding of the Aperture Photomentry method

You can find a good explanation for both FITS files structure and Aperture Photometry, in "A Beginner's Guide to Working with Astronomical Data" by Markus Possel, chapter 10.1 "FITS files and python". (https://arxiv.org/abs/1905.13189)

Observational data

This code was used to analyze data obtained with HST WFC3 NIR F140W (Hubble Space Telescope, Wide Field Camera 3, Near InfraRed Channel, ~14000 Angstrom wavelength).

The principal investigator of the proposel is Trakhtenbrot Benny (Tel Aviv University, Israel). In this project, the photometric measurments were done on a sample of 6 Quasi-stellar objects (QSO), in high Redshifts. The research proposel: https://archive.stsci.edu/proposal_search.php?id=15118&mission=hst

Functions Overview

This repository contains a few scripts:

  1. Angular alignment. As a preperatory stage before stacking the images.

    • align_two_fits(path1, path2, plot=False): this func aligns the image in the fits file in path2 to match the fits file in path1, in terms of angular alignment. the fits files assumed struceture: 2 hdu's, the first containing nothing (in the data part), and the second containing the image data. Both have important headers that we want to keep.
  2. Stacking two images stored in two FITS files.

    • stack(path1, path2, draw=False, draw_QSO=None): this func stacks 2 fits files, the draw option will plot the new image, the draw_QSO option takes a tuple of RA and DEC in deg and plots the QSO's close area only. each original image has two hdus, one containing a header and the image data, and the other containing only a header with information. the new stacked file will contain all of these headers. notice- the draw_QSO feature uses WCS (World Coordinate System) taken from the header in order to match the given coordinates and their matching pixels.
  3. Aperture Photometry.

    • photometry3(hdulist, centerX, centerY, small, medium, large): this func calculates counts->flux->mag[AB] and the matching error. it assumes that the "small" aperture is 3 pixels (radius) and therefore the enclosed flux percentage is: 0.838. notice- the enclosed flux precentage can be taken from the "WFPC3 Instrument Handbook" (http://www.stsci.edu/hst/instrumentation/wfc3), chapter 7, Table 7.6: WFC3/IR PSF Encircled Energy Fraction vs. Aperture Radius (arcsec).
    • photometry5(hdulist, centerX, centerY, small, medium, large): same as the previous function, but this func assumes that the "small" aperture is 5 pixels and therefore the enclosed flux percentage is: 0.88125'''
    • plot_circles(hdulist, centerX, centerY, small, medium, large): this func plots the image in z-scale with three aperture circles. this feature helps you to see what objects you are including in your measurment of the background.
    • plot_circles_not_z_scale(hdulist, centerX, centerY, small, medium, large): this func plots only the 0.05 highest valued pixels with three aperture circles this is good for identifying the center of the PSF of the QSO.

For any questions regarding this repository, feel free to contact me via mail: [email protected]

hst_qso_photometry's People

Contributors

neta-ilan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.