def gettimeflux_1800(tic_id, sector): url = mastURL.gen_url(tic_id, sector) fits.getdata(url, ext=1) with fits.open(url, mode="readonly") as hdulist: time = hdulist[1].data['TIME'] flux = hdulist[1].data['FLUX_RAW'] return time, flux
def get_header_data(tic_id, sector): url = mastURL.gen_url(tic_id, sector) with fits.open(url, mode="readonly") as hdulist: CCD = hdulist[0].header['CCD'] Camera = hdulist[0].header['Camera'] return CCD, Camera