From db0480851e12386e953c687d0183f4f1afc37496 Mon Sep 17 00:00:00 2001 From: shoulinwei Date: Wed, 13 Nov 2024 09:19:28 +0800 Subject: [PATCH] add compute_ra_dec_range --- csst_dfs_commons/utils/fits.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/csst_dfs_commons/utils/fits.py b/csst_dfs_commons/utils/fits.py index b89ec8f..67cb138 100644 --- a/csst_dfs_commons/utils/fits.py +++ b/csst_dfs_commons/utils/fits.py @@ -112,8 +112,7 @@ def dfs_heapix_sql_condition(ra, dec, radius, ra_col = 'ra', dec_col = 'dec', br return whereSql -def compute_ra_dec_range(hdulist): - header = hdulist[1].header +def compute_ra_dec_range(header): fits_wcs = wcs.WCS(header) # Get the shape of the data -- GitLab