That's right, we definitely can't make scipy and/or Scikit-image a
"hard" dependency, but it can be "soft", meaning not needed to
import/do basic stuff, but necessary for specific classes or
functions. Some of the current functionality fails (at run-time,
*not* import-time) if scipy is not present. So it would be acceptable
to do a similar thing with Scikit-image (as long as there's a very
prominent message about the dependency in the docs)... But that *is* a
significant cost to users. If it's instead in the astropy core, it
will be version-tied to Astropy, will be documented in the same way as
astropy, and more "discoverable" for our users.
Furthermore I disagree that it's as simple as "algorithms that only
work on pixels and will probably be useful to non-astronomers". Some
algorithms astronomers use are of general use, *but* certain
conventions are specific to astronomers. For example, this is why we
have a custom "sigma_clip" in scipy.stats: the sigma-clipping function
in scipy just didn't do all of the things some astronomers need.
So I think it's just a case-by-case question. As a random example, a
Radon Transform is indeed useful to lots of people, and doesn't really
have astronomy-specific quirks. And it's also not *too* commonly used
in astronomy, so contributing that to scikit-image and then using it
in an Astropy function would be reasonable. But, say, implementing
DAOPHOT's star-finding algorithms is something that belongs in
Astropy, not scikit-image, because it's really of specific use to
astronomers and not terribly generalizable. For everything in
between, I think there isn't a clear and definite answer.
On the original topic, I agree with what Erik B was saying: the
"ideal" is to have all this in NDData and generalized WCS classes, and
have them transparently update headers and such. But that's still got
quite a bit of development before its a reality, so I think
`FITS_tools` as an affiliated package is a great idea as a "stopgap"
way to just get stuff down now. Hopefully, after some use, it will
also help inform the API plans for NDData and gWCS.
And Adam, feel free to go ahead and create a PR on the
astropy.github.com repo to add it as an affiliated package. Further
discussion on the specifics of that can happen in the PR comments.
On Thu, Dec 12, 2013 at 9:19 AM, James Turner <
jtu...@gemini.edu> wrote:
>> A general comment: wouldn’t it be better for us to contribute most image
Erik