{"action":"created","issue":{"url":"https://api.github.com/repos/vterron/lemon/issues/64","labels_url":"https://api.github.com/repos/vterron/lemon/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/vterron/lemon/issues/64/comments","events_url":"https://api.github.com/repos/vterron/lemon/issues/64/events","html_url":"https://github.com/vterron/lemon/issues/64","id":90513937,"number":64,"title":"mosaic does not recognize WCS header?","user":{"login":"ubutnux","id":10122394,"avatar_url":"https://avatars.githubusercontent.com/u/10122394?v=3","gravatar_id":"","url":"https://api.github.com/users/ubutnux","html_url":"https://github.com/ubutnux","followers_url":"https://api.github.com/users/ubutnux/followers","following_url":"https://api.github.com/users/ubutnux/following{/other_user}","gists_url":"https://api.github.com/users/ubutnux/gists{/gist_id}","starred_url":"https://api.github.com/users/ubutnux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubutnux/subscriptions","organizations_url":"https://api.github.com/users/ubutnux/orgs","repos_url":"https://api.github.com/users/ubutnux/repos","events_url":"https://api.github.com/users/ubutnux/events{/privacy}","received_events_url":"https://api.github.com/users/ubutnux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T23:17:52Z","updated_at":"2015-07-06T17:44:21Z","closed_at":null,"body":"all the FITS images have WCS header from astrometry \r\n```\r\nucup@ubuntu:~$ lemon mosaic eh-lib/*.fts tes-mos.fit\r\n>> Making sure the 2 input paths are FITS images...\r\n>> 100%[======================================================================>]\r\nINFO: Listing raw frames [montage_wrapper.wrappers]\r\nINFO: Computing optimal header [montage_wrapper.wrappers]\r\nTraceback (most recent call last):\r\n  File \"/home/ucup/lemon/lemon\", line 135, in <module>\r\n    module.main(args)\r\n  File \"/home/ucup/lemon/mosaic.py\", line 304, in main\r\n    montage.mosaic(input_dir, output_dir, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/montage_wrapper/wrappers.py\", line 534, in mosaic\r\n    m.mMakeHdr(images_raw_all_tbl, header_hdr)\r\n  File \"/usr/local/lib/python2.7/dist-packages/montage_wrapper/commands.py\", line 1468, in mMakeHdr\r\n    return status.parse_struct(\"mMakeHdr\", p.stdout.read().strip())\r\n  File \"/usr/local/lib/python2.7/dist-packages/montage_wrapper/status.py\", line 33, in parse_struct\r\n    result = Struct(command, string)\r\n  File \"/usr/local/lib/python2.7/dist-packages/montage_wrapper/status.py\", line 70, in __init__\r\n    raise MontageError(\"%s: %s\" % (command, self.msg))\r\nmontage_wrapper.status.MontageError: mMakeHdr: Invalid table file: /tmp/montage_mosaic_tmp4Pgy9o_LEMON_28370_mosaic_input_2TNWuq/images_raw_all.tbl\r\nINFO: Deleting work directory /tmp/montage_mosaic_tmp4Pgy9o_LEMON_28370_mosaic_input_2TNWuq [montage_wrapper.wrappers]\r\n```\r\n\r\nthis is the header\r\n```\r\nCOMMENT --Start of Astrometry.net WCS solution--                                \r\nCOMMENT --Put in by the new-wcs program--                                       \r\nCOMMENT                                                                         \r\nWCSAXES =                    2 / no comment                                     \r\nCTYPE1  = 'RA---TAN-SIP' / TAN (gnomic) projection + SIP distortions            \r\nCTYPE2  = 'DEC--TAN-SIP' / TAN (gnomic) projection + SIP distortions            \r\nEQUINOX =               2000.0 / Equatorial coordinates definition (yr)         \r\nLONPOLE =                180.0 / no comment                                     \r\nLATPOLE =                  0.0 / no comment                                     \r\nCRVAL1  =        224.777250672 / RA  of reference point                         \r\nCRVAL2  =      -0.945480721722 / DEC of reference point                         \r\nCRPIX1  =         2033.9175415 / X reference pixel                              \r\nCRPIX2  =        2269.25918579 / Y reference pixel                              \r\nCUNIT1  = 'deg     ' / X pixel scale units                                      \r\nCUNIT2  = 'deg     ' / Y pixel scale units                                      \r\nCD1_1   =    4.22228778718E-06 / Transformation matrix                          \r\nCD1_2   =    0.000201267285409 / no comment                                     \r\nCD2_1   =   -0.000201259711753 / no comment                                     \r\nCD2_2   =    4.15822740946E-06 / no comment                                     \r\nIMAGEW  =                 4096 / Image width,  in pixels.                       \r\nIMAGEH  =                 4096 / Image height, in pixels.                       \r\nA_ORDER =                    2 / Polynomial order, axis 1                       \r\nA_0_0   =                    0 / no comment                                     \r\nA_0_1   =                    0 / no comment                                     \r\nA_0_2   =   -1.35578367059E-07 / no comment                                     \r\nA_1_0   =                    0 / no comment                                     \r\nA_1_1   =   -2.18497567051E-07 / no comment                                     \r\nA_2_0   =   -5.14143366522E-08 / no comment                                     \r\nB_ORDER =                    2 / Polynomial order, axis 2                       \r\nB_0_0   =                    0 / no comment                                     \r\nB_0_1   =                    0 / no comment                                     \r\nB_0_2   =   -2.41432917051E-07 / no comment                                     \r\nB_1_0   =                    0 / no comment                                     \r\nB_1_1   =   -1.83611518229E-07 / no comment                                     \r\nB_2_0   =   -1.69373154503E-07 / no comment                                     \r\nAP_ORDER=                    2 / Inv polynomial order, axis 1                   \r\nAP_0_0  =    9.07391373255E-05 / no comment                                     \r\nAP_0_1  =    4.21174643868E-07 / no comment                                     \r\nAP_0_2  =    1.35517414024E-07 / no comment                                     \r\nAP_1_0  =    3.51582683238E-07 / no comment                                     \r\nAP_1_1  =    2.18428163006E-07 / no comment                                     \r\nAP_2_0  =    5.13895010485E-08 / no comment                                     \r\nBP_ORDER=                    2 / Inv polynomial order, axis 2                   \r\nBP_0_0  =    0.000142932769025 / no comment                                     \r\nBP_0_1  =    6.57540940404E-07 / no comment                                     \r\nBP_0_2  =    2.41341878341E-07 / no comment                                     \r\nBP_1_0  =    4.47959198235E-07 / no comment                                     \r\nBP_1_1  =    1.83520046971E-07 / no comment                                     \r\nBP_2_0  =    1.69330994199E-07 / no comment                                     \r\nHISTORY Created by the Astrometry.net suite.                                    \r\nHISTORY For more details, see http://astrometry.net.                            \r\nHISTORY Git URL https://github.com/dstndstn/astrometry.net                      \r\nHISTORY Git revision 0.55                                                       \r\nHISTORY Git date Thu_May_14_17:25:20_2015_+0000                                 \r\nHISTORY This WCS header was created by the program \"blind\".                     \r\nHISTORY Astrometry done via LEMON on Tue Jun 23 22:44:11 2015 UTC               \r\nHISTORY [Astrometry] WCS solution found by Astrometry.net                       \r\nHISTORY [Astrometry] Original image: data/ehlib-S001-R001-C001-V.fts            \r\nDATE    = '2015-06-23T15:44:11' / Date this file was created.                   \r\nCOMMENT -- blind solver parameters: --                                          \r\nCOMMENT Index(0): /home/ucup/astrometry-index/index-4207-11.fits                \r\nCOMMENT Index(1): /home/ucup/astrometry-index/index-4207-10.fits                \r\nCOMMENT Index(2): /home/ucup/astrometry-index/index-4207-09.fits                \r\nCOMMENT Index(3): /home/ucup/astrometry-index/index-4207-08.fits                \r\nCOMMENT Index(4): /home/ucup/astrometry-index/index-4207-07.fits                \r\nCOMMENT Index(5): /home/ucup/astrometry-index/index-4207-06.fits                \r\nCOMMENT Index(6): /home/ucup/astrometry-index/index-4207-05.fits                \r\nCOMMENT Index(7): /home/ucup/astrometry-index/index-4207-04.fits                \r\nCOMMENT Index(8): /home/ucup/astrometry-index/index-4207-03.fits                \r\nCOMMENT Index(9): /home/ucup/astrometry-index/index-4207-02.fits                \r\nCOMMENT Index(10): /home/ucup/astrometry-index/index-4207-01.fits               \r\nCOMMENT Index(11): /home/ucup/astrometry-index/index-4207-00.fits               \r\nCOMMENT Index(12): /home/ucup/astrometry-index/index-4206-11.fits               \r\nCOMMENT Index(13): /home/ucup/astrometry-index/index-4206-10.fits               \r\nCOMMENT Index(14): /home/ucup/astrometry-index/index-4206-09.fits               \r\nCOMMENT Index(15): /home/ucup/astrometry-index/index-4206-08.fits               \r\nCOMMENT Index(16): /home/ucup/astrometry-index/index-4206-07.fits               \r\nCOMMENT Index(17): /home/ucup/astrometry-index/index-4206-06.fits               \r\nCOMMENT Index(18): /home/ucup/astrometry-index/index-4206-05.fits               \r\nCOMMENT Index(19): /home/ucup/astrometry-index/index-4206-04.fits               \r\nCOMMENT Index(20): /home/ucup/astrometry-index/index-4206-03.fits               \r\nCOMMENT Index(21): /home/ucup/astrometry-index/index-4206-02.fits               \r\nCOMMENT Index(22): /home/ucup/astrometry-index/index-4206-01.fits               \r\nCOMMENT Index(23): /home/ucup/astrometry-index/index-4206-00.fits               \r\nCOMMENT Index(24): /home/ucup/astrometry-index/index-4205-11.fits               \r\nCOMMENT Index(25): /home/ucup/astrometry-index/index-4205-10.fits               \r\nCOMMENT Index(26): /home/ucup/astrometry-index/index-4205-09.fits               \r\nCOMMENT Index(27): /home/ucup/astrometry-index/index-4205-08.fits               \r\nCOMMENT Index(28): /home/ucup/astrometry-index/index-4205-07.fits               \r\nCOMMENT Index(29): /home/ucup/astrometry-index/index-4205-06.fits               \r\nCOMMENT Index(30): /home/ucup/astrometry-index/index-4205-05.fits               \r\nCOMMENT Index(31): /home/ucup/astrometry-index/index-4205-04.fits               \r\nCOMMENT Index(32): /home/ucup/astrometry-index/index-4205-03.fits               \r\nCOMMENT Index(33): /home/ucup/astrometry-index/index-4205-02.fits               \r\nCOMMENT Index(34): /home/ucup/astrometry-index/index-4205-01.fits               \r\nCOMMENT Index(35): /home/ucup/astrometry-index/index-4205-00.fits               \r\nCOMMENT Field name:                                                             \r\nCOMMENT   /tmp/ehlib-S001-R001-C001-V_44mYCD_astrometry.net/ehlib-S0            \r\nCOMMENT   01-R001-C001-V.axy                                                    \r\nCOMMENT Field scale lower: 0.0878906 arcsec/pixel                               \r\nCOMMENT Field scale upper: 158.203 arcsec/pixel                                 \r\nCOMMENT X col name: X                                                           \r\nCOMMENT Y col name: Y                                                           \r\nCOMMENT Start obj: 0                                                            \r\nCOMMENT End obj: 10                                                             \r\nCOMMENT Solved_in: (null)                                                       \r\nCOMMENT Solved_out:                                                             \r\nCOMMENT   /tmp/ehlib-S001-R001-C001-V_44mYCD_astrometry.net/ehlib-S0            \r\nCOMMENT   01-R001-C001-V.solved                                                 \r\nCOMMENT Solvedserver: (null)                                                    \r\nCOMMENT Parity: 2                                                               \r\nCOMMENT Codetol: 0.01                                                           \r\nCOMMENT Verify pixels: 1 pix                                                    \r\nCOMMENT Maxquads: 0                                                             \r\nCOMMENT Maxmatches: 0                                                           \r\nCOMMENT Cpu limit: 300.000000 s                                                 \r\nCOMMENT Time limit: 0 s                                                         \r\nCOMMENT Total time limit: 0 s                                                   \r\nCOMMENT Total CPU limit: 300.000000 s                                           \r\nCOMMENT Tweak: yes                                                              \r\nCOMMENT Tweak AB order: 2                                                       \r\nCOMMENT Tweak ABP order: 2                                                      \r\nCOMMENT --                                                                      \r\nCOMMENT -- properties of the matching quad: --                                  \r\nCOMMENT index id: 4207                                                          \r\nCOMMENT index healpix: 10                                                       \r\nCOMMENT index hpnside: 1                                                        \r\nCOMMENT log odds: 401.034                                                       \r\nCOMMENT odds: 1.46816e+174                                                      \r\nCOMMENT quadno: 277161                                                          \r\nCOMMENT stars: 143443,143491,143497,143493                                      \r\nCOMMENT field: 3,7,9,8                                                          \r\nCOMMENT code error: 0.00154222                                                  \r\nCOMMENT nmatch: 48                                                              \r\nCOMMENT nconflict: 0                                                            \r\nCOMMENT nfield: 817                                                             \r\nCOMMENT nindex: 50                                                              \r\nCOMMENT scale: 0.724706 arcsec/pix                                              \r\nCOMMENT parity: 1                                                               \r\nCOMMENT quads tried: 102                                                        \r\nCOMMENT quads matched: 8                                                        \r\nCOMMENT quads verified: 7                                                       \r\nCOMMENT objs tried: 10                                                          \r\nCOMMENT cpu time: 0.001067                                                      \r\nCOMMENT --                                                                      \r\nCOMMENT                                                                         \r\nCOMMENT --End of Astrometry.net WCS--                                           \r\nCOMMENT --(Put in by the new-wcs program)--                                     \r\nCOMMENT                                                                         \r\n```\r\n\r\nastrometry version 0.55\r\nlemon version v0.3-21-g2585cd0\r\n"},"comment":{"url":"https://api.github.com/repos/vterron/lemon/issues/comments/118936359","html_url":"https://github.com/vterron/lemon/issues/64#issuecomment-118936359","issue_url":"https://api.github.com/repos/vterron/lemon/issues/64","id":118936359,"user":{"login":"jorgegocre","id":12234301,"avatar_url":"https://avatars.githubusercontent.com/u/12234301?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgegocre","html_url":"https://github.com/jorgegocre","followers_url":"https://api.github.com/users/jorgegocre/followers","following_url":"https://api.github.com/users/jorgegocre/following{/other_user}","gists_url":"https://api.github.com/users/jorgegocre/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgegocre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgegocre/subscriptions","organizations_url":"https://api.github.com/users/jorgegocre/orgs","repos_url":"https://api.github.com/users/jorgegocre/repos","events_url":"https://api.github.com/users/jorgegocre/events{/privacy}","received_events_url":"https://api.github.com/users/jorgegocre/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T17:44:21Z","updated_at":"2015-07-06T17:44:21Z","body":"Something very similar has happen to me too.\r\n\r\n\r\n>> Making sure the 5 input paths are FITS images...\r\n>> 100%[======================================================================>]\r\nINFO: Listing raw frames [montage_wrapper.wrappers]\r\nINFO: Computing optimal header [montage_wrapper.wrappers]\r\nTraceback (most recent call last):\r\n  File \"/opt/cesga//lemon-0.2.0/lemon\", line 136, in <module>\r\n    module.main(args)\r\n  File \"/mnt/EMC/Optcesga_SVG/opt/cesga/lemon-0.2.0/mosaic.py\", line 302, in main\r\n    montage.mosaic(input_dir, output_dir, **kwargs)\r\n  File \"/opt/cesga/python2/python-2.7.3/build/lib/python2.7/site-packages/montage_wrapper/wrappers.py\", line 534, in mosaic\r\n    m.mMakeHdr(images_raw_all_tbl, header_hdr)\r\n  File \"/opt/cesga/python2/python-2.7.3/build/lib/python2.7/site-packages/montage_wrapper/commands.py\", line 1468, in mMakeHdr\r\n    return status.parse_struct(\"mMakeHdr\", p.stdout.read().strip())\r\n  File \"/opt/cesga/python2/python-2.7.3/build/lib/python2.7/site-packages/montage_wrapper/status.py\", line 33, in parse_struct\r\n    result = Struct(command, string)\r\n  File \"/opt/cesga/python2/python-2.7.3/build/lib/python2.7/site-packages/montage_wrapper/status.py\", line 70, in __init__\r\n    raise MontageError(\"%s: %s\" % (command, self.msg))\r\nmontage_wrapper.status.MontageError: mMakeHdr: Invalid table file: /scratch/2571757.1.interactive/montage_mosaic_tmpKikSYC_LEMON_7697_mosaic_input_6vffRY/images_raw_all.tbl\r\nINFO: Deleting work directory /scratch/2571757.1.interactive/montage_mosaic_tmpKikSYC_LEMON_7697_mosaic_input_6vffRY [montage_wrapper.wrappers]"}}