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
{{ message }}
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
We should add a function or functions to reduce the number of axes by slicing one plane or performing some reduction operation over some axis like sum or mean.
Just to illustrate what I mean, in Gammapy we have cube_to_image. @keflavich Do you have an existing function or suggestion how to implement this in a generic way?
The text was updated successfully, but these errors were encountered:
I'd prefer if we put this somewhere in the Astropy core ... IMO this is general enough. (It has been (partly) re-implemented in an affiliated package for radio- and one for gamma-astronomy and none want to have the other as a dependency, right?)
I think it could go in astropy.image or astropy.wcs or astropy.nddata, not sure which is best!?
For more sophisticated reductions across axes, I think nddata is the right place. But for now, since it's a 2-liner to get the WCS right for these simple operations, I'd say additional wrappers are probably not necessary.
p.s. wcs.sub also does this. I only learned about it 2 months ago, but it is awesome.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We should add a function or functions to reduce the number of axes by slicing one plane or performing some reduction operation over some axis like
sum
ormean
.Just to illustrate what I mean, in Gammapy we have cube_to_image.
@keflavich Do you have an existing function or suggestion how to implement this in a generic way?
The text was updated successfully, but these errors were encountered: