Skip to content

Commit

Permalink
Implement combine by r0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Mar 6, 2024
1 parent 3cd48f7 commit 6512393
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dkist/processing/mosaicking.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def reproject_vbi(
footprint = []
for tind in tqdm.tqdm(range(uni_tds.flat[0].data.shape[0])):
tiles = [ds[tind] for ds in cropped.flat]
if combine_function == "fried_parameter":

Check warning on line 96 in dkist/processing/mosaicking.py

View check run for this annotation

Codecov / codecov/patch

dkist/processing/mosaicking.py#L92-L96

Added lines #L92 - L96 were not covered by tests
# Sort the tiles by the fried parameter so the first one is
# prioritised with the best seeing.
tiles = list(sorted(tiles, key=lambda d: d.headers[0]["ATMOS_R0"]))
combine_function = "first"

Check warning on line 100 in dkist/processing/mosaicking.py

View check run for this annotation

Codecov / codecov/patch

dkist/processing/mosaicking.py#L99-L100

Added lines #L99 - L100 were not covered by tests

arr, fp = reproject.mosaicking.reproject_and_coadd(

Check warning on line 102 in dkist/processing/mosaicking.py

View check run for this annotation

Codecov / codecov/patch

dkist/processing/mosaicking.py#L102

Added line #L102 was not covered by tests
tiles,
target_celestial_wcs,
Expand Down

0 comments on commit 6512393

Please sign in to comment.