Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datacube core #1669

Merged
merged 97 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
3f3773d
SlicerIFU
rcooke-ast Sep 8, 2023
a60473f
rm coadd
rcooke-ast Sep 8, 2023
6b33349
refactor to coadd3d
rcooke-ast Sep 8, 2023
79a9cb4
refactor step 1
rcooke-ast Sep 8, 2023
b1b7808
refactor step 2
rcooke-ast Sep 9, 2023
39a1e8d
deprecate unused
rcooke-ast Sep 10, 2023
8aae909
restructure
rcooke-ast Sep 10, 2023
97f695a
restructured
rcooke-ast Sep 10, 2023
ed9169b
update docstrings
rcooke-ast Sep 10, 2023
7b17e41
more docstrings
rcooke-ast Sep 10, 2023
dafc1be
more docstrings
rcooke-ast Sep 10, 2023
2871ebf
more docstrings
rcooke-ast Sep 10, 2023
dcbd362
final docstrings
rcooke-ast Sep 11, 2023
78b323c
final docstrings
rcooke-ast Sep 11, 2023
fe055ee
refactor
rcooke-ast Sep 11, 2023
4e7db8f
fix args
rcooke-ast Sep 11, 2023
e6b652c
log update
rcooke-ast Sep 11, 2023
2b045bc
renamed datacube
rcooke-ast Sep 11, 2023
f7597c5
Merge branch 'develop' into datacube_core
rcooke-ast Sep 11, 2023
5f657bb
fix tests
rcooke-ast Sep 12, 2023
cd63beb
voxel sampling
rcooke-ast Sep 13, 2023
60884e9
update comment
rcooke-ast Sep 13, 2023
a7d4e3a
make a start
rcooke-ast Sep 13, 2023
d8f0f55
wrapper for create_wcs
rcooke-ast Sep 13, 2023
d6fbff2
Merge branch 'datacube_core' into hst_align_18
rcooke-ast Sep 13, 2023
c033320
moving forward
rcooke-ast Sep 13, 2023
f7fa87d
fixes
rcooke-ast Sep 13, 2023
8a1bd39
fix refimg
rcooke-ast Sep 13, 2023
138bdd4
DAR fixed
rcooke-ast Sep 20, 2023
5a45cc2
update spectrographs
rcooke-ast Sep 20, 2023
9cb6daa
updated docs
rcooke-ast Sep 21, 2023
e83fed7
rm old DAR
rcooke-ast Sep 21, 2023
f1111af
rm HST
rcooke-ast Sep 21, 2023
c10d24a
warning about parang
rcooke-ast Sep 21, 2023
128ab96
rm warn
rcooke-ast Sep 21, 2023
fcb20a5
move skip_skysub
rcooke-ast Sep 23, 2023
8a7b755
tweaking parameters
jhennawi Sep 23, 2023
54d3ea2
Changing meta keys and pypeit file format.
jhennawi Sep 24, 2023
1c84740
Changing meta keys and pypeit file format.
jhennawi Sep 24, 2023
4f6c5ca
PR comments
rcooke-ast Sep 24, 2023
729403e
Flipped red side images to try to deal with WCS bug.
jhennawi Sep 24, 2023
b48215a
Merge pull request #1679 from pypeit/bugfix_dar
rcooke-ast Sep 24, 2023
8dc0e50
Merge branch 'develop' into datacube_core
rcooke-ast Sep 24, 2023
0dbdb7b
rm changes
rcooke-ast Sep 24, 2023
04838e8
cp ref_index
rcooke-ast Sep 25, 2023
a2c0755
add tests for ref_index
rcooke-ast Sep 25, 2023
67a8de2
Merge branch 'develop' into datacube_core
rcooke-ast Sep 26, 2023
334f75a
Merge remote-tracking branch 'origin/filesearch' into datacube_core
rcooke-ast Sep 26, 2023
7a44b26
bugfix dar
rcooke-ast Sep 26, 2023
1145297
Merge branch 'develop' into datacube_core
rcooke-ast Sep 27, 2023
49cd4d7
revert
rcooke-ast Sep 27, 2023
5ecbc94
udpates
rcooke-ast Sep 27, 2023
2986dda
Merge branch 'kcwi_cleanse3' into datacube_core
rcooke-ast Sep 27, 2023
59203ab
Flipped red side images to try to deal with WCS bug.
jhennawi Sep 29, 2023
367eb9d
Merge branch 'develop' of https://github.com/pypeit/PypeIt into kcrm_…
jhennawi Sep 29, 2023
ca238f9
Merge branch 'develop' into datacube_core
rcooke-ast Sep 29, 2023
d593930
support RL grating
rcooke-ast Sep 29, 2023
993a044
Merge branch 'develop' into kcrm_Sep23
rcooke-ast Sep 29, 2023
3c398cd
support RL grating
rcooke-ast Sep 29, 2023
bf6031a
Merge branch 'develop' into datacube_core
rcooke-ast Oct 1, 2023
9e6847a
Merge branch 'kcrm_Sep23' into datacube_core
rcooke-ast Oct 1, 2023
9a1f81b
updated changes
rcooke-ast Oct 1, 2023
0978d08
add poly corr for skysub
rcooke-ast Oct 1, 2023
c937f19
Merge branch 'develop' into datacube_core
rcooke-ast Oct 1, 2023
47de2c5
minor comment
rcooke-ast Oct 1, 2023
565d8f5
core make_sensfunc
rcooke-ast Oct 2, 2023
f57ec7e
add docs sensfunc
rcooke-ast Oct 2, 2023
cac8037
hist spec
rcooke-ast Oct 3, 2023
ccb7fe5
align code
rcooke-ast Oct 3, 2023
32e0f33
load to init
rcooke-ast Oct 3, 2023
d6825ef
extra docs
rcooke-ast Oct 3, 2023
4d4c37f
fix subpixel
rcooke-ast Oct 4, 2023
451b67a
fix subpixel
rcooke-ast Oct 4, 2023
f1d3513
fix time
rcooke-ast Oct 4, 2023
3e43070
fix subpix
rcooke-ast Oct 4, 2023
8c53a1f
docstrings and cleanup
rcooke-ast Oct 4, 2023
63d3259
docstrings and cleanup
rcooke-ast Oct 5, 2023
898e86e
fix DAR and dependencies
rcooke-ast Oct 5, 2023
1406bee
fix DAR
rcooke-ast Oct 5, 2023
9ac6190
rm embed
rcooke-ast Oct 5, 2023
66d9512
fix DAR
rcooke-ast Oct 7, 2023
a46cfc2
fix DAR
rcooke-ast Oct 7, 2023
07c7354
cleanup DAR
rcooke-ast Oct 8, 2023
982eea1
Merge branch 'develop' into datacube_core
rcooke-ast Oct 8, 2023
5ac775b
code cleanup
rcooke-ast Oct 8, 2023
6754e32
move to core
rcooke-ast Oct 8, 2023
577822f
wcs to core
rcooke-ast Oct 9, 2023
7eba69e
bpm spatflip
rcooke-ast Oct 9, 2023
f1599cf
bpm spatflip
rcooke-ast Oct 9, 2023
4e50f30
update docstring
rcooke-ast Oct 9, 2023
270eaf1
wcs fix
rcooke-ast Oct 9, 2023
75dbe33
rm todo
rcooke-ast Oct 9, 2023
d979e19
weights to core
rcooke-ast Oct 9, 2023
e330ec2
docstring
rcooke-ast Oct 9, 2023
dfa747f
cleanup
rcooke-ast Oct 9, 2023
b1d6e1f
cleanup
rcooke-ast Oct 9, 2023
3ad7d3c
cleanup
rcooke-ast Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RELEASE FILE IN doc/releases
files that have frametype None (this prevent ``run_pypeit`` to crash)
- Added a function ``check_spectrograph()`` (currently only defined for LRIS),
that checks (during ``pypeit_setup``) if the selected spectrograph is the
corrected one for the data used.
corrected one for the data used.


