Skip to content

Commit

Permalink
Merge e2241b8 into 2f1967d
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Aug 15, 2014
2 parents 2f1967d + e2241b8 commit 390d720
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pvextractor/pvextractor.py
Expand Up @@ -67,7 +67,9 @@ def extract_pv_slice(cube, path, wcs=None, spacing=1.0, order=3,

if _is_spectral_cube(cube):
wcs = cube.wcs
cube = cube.filled_data[...]
# The fits HEADER will preserve the UNIT, but pvextractor does not care
# what the flux units are
cube = cube.filled_data[...].value
else:
wcs = None

Expand Down

0 comments on commit 390d720

Please sign in to comment.