Defects
azcam.testers.defects
Defects
Bases: Tester
Find and quantify image azcam.db.tools["defects"].
analyze()
Find dark defects in a flat/superflat image.
analyze_bright_defects()
Find bright defects in dark signal image.
analyze_dark_defects()
Find dark defects in a flat/superflat image.
copy_data_files(folder='')
Copy data files to proper report folder.
find_section(x_coord, y_coord, num_sections_vertical, num_sections_horizontal, vertical_pixels, horizontal_pixels)
Find the section the group of bad pixels resides in based off a coordinate in the group. Can be used for any number of horizontal and vertical sections.
get_defect_coords(mask_in)
Get the coordinates [col,row] of defects, not including edge mask.
make_bright_defects_report()
Write bright defects report file.
make_dark_defects_report()
Write dark defects report file.
make_defects_mask()
Create a single mask from Edge Mask, Bright mask, and Dark mask. Execute AFTER dark and bright defects are found.
make_edge_mask(ImageBuffer, edge_size=-1)
Creates a mask the size of ImageBuffer which has its edges masked to 0. The mask is a numpy array filled with bools. Inp: edge_size (or self.edge_size) is the integer number of pixels closest to edge to mask. Out: .edge_mask is the numpy array.
plot_defects_mask()
Plot the defective pixel mask.
read_defects_mask(filename='')
Read a defects mask (FITS format).
report()
Write defects report file for Bright and Dark. Run only after all analysis has been completed.