From 491a52abb5715e890dda7548bea766d6b4f0ec64 Mon Sep 17 00:00:00 2001 From: Steven Bamford Date: Fri, 29 Nov 2024 15:58:15 +0000 Subject: [PATCH] Use correct dtype for fits images (without BSCALE/BZERO) --- kerchunk/fits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerchunk/fits.py b/kerchunk/fits.py index 18729a9b..a857ae8b 100644 --- a/kerchunk/fits.py +++ b/kerchunk/fits.py @@ -113,7 +113,7 @@ def process_file( ) ] else: - kwargs["filters"] = None + kwargs["filters"] = [numcodecs.AsType(dtype)] elif isinstance(hdu, fits.hdu.table.TableHDU): # ascii table spans = hdu.columns._spans