Dustin Lang
Dustin Lang
I guess that must have been a copy-n-paste error!
Huh, that's confusing because it looks like we handle NPY_BOOL here, https://github.com/esheldon/fitsio/blob/0f0f34982341e9746a4f78d6df21af3b73998777/fitsio/fitsio_pywrap.c#L819 (and I just checked the numpy headers and NPY_BOOL is enumeration value 0, matching your error message.) On...
Hi Erin, I still get an error with FITSIO 1.1.3 and Python 3.9.0 ``` import fitsio from numpy.random import rand h=fitsio.FITS("example_bool.fits","rw", clobber=True) a=rand(10) h.write(a) a=rand(10)>0.5 print('Writing boolean image') h.write(a) print('Wrote...
Coming back to this much later... with a fresh build (1.1.7-2-g59fba1e) I am still getting an error trying to read a large .fits.gz (3.4 GB compressed, 9.1 GB uncompressed): ```...
Hi, unfortunately it doesn't look like reading row or column subsets helps; `fitsio.read('/global/cfs/cdirs/cosmo/work/legacysurvey/dr10/ccds-annotated-dr10-v5.fits.gz', columns=['expnum'])` and `fitsio.read('/global/cfs/cdirs/cosmo/work/legacysurvey/dr10/ccds-annotated-dr10-v5.fits.gz', rows=[0])` yield the same error as above.
Maybe :) this isn't at the top of the priority stack at the moment though...
You can do: ``` compression = None # CFITSIO compression specifier, eg '[compress G]' F = fitsio.FITS('mem://' + (compression or ''), 'rw') # do your business with F rawdata =...
I've never used the 'stream' driver, but we use the 'mem' driver all the time (NERSC filesystem corruption grumble grumble)
PS, an alternative API / great feature would be a call that retrieved a quantization error map!
If I recall correctly, sessions last for a week. Still, this seems like a reasonable request (especially now that we have https for nova). But I don't foresee having time...