Skip to content

Commit

Permalink
Add a note about moment map WCS
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jul 4, 2022
1 parent e87e4cf commit 2a00fce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def vue_calculate_moment(self, *args):
except ValueError:
raise ValueError("Moment must be a positive integer")
# Need transpose to align JWST mirror shape. Not sure why.
# TODO: WCS can be grabbed from cube.wcs[:, :, 0] but CCDData will not take it.
# But if we use NDData, glue-astronomy translator fails.
self.moment = CCDData(analysis.moment(slab, order=n_moment).T)

fname_label = self.dataset_selected.replace("[", "_").replace("]", "")
Expand Down

0 comments on commit 2a00fce

Please sign in to comment.