Skip to content

Commit b8a7ac9

Browse files
Implement persistence_step
- Implement persistence correction step - Add persistence step to docs
1 parent 70df41a commit b8a7ac9

File tree

8 files changed

+606
-5
lines changed

8 files changed

+606
-5
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
1.3.1 (Unreleased)
22
==================
33

4+
- Implement ``persistence`` step, to correct for persistence in MIRI imaging
45
- Fix backgrounds being wrongly moved in ``lv1_step``
56
- Moved ``astrometric_align`` to a combined step, to avoid list ordering issues
67
- Updated dependencies, added specific pins, dependabot, and CODEOWNERS

docs/reference_api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ Multi-Tile Destriping
138138
:members:
139139
:undoc-members:
140140

141+
===========================
142+
MIRI Persistence Correction
143+
===========================
144+
145+
.. autoclass:: pjpipe.PersistenceStep
146+
:members:
147+
:undoc-members:
148+
141149
============
142150
PSF Matching
143151
============

docs/steps.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ However, we highly recommend running these are part of the integrated pipeline.
2424
steps/lv1.rst
2525
steps/single_tile_destripe.rst
2626
steps/lv2.rst
27+
steps/persistence.rst
2728
steps/get_wcs_adjust.rst
2829
steps/apply_wcs_adjust.rst
2930
steps/lyot_separate.rst

docs/steps/persistence.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
===============
2+
PersistenceStep
3+
===============
4+
5+
As MIRI does not currently have a persistence correction step, we implement one
6+
based on `this paper <https://arxiv.org/pdf/2512.15477>`_. For each observation,
7+
we calculate a percentage flux correction (in detector pixel space) based on previous
8+
observations.
9+
10+
This step also contains options to include a contribution from previous observation
11+
groups (rather than just the immediate dithers around the observation being considered),
12+
as well as from other bands.
13+
14+
N.B. This step is currently undergoing testing, so a definitive recommendation on the settings
15+
is not currently available
16+
17+
---
18+
API
19+
---
20+
21+
.. autoclass:: pjpipe.PersistenceStep
22+
:members:
23+
:undoc-members:
24+
:noindex:

pjpipe/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
]
2929
)
3030

31+
from .anchoring import AnchoringStep
3132
from .apply_wcs_adjust import ApplyWCSAdjustStep
3233
from .astrometric_align import AstrometricAlignStep
3334
from .astrometric_catalog import AstrometricCatalogStep
@@ -46,11 +47,11 @@
4647
from .psf_model import PSFModelStep
4748
from .release import ReleaseStep
4849
from .regress_against_previous import RegressAgainstPreviousStep
50+
from .persistence import PersistenceStep
4951
from .pipeline import PJPipeline
52+
from .psf_matching import PSFMatchingStep
5053
from .single_tile_destripe import SingleTileDestripeStep
5154
from .utils import load_toml
52-
from .anchoring import AnchoringStep
53-
from .psf_matching import PSFMatchingStep
5455

5556
__all__ = [
5657
"AnchoringStep",
@@ -69,6 +70,7 @@
6970
"MosaicIndividualFieldsStep",
7071
"MoveRawObsStep",
7172
"MultiTileDestripeStep",
73+
"PersistenceStep",
7274
"PJPipeline",
7375
"PSFMatchingStep",
7476
"PSFModelStep",

pjpipe/persistence/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .persistence_step import PersistenceStep
2+
3+
__all__ = [
4+
"PersistenceStep",
5+
]

0 commit comments

Comments
 (0)