Skip to content

Instantly share code, notes, and snippets.

View jorgemarpa's full-sized avatar

Jorge Martínez-Palomera jorgemarpa

View GitHub Profile
@jorgemarpa
jorgemarpa / inspect_tess_ffi_cutouts.ipynb
Last active May 22, 2024 19:08
TESS FFI cutout inspection with pixel coordinates
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorgemarpa
jorgemarpa / K2_epic_246711015.ipynb
Created December 8, 2022 22:23
PSFMachine demo with K2 data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorgemarpa
jorgemarpa / split_lightcurves_psfmachine.ipynb
Last active March 10, 2022 00:29
This notebook shows how to use `PSFMachine` to extract light curves between Kepler downlinks and then stitch them to recover the full quarter. This uses a slightly modify version of `PSFMachine`, see branch `jorgemarpa:split-mac`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorgemarpa
jorgemarpa / k2_m35.ipynb
Created December 8, 2021 20:13
k2_m35.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorgemarpa
jorgemarpa / tmp_fits_to_tar.py
Created September 17, 2021 01:10
Save FITS to temporal file to then save them to disk as a tarball archive
import os
from astropy.io import fits
import tarfile
import tempfile
import lightkurve as lk
# load a FITS file, this case a LCF
lc = fits.open("../data/lcs/tpf/ch31/q05/hlsp_kbonus-bkgd_KIC-2308467-q05_v1.0_lc_500.fits.gz")
print(lc, "\n", type(lc))
@jorgemarpa
jorgemarpa / test_MinMaxScaler.ipynb
Last active July 27, 2021 22:06
test_MinMaxScaler.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.