[AstroPy] python equivalent of gaussfold?

Jonathan Slavin jslavin at cfa.harvard.edu
Wed Jun 20 09:09:23 EDT 2012


I think that scipy.ndimage.filters.gaussian_filter1d will do what you
want.

Jon

> On Tue, Jun 19, 2012 at 4:15 PM, Abhijith Rajan
> <abhijithrajan at asu.edu> wrote:
> > Dear astropyers,
> >
> > I was wondering if there is a convenient equivalent
> >
> to?http://astro.uni-tuebingen.de/software/idl/aitlib/misc/gaussfold.pro.
> >
> > Thanks
> > Abhi
> >
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
> >
> 
> 
> 
> Abhi -- For a relatively simple IDL task like this, you may just want
> to take a peek at the source and look for equivalent functions in
> scipy/numpy.  Perhaps the combination of something like
> 
> numpy.linspace
> numpy.interp
> 
> and one of
> 
> scipy.ndimage.gaussian_filter
> scipy.signal.convolve
> scipy.signal.fftconvolve
> 
> would achieve what you want....
> 
> 
> -- 
> Taro Sato
> Department of Astronomy & Physics
> Saint Mary's University             email: taro at ap.smu.ca
> Halifax, NS B3H 3C3                 phone: (902)420-5018
> Canada                                web: http://ap.smu.ca/~taro
> 
-- 
______________________________________________________________
Jonathan D. Slavin              Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu         60 Garden Street, MS 83
phone: (617) 496-7981           Cambridge, MA 02138-1516
 cell: (781) 363-0035           USA
______________________________________________________________




More information about the AstroPy mailing list