match_apertures

mmtwfs.wfs.match_apertures(refx, refy, spotx, spoty, max_dist=25.0)[source] [edit on github]

Given reference aperture and spot X/Y positions, loop through reference apertures and find closest spot. Use max_dist to exclude matches that are too far from reference position. Return masks to use to denote validly matched apertures.