You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a first pass at using the reproject package to perform image registration by constructing a WCS for the aligned, translated, and scaled image and reprojecting the input map into that new WCS. This also now works for submaps. Note that this does not add a dependency as reproject is an optional dependency of sunpy that we already pick up by requiring sunpy[map].
I've marked this as a draft because it still needs quite a bit of cleaning up and I'd like several pairs of eyes on it before we even think about merging (if we do at all).
There is also the issue of performance. This is markedly slower for full-disk images by an OOM.
All my comments above are assuming that the performance bottleneck is the map_coordinates function, i.e. the actual interpolation of the array onto the new coordinates. While this is almost certainly true, it should be confirmed with some profiling.
Some TODOs:
Fix up docstring
Fix tests--need a submap test and to remove/modify some of our existing tests.
Changelog
Quantitative comparisons with our current version of register
Comparisons to aiaprep in SSW?
Performance...
The text was updated successfully, but these errors were encountered:
In GitLab by @wtbarnes on Mar 17, 2022, 10:56
Merges reproject-aiaprep -> main
Fixes #125
This is a first pass at using the
reproject
package to perform image registration by constructing a WCS for the aligned, translated, and scaled image and reprojecting the input map into that new WCS. This also now works for submaps. Note that this does not add a dependency asreproject
is an optional dependency of sunpy that we already pick up by requiringsunpy[map]
.I've marked this as a draft because it still needs quite a bit of cleaning up and I'd like several pairs of eyes on it before we even think about merging (if we do at all).
There is also the issue of performance. This is markedly slower for full-disk images by an OOM.
However, this version does have the advantage that prep on submaps is possible. Additionally,
reproject
offers several different algorithms for performing the actual reprojection and there are proposed performance improvements.. There is also progress being made on parallelizing themap_coordinates
function with Dask which is the underlying scipy function called byreproject_interp
. There's also a cupy version ofmap_coordinates
.All my comments above are assuming that the performance bottleneck is the
map_coordinates
function, i.e. the actual interpolation of the array onto the new coordinates. While this is almost certainly true, it should be confirmed with some profiling.Some TODOs:
register
The text was updated successfully, but these errors were encountered: