Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Oct 12, 2023
1 parent 47c6c0a commit 17ebb44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jdaviz/configs/cubeviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@ def parse_data(app, file_obj, data_type=None, data_label=None):
else:
raise NotImplementedError(f'Unsupported data format: {file_obj}')


def _get_celestial_wcs(wcs):
""" If `wcs` has a celestial component return that, otherwise return None """
if hasattr(wcs, 'celestial'):
return wcs.celestial
else:
return None


def _return_spectrum_with_correct_units(flux, wcs, metadata, data_type, target_wave_unit=None,
hdulist=None, uncertainty=None, mask=None):
"""Upstream issue of WCS not using the correct units for data must be fixed here.
Expand Down

0 comments on commit 17ebb44

Please sign in to comment.