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.
- 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.