[AstroPy] got flux-conservative rebinning?

David Berry d.berry@jach.hawaii....
Thu Apr 19 14:38:02 CDT 2012


On 19 April 2012 20:36, David Berry <d.berry@jach.hawaii.edu> wrote:
> On 19 April 2012 18:50, Marshall Perrin <mperrin@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 :-)

David


More information about the AstroPy mailing list