Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kis_tools
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdc
kis_tools
Commits
ee131d5a
Commit
ee131d5a
authored
5 years ago
by
Carl Schaffer
Browse files
Options
Downloads
Patches
Plain Diff
updating docstrings
parent
8bfda55f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!86
Standardized observation description
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbi/bbi_header.py
+13
-4
13 additions, 4 deletions
bbi/bbi_header.py
with
13 additions
and
4 deletions
bbi/bbi_header.py
+
13
−
4
View file @
ee131d5a
...
...
@@ -197,7 +197,16 @@ def get_pointing_id(filename):
return
point_id
def
insert_wcs_kws
(
new_header
,
filename
):
def
insert_wcs_kws
(
header
,
filename
):
"""
Add WCS coordinate information Keywords into existing header
Args:
header: existing astropy Header instance to be updated
filename: filename from where to extract the coordinate information
Returns: new_header: updated header
"""
# add wcs kws
x
,
y
=
get_coords
(
filename
)
data
=
fits
.
getdata
(
filename
)
...
...
@@ -226,13 +235,13 @@ def insert_wcs_kws(new_header, filename):
# Compatibility for SunPy Maps
HGLN_OBS
=
0
,
HGLT_OBS
=
0
,
DSUN_OBS
=
earth_distance
(
new_
header
[
"
DATE-BEG
"
]).
meter
,
DSUN_OBS
=
earth_distance
(
header
[
"
DATE-BEG
"
]).
meter
,
)
wcs_values
[
"
DATE-OBS
"
]
=
str
(
date_from_fn
(
filename
))
for
key
,
val
in
wcs_values
.
items
():
new_
header
[
key
]
=
val
return
new_
header
header
[
key
]
=
val
return
header
def
insert_separators
(
new_header
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment