star_bg

class pipe.star_bg(starcatfile, maxrad=None, shape=(200, 200))[source]

Bases: object

Reads catalogue data on background stars and produces images of stars, to be removed from observations. Adjusts PSFs with rotational blurring and computes smearing trails.

Methods Summary

brightest(radius)

Returns flux of brightest background star in radius, in units of target brightness

image(x0, y0, rolldeg, psf_fun[, shape, ...])

Produces image with background stars at defined roll angle.

read_starcat(starcatfile[, maxrad])

Reads star catalogue file as generated by the DRP.

rotate_cat(rolldeg)

Rotates the relative x and y positions of background stars according to submitted roll angle in degrees.

rotate_entry(entry, rolldeg)

Rotates the relative x and y positions for a single background star according to submitted roll angle in degrees.

rotblur(x0, y0, rolldeg, blurdeg, psf_fun[, ...])

Returns an image (as defined by previous method) blurred by rotation.

smear(x0, y0, rolldeg, blurdeg, psf_fun[, ...])

Computes the smearing trail for all stars, including target.

Methods Documentation

brightest(radius)[source]

Returns flux of brightest background star in radius, in units of target brightness

image(x0, y0, rolldeg, psf_fun, shape=None, skip=[0], limflux=0, single_id=None, max_psf_rad=70)[source]

Produces image with background stars at defined roll angle. skip is a list of entries to be skipped. limflux is at what fractional flux of the target background stars should be ignored. The single_id is to select and draw an image of the selected star only.

read_starcat(starcatfile, maxrad=None)[source]

Reads star catalogue file as generated by the DRP.

rotate_cat(rolldeg)[source]

Rotates the relative x and y positions of background stars according to submitted roll angle in degrees.

rotate_entry(entry, rolldeg)[source]

Rotates the relative x and y positions for a single background star according to submitted roll angle in degrees.

rotblur(x0, y0, rolldeg, blurdeg, psf_fun, oversample=1, shape=None, skip=[0], limflux=0.001, single_id=None, max_psf_rad=70)[source]

Returns an image (as defined by previous method) blurred by rotation. blurdeg is how many degrees the field rotates during exposure.

smear(x0, y0, rolldeg, blurdeg, psf_fun, shape=None, limflux=0.01, max_psf_rad=70)[source]

Computes the smearing trail for all stars, including target. Returns a 1D array that can then be properly expanded to a 1D image.