[AstroPy] Handling IRAF at ccmap astrometry solution with Astropy
JJ Kavelaars
jjk at uvic.ca
Wed Mar 25 11:15:59 EDT 2020
Hi,
If you have access to IRAF you can use the ccsetwcs to put the ccmap database version of the WCS into the FITS header:
http://iraf.noao.edu/scripts/irafhelp?ccsetwcs <http://iraf.noao.edu/scripts/irafhelp?ccsetwcs>
Then astropy will understand the WCS. But that will only provide the linear components.
JJ
> On Mar 25, 2020, at 2:56 AM, Laurent MICHEL <laurent.michel at astro.unistra.fr> wrote:
>
> Dear Astropy,
>
> In the project I'm working on (SVOM), I have to resolve image astrometry with parameters given as IRAF at ccmap input files (*.db).
> I've pasted a sample below.
> As I'm not an IRAF user and my application is Python based, I would like to know whether someone in the community would have some experience with handling such coordinate transformations with AstroPy or some associate package.
>
> Regards
> LM
>
>> begin first
>> xrefmean 1006.983846153846
>> yrefmean 1295.986153846154
>> lngmean 51.92749369230773
>> latmean 46.71962446153846
>> pixsystem logical
>> coosystem j2000
>> projection tan
>> lngref 51.92764538984333
>> latref 46.71980701217847
>> lngunits degrees
>> latunits degrees
>> xpixref 1006.538812424377
>> ypixref 1296.240113815674
>> geometry general
>> function legendre
>> xishift 785.057480503327
>> etashift -1011.192209060798
>> xmag 0.780016468878781
>> ymag 0.7800388866873553
>> xrotation 180.0054358489221
>> yrotation 0.003364033436420988
>> wcsxirms 0.03777045679395438
>> wcsetarms 0.04621390005594472
>> xirms 0.02446609811977102
>> etarms 0.03292506146030702
>> surface1 11
>> 2. 2.
>> 2. 2.
>> 2. 2.
>> 0. 0.
>> 1. 1.
>> 2048. 2048.
>> 1. 1.
>> 2048. 2048.
>> -14.02246741249724 -211.9665257906808
>> -798.346852301705 0.07577120489887789
>> 0.04687505246502031 798.3697991484097
>> surface2 14
>> 2. 2.
>> 3. 3.
>> 3. 3.
>> 2. 2.
>> 1. 1.
>> 2048. 2048.
>> 1. 1.
>> 2048. 2048.
>> 0.01209115687180025 -0.01371667420039151
>> -0.001595934377758362 0.01973382792045219
>> 0.01870940742458613 -0.03495580079513902
>> -0.04682685192837127 0.05029843125259523
>> 0.02206659476379174 -0.06407294737100595
>> 0.09651497861498953 -0.103465418301487
>> # Fri 10:57:09 13-Mar-2020
>
>
>
> --
> ---- Laurent MICHEL Tel (33 0) 3 68 85 24 37
> Observatoire de Strasbourg Fax (33 0) 3 68 85 24 32
> 11 Rue de l'Universite Mail laurent.michel at astro.unistra.fr
> 67000 Strasbourg (France) Web http://astro.u-strasbg.fr/~michel
> ---
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20200325/cd43fdb9/attachment-0001.html>
More information about the AstroPy
mailing list