Skip to content

Instantly share code, notes, and snippets.

@keflavich
Created February 27, 2013 19:22
Show Gist options
  • Save keflavich/5050824 to your computer and use it in GitHub Desktop.
Save keflavich/5050824 to your computer and use it in GitHub Desktop.
Tests for astropy ipac writer
\datatype = fitshdr
| cntr | ra | dec | cra | cdec |naxis1|naxis2| ctype1 | ctype2 | crpix1 | crpix2 | crval1 | crval2 | cdelt1 | cdelt2 | crota2 |equinox | size | hdu | fname |
| int | double | double | char | char | int | int | char | char | double | double | double | double | double | double | double | double| int | int | char |
0 83.8150020 -5.4050000 05h 35m 15.60s -05d 24m 18.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8150020 -5.4050000 -1.3887872288e-05 1.3887872288e-05 0.0000000 2000.00 1080077760 1 hlsp_orion_hst_acs_strip0l_f658n_v1_drz.fits
1 83.8150000 -5.4050000 05h 35m 15.60s -05d 24m 18.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8150000 -5.4050000 -1.3887872288e-05 1.3887872288e-05 0.0000000 2000.00 1080077760 2 hlsp_orion_hst_acs_strip0l_f658n_v1_drz.fits
2 83.6500020 -5.3700000 05h 34m 36.00s -05d 22m 12.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6500020 -5.3700000 -1.3887261719e-05 1.3887261719e-05 0.0000000 2000.00 1080077760 1 hlsp_orion_hst_acs_strip0r_f658n_v1_drz.fits
3 83.6500000 -5.3700000 05h 34m 36.00s -05d 22m 12.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6500000 -5.3700000 -1.3887261719e-05 1.3887261719e-05 0.0000000 2000.00 1080077760 2 hlsp_orion_hst_acs_strip0r_f658n_v1_drz.fits
4 83.8200000 -5.4500000 05h 35m 16.80s -05d 27m 00.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8200000 -5.4500000 -1.3887386457e-05 1.3887386457e-05 0.0000000 2000.00 1080072000 1 hlsp_orion_hst_acs_strip1l_f658n_v1_drz.fits
5 83.8200000 -5.4500000 05h 35m 16.80s -05d 27m 00.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8200000 -5.4500000 -1.3887386457e-05 1.3887386457e-05 0.0000000 2000.00 1080072000 2 hlsp_orion_hst_acs_strip1l_f658n_v1_drz.fits
6 83.6549990 -5.4250000 05h 34m 37.20s -05d 25m 30.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6549990 -5.4250000 -1.3887357155e-05 1.3887357155e-05 0.0000000 2000.00 1080072000 1 hlsp_orion_hst_acs_strip1r_f658n_v1_drz.fits
7 83.6550000 -5.4250000 05h 34m 37.20s -05d 25m 30.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6550000 -5.4250000 -1.3887357155e-05 1.3887357155e-05 0.0000000 2000.00 1080072000 2 hlsp_orion_hst_acs_strip1r_f658n_v1_drz.fits
8 83.8000490 -5.2650000 05h 35m 12.01s -05d 15m 54.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8000490 -5.2650000 -1.3887874590e-05 1.3887874590e-05 0.0000000 2000.00 1080080640 1 hlsp_orion_hst_acs_strip4l_f658n_v1_drz.fits
9 83.8000000 -5.2650000 05h 35m 12.00s -05d 15m 54.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8000000 -5.2650000 -1.3887874590e-05 1.3887874590e-05 0.0000000 2000.00 1080080640 2 hlsp_orion_hst_acs_strip4l_f658n_v1_drz.fits
10 83.6900480 -5.2450000 05h 34m 45.61s -05d 14m 42.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6900480 -5.2450000 -1.3887938968e-05 1.3887938968e-05 0.0000000 2000.00 1080077760 1 hlsp_orion_hst_acs_strip4r_f658n_v1_drz.fits
11 83.6900000 -5.2450000 05h 34m 45.60s -05d 14m 42.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.6900000 -5.2450000 -1.3887938968e-05 1.3887938968e-05 0.0000000 2000.00 1080077760 2 hlsp_orion_hst_acs_strip4r_f658n_v1_drz.fits
12 83.8499680 -5.3750000 05h 35m 23.99s -05d 22m 30.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.8499680 -5.3750000 -1.3889355892e-05 1.3889355892e-05 0.0000000 2000.00 313432157 1 hlsp_orion_hst_acs_strip5l_f658n_v1_drz.fits
13 83.7149660 -5.3500000 05h 34m 51.59s -05d 21m 00.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.7149660 -5.3500000 -1.3889891488e-05 1.3889891488e-05 0.0000000 2000.00 1080077760 1 hlsp_orion_hst_acs_strip5r_f658n_v1_drz.fits
14 83.7150000 -5.3500000 05h 34m 51.60s -05d 21m 00.0s 18000 7500 RA---TAN DEC--TAN 9000.00000 3750.00000 83.7150000 -5.3500000 -1.3889891488e-05 1.3889891488e-05 0.0000000 2000.00 1080077760 2 hlsp_orion_hst_acs_strip5r_f658n_v1_drz.fits
15 83.7349911 -5.4099980 05h 34m 56.40s -05d 24m 36.0s 30190 13264 RA---TAN DEC--TAN 15095.50000 6632.50000 83.7349841 -5.4099911 -1.3887000000e-05 1.3887000000e-05 359.9962433 2000.00 1601763840 0 HST_ACS_F658n.fits
import astropy.table
t=astropy.table.Table.read('images.tbl',format='ipac')
t.write('test.tbl',format='ipac')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment