Skip to content
Snippets Groups Projects
Commit ee131d5a authored by Carl Schaffer's avatar Carl Schaffer
Browse files

updating docstrings

parent 8bfda55f
No related branches found
No related tags found
1 merge request!86Standardized observation description
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment