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

FITS tensors for PyTorch

Read images and tables straight into tensors — C++ engine, MEF-native CLI, no NumPy glue.

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