[AstroPy] got flux-conservative rebinning?

David Berry d.berry at jach.hawaii.edu
Thu Apr 19 15:38:02 EDT 2012

On 19 April 2012 20:36, David Berry <d.berry at jach.hawaii.edu> wrote:
> On 19 April 2012 18:50, Marshall Perrin <mperrin at stsci.edu> wrote:
>> While we're fishing for useful algorithms, does anyone have a convenient
>> implementation of flux-conservative rebinning? The image interpolations in
>>  scipy.ndimage are not conservative.  Montage can do this, of course, but
>> that seems like overkill (and adds a lot of interface complexity) if I just
>> want to scale an image by 75% while conserving energy...  Thanks in
>> advance,
> pyast (https://github.com/timj/starlink-pyast) can do this. For instance:
> import starlink.Ast
> #  Create an object describing a 2D transformation that zoom by a
> factor of 0.7 about the origin of a 2M

Arghh!  A finger slip caused my message to be sent prematurely. The
rest will follow shortly :-)


More information about the AstroPy mailing list