dolphot_lc package

Submodules

dolphot_lc.dlc_params module

dolphot_lc.dlc_params.prep_directory(ORIG_IM_LOC, ORIG_TEMP_LOC, IM_LOC, REF_IMAGE_FULL, DOLPHOT_PATH, IMROOT, SN_RA_ME, SN_DEC_ME, SEXPATH, DOLPHOT_PARAMS)

Copies raw images into a working directory and creates an object to be passed to other functions

Parameters:
  • ORIG_IM_LOC (str) – Path to original science images

  • ORIG_TEMP_LOC (str) – Path to original template images

  • IM_LOC (str) – Path of working directory

  • REF_IMAGE_FULL (str) – Path to reference image

  • DOLPHOT_PATH (str) – Path to Dolphot bin directory

  • IMROOT (str) – Base directory where program will run

  • SN_RA_ME (str) – Right ascension of transient object (Ex: 12:23:56.7)

  • SN_DEC_ME (str) – Declination of transient object (Ex: -12:23:56.7)

  • SEXPATH (str) – Path to Source-Extractor executable file

  • DOLPHOT_PARAMS (dict) – Dictionary of Dolphot parameters and their values

Returns:

param_obj – Parameter object to be passed to other functions

Return type:

obj

dolphot_lc.dolphot_scrips module

dolphot_lc.dolphot_scrips.dolphot_force(objCoords, dlc_param, apermag=False, force_same_mag=True, psfphot=1)

Runs Dolphot on difference images

Parameters:
  • objCoords (dict) – Dictionary of transient object coordinates (Ex: {‘S1’: [177.398231, 22.395630], …})

  • dlc_param (obj) – Parameter object from prep_directory function

  • apermag (bool) – Run aperture photometry

  • force_same_mag (bool) – Run photometry assuming same count rate

  • psfphot (float) – Type of photometry to run 0 = aperture 1 = standard PSF-fit 2 = PSF-fit weighted for central pixels

dolphot_lc.dolphot_scrips.dolphot_simultaneous(dlc_param)

Creates Dolphot parameter file and runs Dolphot on processed images

Parameters:

dlc_param (obj) – Parameter object from prep_directory function

dolphot_lc.dolphot_scrips.prep_files_for_dolphot(image_directory, r_in, r_out, step, sig_low, sig_high, dlc_param)

Processes images in a directory through masking, spliting, and calcsky programs in Dolphot

Parameters:
  • image_directory (str) – Path to directory with images

  • r_in (float) – Inner radius of sky annulus

  • r_out (float) – Outer radius of sky annulus

  • step (float) – How often is the sky value is sampled in pixels

  • sig_low (float) – Low sigma under which samples will be rejected

  • sig_high (float) – High sigma above which samples will be rejected

  • dlc_param (obj) – Parameter object from prep_directory function

dolphot_lc.image_sub module

dolphot_lc.image_sub.blot_back(r_in, r_out, step, sig_low, sig_high, dlc_param)

Blots coadded template image to distorted science images and creates difference image

Parameters:
  • r_in (float) – Inner radius of sky annulus

  • r_out (float) – Outer radius of sky annulus

  • step (float) – How often is the sky value is sampled in pixels

  • sig_low (float) – Low sigma under which samples will be rejected

  • sig_high (float) – High sigma above which samples will be rejected

  • dlc_param (obj) – Parameter object from prep_directory function

dolphot_lc.process_ims module

dolphot_lc.process_ims.align_sci(dlc_param)

Aligns all science images to coadded template image

Parameters:

dlc_param (obj) – Parameter object from prep_directory function

dolphot_lc.process_ims.coadd_ims(dlc_param)

Creates coadded template image from raw template images

Parameters:

dlc_param (obj) – Parameter object from prep_directory function

Module contents