Skip to content

Commit

Permalink
fix numra in WCS
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Dec 1, 2024
1 parent c9203da commit 1e6182c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypeit/core/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def extract_point_source(wave, flxcube, ivarcube, bpmcube, wcscube, exptime,

# Convert from counts/s/Ang/arcsec**2 to counts. The sensitivity function expects counts as input
numxx, numyy, numwave = flxcube.shape
arcsecSQ = (wcscube.wcs.cdelt[0] * wcscube.wcs.cunit[0].to(units.arcsec)) * \
(wcscube.wcs.cdelt[1] * wcscube.wcs.cunit[1].to(units.arcsec))
arcsecSQ = abs((wcscube.wcs.cdelt[0] * wcscube.wcs.cunit[0].to(units.arcsec)) * \
(wcscube.wcs.cdelt[1] * wcscube.wcs.cunit[1].to(units.arcsec)))
if fluxed:
# The datacube is flux calibrated, in units of 10^-17 erg/s/cm**2/Ang/arcsec**2
# Scale the flux and ivar cubes to be in units of erg/s/cm**2/Ang
Expand Down

0 comments on commit 1e6182c

Please sign in to comment.