{% extends "main.html" %} {% block tabs %} {{ super() }}
torchfits

High-performance FITS I/O

to PyTorch tensors and dataframes — FITS tables as columnar catalogs.

import torchfits
tensor = torchfits.read_tensor("science.fits", device="cuda")
df     = torchfits.table.read("catalog.fits", where="MAG < 20")
{% endblock %} {% block content %} {{ super() }} {% endblock %}