Kepler Long-Cadence Light Curves: Partial Lossless Mirror
A partial mirror of NASA Kepler long-cadence (29.4-minute) light-curve files (kplr<KIC>-<timestamp>_llc.fits), exactly as distributed by
the Mikulski Archive for Space Telescopes (MAST), stored in a compact, lossless packed format.
| Files | 274,011 |
| Stars (KIC) | 17,158 |
| Quarters represented | 18 |
| Shards | 27 (shards/v1/) |
| Size on the Hub | 39.71 GB (originals: 117.82 GB) |
This is not a complete copy of the Kepler archive. It contains the files we downloaded from MAST in the course of our own work. Many stars and quarters are not here. For complete coverage, use MAST directly.
Every file in this dataset can be restored byte for byte to NASA's original. Each packed file carries the SHA-256 checksum of the original FITS file, and the unpacker refuses to return any data that does not match it.
Contents
- NASA Kepler Science Processing Pipeline light curves (long cadence), one file per star per quarter.
- All original content is preserved: every binary-table column (including
SAP_FLUX,PDCSAP_FLUX, their uncertainties, background, centroids and quality flags), every header keyword, and the aperture-mask image extension. - Nothing is resampled, detrended, filtered or otherwise modified.
File format
Files are stored as .fitsz: the FITS binary table is byte-transposed (byte j of every row stored contiguously), then the whole file is
compressed with xz (LZMA2). Light curves pack to roughly a third of their original size, and decoding needs only Python and NumPy.
tools/fitsz.py is the packer and unpacker:
import fitsz
packed = fitsz.pack_bytes(open("kplr...llc.fits", "rb").read(), name="kplr...llc.fits") # pack
raw = fitsz.unpack_bytes(packed) # unpack: exact original bytes, SHA-256 checked
fitsz.read_raw("file.fitsz") # unpack a .fitsz file on disk
Repository layout
| Path | Contents |
|---|---|
shards/v1/part-NNNNN.tar |
Uncompressed tar bundles of about 1.5 GB each. Stars appear in ascending KIC order within a shard, and a star's files are never split across shards. Members are named <KIC>/<original file name>z. |
index/files.parquet |
One row per original file: kic, file (original MAST file name), sha256_original, bytes_original, bytes_packed, shard, member, offset and size (byte position and length of the member inside its shard), source, cadence, plus header values: quarter, season, module, output, channel, kepmag, teff, logg, radius, ra_obj, dec_obj, data_rel, procver, crowdsap, flfrcsap. |
index/stars.parquet |
One row per star: number of files, quarters available, position, Kepler magnitude, effective temperature, radius, and the shard(s) holding its files. |
tools/fitsz.py |
Packer and unpacker (NumPy only). |
tools/fetch_star_kepler.py |
Restores the original FITS files for one or more stars (streaming by HTTP range reads, whole-shard fallback). |
Shards are append-only: new stars or quarters are added in new shards, and the index always records where each file is.
Usage
Restore the original FITS files for a star (no login needed):
pip install huggingface_hub pandas pyarrow numpy
python tools/fetch_star_kepler.py 1025986 --out lightcurves
Each file is fetched with a single HTTP range request using the offset and size columns of the index, so no shard is downloaded.
If range requests fail, or with --whole-shards, the script downloads the shard(s) holding the star instead. The restored files have
their original MAST names and can be read with astropy, lightkurve or any FITS reader, exactly as if downloaded from MAST.
Stream one file yourself:
from huggingface_hub import HfFileSystem, hf_hub_download
import pandas as pd, fitsz
repo = "AxiomicLabs/kepler-llc-lossless"
idx = pd.read_parquet(hf_hub_download(repo, "index/files.parquet", repo_type="dataset"))
r = idx[idx.kic == 1025986].iloc[0]
blob = HfFileSystem().cat_file(f"datasets/{repo}/{r.shard}", start=int(r.offset), end=int(r.offset) + int(r.size))
raw = fitsz.unpack_bytes(blob) # original FITS bytes; raises if the SHA-256 does not match
Unpack a member from a downloaded shard:
import tarfile, fitsz
with tarfile.open("part-00001.tar") as tf:
raw = fitsz.unpack_bytes(tf.extractfile("<KIC>/<file name>z").read())
Integrity
- Every shard is verified before upload: each member is unpacked and its SHA-256 is compared with that of the original file.
- After upload, the shard's SHA-256 on the Hub is compared with the local copy.
index/files.parquetlists the SHA-256 of every original file, so any restored file can be checked independently (hashlib.sha256(raw).hexdigest() == sha256_original).
Source, credit and licence
The light curves are data products of the NASA Kepler mission (Borucki et al. 2010, Science 327, 977), produced by the Kepler Science Processing Pipeline (Jenkins et al. 2010, ApJL 713, L87) and distributed by MAST at the Space Telescope Science Institute. MAST's DOI for the Kepler long-cadence data collection is 10.17909/T9488N; MAST also lists a DOI for each quarter (https://archive.stsci.edu/publishing/doi). Kepler data are public NASA data. If you use them, please cite the DOI and acknowledge the Kepler mission and MAST as MAST asks: "This paper includes data collected by the Kepler mission and obtained from the MAST data archive at the Space Telescope Science Institute (STScI). Funding to US Institutions for the Kepler mission was provided by the NASA Science Mission Directorate. STScI is operated by the Association of Universities for Research in Astronomy, Inc., under NASA contract NAS5–26555."
This repository is an independent mirror and is not affiliated with or endorsed by NASA or STScI. The authoritative source of the data is MAST. The packing format, index and tools are provided by Axiomic Labs under the Apache 2.0 licence.
Citation
@misc{axiomic_kepler_llc_lossless2026,
title = {Kepler long-cadence light curves, partial lossless packed mirror},
author = {Mmorgan-ML and {Axiomic Labs}},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/AxiomicLabs/kepler-llc-lossless}}
}
Please cite the Kepler DOI above and acknowledge the Kepler mission and MAST for the underlying data.
Maintainers
- Maintainer: Axiomic Labs.
- Project lead: Mmorgan-ML (Michael Morgan).
- Code was developed with AI assistance.
Versions
- v1 (Dec 2026): first public release; byte offsets added to the index for streaming.
- Downloads last month
- 5