Spring2020/PythonPhotometry/Sarah_DiffPhotometry.py
def makeApertures(xpos, ypos, aprad,skybuff, skywidth):
    '''
    makeApertures
    
    makes a master list of apertures and the annuli
    
    inputs
    ---------
    xpos: list - x positions of stars in image
    ypos: list - y positions of stars in image 
    aprad: float - aperture radius
    skybuff: float - sky annulus inner radius
    skywidth: float - sky annulus outer radius
    
    outputs
    --------
    apertures: list - list of aperture positions and radius
    annulus_apertures: list - list of annuli positions and radius
    see: https://photutils.readthedocs.io/en/stable/api/photutils.CircularAperture.html#photutils.CircularAperture 
    for more details
    
    '''
    
    # make the master list of apertures
    apertures = CircularAperture((xpos, ypos), r=aprad)
    annulus_apertures = CircularAnnulus((xpos, ypos), r_in=aprad+skybuff, r_out=aprad+skybuff+skywidth)
    apers = [apertures, annulus_apertures]

    return apertures, annulus_apertures

    makeApertures
    
    makes a master list of apertures and the annuli
    
    inputs
    ---------
    xpos: list - x positions of stars in image
    ypos: list - y positions of stars in image 
    aprad: float - aperture radius
    skybuff: float - sky annulus inner radius
    skywidth: float - sky annulus outer radius
    
    outputs
    --------
    apertures: list - list of aperture positions and radius
    annulus_apertures: list - list of annuli positions and radius
    see: https://photutils.readthedocs.io/en/stable/api/photutils.CircularAperture.html#photutils.CircularAperture 
    for more details
    
    
makeApertures
makes a master list of apertures and the annuli

inputs

x positions of stars in image
ypos: list - y positions of stars in image
aprad: float - aperture radius
skybuff: float - sky annulus inner radius
skywidth: float - sky annulus outer radius

outputs


makeApertures makes a master list of apertures and the annuli inputs x positions of stars in image ypos : list - y positions of stars in image aprad : float - aperture radius skybuff : float - sky annulus inner radius skywidth : float - sky annulus outer radius outputs
def makeApertures(xpos, ypos, aprad,skybuff, skywidth):
    apertures = CircularAperture((xpos, ypos), r=aprad)
    annulus_apertures = CircularAnnulus((xpos, ypos), r_in=aprad+skybuff, r_out=aprad+skybuff+skywidth)
    apers = [apertures, annulus_apertures]
    return apertures, annulus_apertures
def makeApertures ( xpos , ypos , aprad , skybuff , skywidth ) : apertures = CircularAperture ( ( xpos , ypos ) , r = aprad ) annulus_apertures = CircularAnnulus ( ( xpos , ypos ) , r_in = aprad + skybuff , r_out = aprad + skybuff + skywidth ) apers = [ apertures , annulus_apertures ] return apertures , annulus_apertures
makeApertures
makes a master list of apertures and the annuli
makeApertures makes a master list of apertures and the annuli
'''
    makeApertures
    
    makes a master list of apertures and the annuli
    
    inputs
    ---------
    xpos: list - x positions of stars in image
    ypos: list - y positions of stars in image 
    aprad: float - aperture radius
    skybuff: float - sky annulus inner radius
    skywidth: float - sky annulus outer radius
    
    outputs
    --------
    apertures: list - list of aperture positions and radius
    annulus_apertures: list - list of annuli positions and radius
    see: https://photutils.readthedocs.io/en/stable/api/photutils.CircularAperture.html#photutils.CircularAperture 
    for more details
    
    ''' # make the master list of apertures
xpos
ypos
aprad
skybuff
skywidth