fitsio
fitsio copied to clipboard
A python package for FITS input/output wrapping cfitsio
Hi, I'm trying to make it so my code writes bit-identical outputs every time it runs, but I'm using the compression schemes that do the subtractive dither thing, so there...
We (@ekitanidis) were trying to read a 2.1GB .fits.gz file (legacy survey DR8 annotated CCD file, prerelease). The read operation failed with cfitsio internal error. Seems to be when it...
An fpacked image with keywords is failing to allow me to overwrite it. The example image is at BNL here: ``` /gpfs/mnt/gpfs02/astro/workarea/beckermr/des-y6-analysis/2022_02_04_imsims_tests_desy6/sim_outputs/des-pizza-slices-y6-v12/DES2359-6539/sources-r/OPS/finalcut/Y5A1/r3515/20170821/D00670401/p01/red/bkg/D00670401_r_c56_r3515p01_bkg.fits.fz ``` I see the same mean in the...
I've been bitten by this fitsio feature multiple times: When calling `fitsio.write(file_name, data)`, if the file exists already, fitsio will append a new extension rather than overwrite the file. I...
Calling `len()` on an empty (i.e. newly created) FITS adds a HDU: ```py >>> fits = fitsio.FITS('new.fits', 'rw') >>> len(fits) 1 >>> 0 in fits True >>> fits[-1] file: test.fits...
Hello. I saw an earlier issue regarding pip install, but my issue appears to be different. I am using python 3.9. I hope someone is able to provide assistance; let...
Hi, I need to extract information from a few columns in ~20k different fits files. Each file is relatively small, ~0.2MB. I have been doing this so far with a...
We gotta keep up. I wonder what they changed...
I cannot tell if this is a cfitsio error or something else, but here it is: ``` import fitsio import numpy as np d = np.ones(1, dtype=[("blah", "S35000")]) fitsio.write("test.fits", d,...
Hi Erin, With fitsio 1.1.4 (and python 3.8.10), I'm trying to read an image header from the Canada-France-Hawaii Telescope's MegaPrime camera, and I'm getting weird behavior. There are a couple...