def pix_to_arc(inmap, x, y):
    """
    Convert pixel location to arcsecond location in map
    """
    arc_x = (x - (inmap.meta['crpix1'] - 1)) * inmap.meta['cdelt1'] + inmap.meta['crval1']
    arc_y = (y - (inmap.meta['crpix2'] - 1)) * inmap.meta['cdelt2'] + inmap.meta['crval2']
    return ((arc_x, arc_y))