Blanton and I worked for a while on sky. It is interesting that such a simple problem (subtract the smooth, additive foreground) is so hard! We decided that the way you subtract sky is a strong function of the scientific question you are asking, and you make different choices in different cases. So to make a sky determination, you have to have a very specific question in mind. This may seem strange, but it is because the sky has structure on all scales, and sometimes you want to photometer a star in a dense field, and sometimes you want to detect low surface-brightness emission behind a field of Galactic stars. There is no one sky
that gives good signal-to-noise for both of these cases. For measuring the properties of huge, well-resolved galaxies, we were using a hack, but now we are getting close. Here's a comparison (before
is on top, after
is below):

