Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sdc
kis_tools
Commits
c36d8d1d
Commit
c36d8d1d
authored
May 18, 2020
by
Carl Schaffer
Browse files
unit fix
parent
ad0ff173
Changes
1
Hide whitespace changes
Inline
Side-by-side
kis_tools/gris/GrisFitsFile.py
View file @
c36d8d1d
...
...
@@ -17,6 +17,7 @@ import matplotlib.pyplot as plt
import
numpy
as
np
from
astropy.coordinates
import
SkyCoord
from
astropy.wcs
import
WCS
from
..generic.fits
import
FitsFile
from
..util
import
calc_mu
,
calc_theta
from
..util.util
import
date_from_fn
,
gris_obs_mode
...
...
@@ -387,7 +388,7 @@ class GrisFitsFile(FitsFile):
slit_list
[:,
1
]
=
np
.
arange
(
n_y
)
slit_list
[:,
0
]
=
0
converted
=
np
.
array
(
wcs
.
pixel_to_world_values
(
slit_list
))
degrees
=
u
.
degree
*
converted
[:,
:
2
]
degrees
=
u
.
arcsec
*
converted
[:,
:
2
]
arcsec
=
degrees
.
to
(
u
.
arcsec
)
return
arcsec
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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