I am wondering if any astronomers out there have already found a way to read files in the FITS format for images and tabular data.
I found a standalone javascript library that looks promising, but it has no recent updates and was never uploaded to npm so is only available as a github download.
I tried importing this with:
import(await FileAttachment("fits.js").url())
but that fails with module is not defined
. I have very little experience with javascript modules and import/require so there may be an easy workaround but I havenât stumbled upon it yet. Alternatively, perhaps there is a way to regenerate this file from its coffeescript source so that it can uploaded to npm?