[AstroPy] IRAF tasks to Astropy

Tim Jenness tim.jenness at gmail.com
Mon Jul 15 19:21:34 EDT 2013


pyast can do wregister trivially but pyast is not part of astropy.

-- 
Tim Jenness


On Mon, Jul 15, 2013 at 2:57 PM, Sofia Lianou <slianou at uwo.ca> wrote:

> Of the three tasks mentioned below, the mkpattern and ccsetwcs can be
> dealt within astropy alone. The wregister is not clear how to deal with
> only using astropy or scipy, unless thinking of doing this from scratch.
> Thus, I am interested in alternatives to wregister within python (but not
> pyraf), with the following use:
> wregister input.fits reference.fits output.fits fluxconserve=yes
>
> Thanks,
> Sophia
>
> On 07/05/13, *Erik Tollerud * <erik.tollerud at gmail.com> wrote:
>
> The answer to this probably depends on what you want to do with the
> tasks - those tasks have a lot of options and can be used on a variety
> of inputs, so there's definitely not an exact mapping onto anything in
> astropy.
>
> Most, if not all of the things that mkpattern seems to do can be done
> with just standard numpy array mechanics. E.g., if you wanted to do
>
> cl> mkpat alpha[201:250,1:50] v1=-1000
>
> you could instead do this in python (I *think* I have the indexing
> conditions right, but you might want to check it) :
>
> >>> alpha[200:250, 0:50] = -1000
>
>
> The other two tasks can be used in a few different ways, but are
> generally for creating WCS headers for fits files?  In that case, you
> can use astropy.io.fits to generate the files, and astropy.wcs to
> create the WCS.  To go into more details probably requires more
> specifics about what you want to do.
>
>
>
>
>
> On Fri, Jun 28, 2013 at 10:09 AM, Sofia Lianou <slianou at uwo.ca> wrote:
> > Hi,
> >
> > I was wondering if there are Python/Astropy equivalents to (or plans to
> do
> > so in the near future for) the following IRAF tasks:
> > noao.artdata.mkpattern
> > images.immatch.wregister
> > images.imcoords.ccsetwcs
> >
> > Thank you,
> > Sophia
> >
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
> >
>
>
>
> --
> Erik
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20130715/927ec2a1/attachment.html>


More information about the AstroPy mailing list