1.13.0 (2 June 2023)
Expand Down
6 changes: 3 additions & 3 deletions doc/coadd3d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ Sky Subtraction

The default behaviour of PypeIt is to subtract the model sky that is
derived from the science frame during the reduction. If you would like
to turn off sky subtraction, set the following keyword argument:
to turn off sky subtraction, set the following keyword argument (all lowercase):

.. code-block:: ini

[reduce]
[[cube]]
skysub_frame = None
skysub_frame = none
kbwestfall marked this conversation as resolved.
Show resolved Hide resolved

If you would like to use a dedicated sky frame for sky subtraction
that is separate from the science frame, then you need to provide
Expand Down Expand Up @@ -330,7 +330,7 @@ plot a wavelength slice of the cube:

from matplotlib import pyplot as plt
from astropy.visualization import ZScaleInterval, ImageNormalize
from pypeit.core.datacube import DataCube
from pypeit.coadd3d import DataCube

filename = "datacube.fits"
cube = DataCube.from_file(filename)
Expand Down
2 changes: 1 addition & 1 deletion doc/include/spectrographs_table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jwst_nirspec :class:`~pypeit.spectrographs.jwst_nirspec.JWSTNIRSpec
keck_deimos :class:`~pypeit.spectrographs.keck_deimos.KeckDEIMOSSpectrograph` KECK DEIMOS `Link <https://www2.keck.hawaii.edu/inst/deimos/>`__ MultiSlit True True Supported gratings: 600ZD, 830G, 900ZD, 1200B, 1200G; see :doc:`deimos`
keck_esi :class:`~pypeit.spectrographs.keck_esi.KeckESISpectrograph` KECK ESI Echelle True False
keck_hires :class:`~pypeit.spectrographs.keck_hires.KECKHIRESSpectrograph` KECK HIRES `Link <https://www2.keck.hawaii.edu/inst/hires/>`__ Echelle False False
keck_kcrm :class:`~pypeit.spectrographs.keck_kcwi.KeckKCRMSpectrograph` KECK KCRM `Link <https://www2.keck.hawaii.edu/inst/kcwi/>`__ IFU True False Supported setups: RM1, RM2, RH3; see :doc:`keck_kcwi`
keck_kcrm :class:`~pypeit.spectrographs.keck_kcwi.KeckKCRMSpectrograph` KECK KCRM `Link <https://www2.keck.hawaii.edu/inst/kcwi/>`__ IFU True False Supported setups: RL, RM1, RM2, RH3; see :doc:`keck_kcwi`
keck_kcwi :class:`~pypeit.spectrographs.keck_kcwi.KeckKCWISpectrograph` KECK KCWI `Link <https://www2.keck.hawaii.edu/inst/kcwi/>`__ IFU True False Supported setups: BL, BM, BH2; see :doc:`keck_kcwi`
keck_lris_blue :class:`~pypeit.spectrographs.keck_lris.KeckLRISBSpectrograph` KECK LRISb `Link <https://www2.keck.hawaii.edu/inst/lris/>`__ MultiSlit True False Blue camera; Current FITS file format; used from May 2009, see :doc:`lris`
keck_lris_blue_orig :class:`~pypeit.spectrographs.keck_lris.KeckLRISBOrigSpectrograph` KECK LRISb `Link <https://www2.keck.hawaii.edu/inst/lris/>`__ MultiSlit True False Blue camera; Original FITS file format; used until April 2009; see :doc:`lris`
Expand Down
373 changes: 184 additions & 189 deletions doc/pypeit_par.rst

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions doc/releases/1.14.1dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ Functionality/Performance Improvements and Additions

- Started the development of instrument-specific scattered light removal. In this
release, we only model KCWI/KCRM scattered light.
- Added support for Keck/KCRM RL data reduction.

Instrument-specific Updates
---------------------------

- Keck/KCWI and Keck/KCRM: Turned on polynomial correction for sky subtraction.

Script Changes
--------------

Expand All @@ -25,14 +28,21 @@ Script Changes
Datamodel Changes
-----------------

- A wavelength array is now stored for DataCube()

Under-the-hood Improvements
---------------------------

- The CoAdd3D code has been refactored into a series of core modules and PypeIt-specific routines.

Bug Fixes
---------

- Fixed bug associated with finding more than one file with the same name (but
presumably different extensions).
- Fixed differential atmospheric refraction (DAR) correction bug. This bug affected
datacubes combined using CoAdd3D(). Previously, the DAR was being computed, applied,
and then later overwritten. The new routine is faster and more accurate.
- Fixed a bug associated with an incorrect date for the transition to the Mark4
detector for Keck/LRIS RED.

Expand Down
Loading