[AstroPy] Log rebin in python?

William Schoenell wschoenell at gmail.com
Tue Feb 12 09:36:05 EST 2013

Hi Eric,

We did this here:

This function returns a transformation matrix which you should apply to
your original fluxes. E.g.: [[ResampMat]] • [F_orig] = [F_resampled]



On Tue, Feb 12, 2013 at 1:32 PM, Eric Emsellem <eric.emsellem at eso.org>wrote:

> Hi
> I was wondering if you would know of a simple package/module which would
> allow
> one to rebin/resample a 'spectrum' from linear to log(lambda) (and the
> other way
> around). It is not much to write it, but before I do so, I would like to
> know if
> someone else did it (I would guess the answer is yes).
> So a function which takes two 1D arrays: Lambda_lin, Flux and convert it in
> Lambda_log and Flux, conserving the flux.
> I see that Ian Crossfield has something like that on the web. But just
> wondering
> if something exists as a stand-alone module.
> thanks!
> Eric
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy

William Schoenell
Instituto de Astrofísica de Andalucía - CSIC
Glorieta de la Astronomía, s/n. E-18008
Granada - Spain
Work Phone: +34 958 230 612
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20130212/c6372901/attachment.html>

More information about the AstroPy mailing list