Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-commons
Commits
db048085
Commit
db048085
authored
Nov 13, 2024
by
Wei Shoulin
Browse files
add compute_ra_dec_range
parent
8b09e30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_commons/utils/fits.py
View file @
db048085
...
@@ -112,8 +112,7 @@ def dfs_heapix_sql_condition(ra, dec, radius, ra_col = 'ra', dec_col = 'dec', br
...
@@ -112,8 +112,7 @@ def dfs_heapix_sql_condition(ra, dec, radius, ra_col = 'ra', dec_col = 'dec', br
return
whereSql
return
whereSql
def
compute_ra_dec_range
(
hdulist
):
def
compute_ra_dec_range
(
header
):
header
=
hdulist
[
1
].
header
fits_wcs
=
wcs
.
WCS
(
header
)
fits_wcs
=
wcs
.
WCS
(
header
)
# Get the shape of the data
# Get the shape of the data
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment