{"action":"closed","issue":{"url":"https://api.github.com/repos/vterron/lemon/issues/43","labels_url":"https://api.github.com/repos/vterron/lemon/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/vterron/lemon/issues/43/comments","events_url":"https://api.github.com/repos/vterron/lemon/issues/43/events","html_url":"https://github.com/vterron/lemon/issues/43","id":53843307,"number":43,"title":"mosaic — explain what's wrong if the images have no WCS","user":{"login":"vterron","id":1575425,"avatar_url":"https://avatars.githubusercontent.com/u/1575425?v=3","gravatar_id":"","url":"https://api.github.com/users/vterron","html_url":"https://github.com/vterron","followers_url":"https://api.github.com/users/vterron/followers","following_url":"https://api.github.com/users/vterron/following{/other_user}","gists_url":"https://api.github.com/users/vterron/gists{/gist_id}","starred_url":"https://api.github.com/users/vterron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vterron/subscriptions","organizations_url":"https://api.github.com/users/vterron/orgs","repos_url":"https://api.github.com/users/vterron/repos","events_url":"https://api.github.com/users/vterron/events{/privacy}","received_events_url":"https://api.github.com/users/vterron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vterron/lemon/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"vterron","id":1575425,"avatar_url":"https://avatars.githubusercontent.com/u/1575425?v=3","gravatar_id":"","url":"https://api.github.com/users/vterron","html_url":"https://github.com/vterron","followers_url":"https://api.github.com/users/vterron/followers","following_url":"https://api.github.com/users/vterron/following{/other_user}","gists_url":"https://api.github.com/users/vterron/gists{/gist_id}","starred_url":"https://api.github.com/users/vterron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vterron/subscriptions","organizations_url":"https://api.github.com/users/vterron/orgs","repos_url":"https://api.github.com/users/vterron/repos","events_url":"https://api.github.com/users/vterron/events{/privacy}","received_events_url":"https://api.github.com/users/vterron/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-09T08:09:28Z","updated_at":"2015-01-21T12:51:51Z","closed_at":"2015-01-21T12:51:51Z","body":"If none of the FITS images given to `mosaic` have WCS information in their headers (in other words, if they have not been astrometrically solved), the error message (`mMakeHdr: Invalid table file`) is rather confusing and makes it almost impossible, particularly for a novice, to understand what may be failing:\r\n\r\n    vterron@iaa:~/ngc2264$ lemon mosaic ferM_005* ngc2264-mosaic.fits\r\n    >> Making sure the 10 input paths are FITS images...\r\n    >> 100%[======================================================================>]\r\n    INFO: Listing raw frames [montage_wrapper.wrappers]\r\n    INFO: Computing optimal header [montage_wrapper.wrappers]\r\n    Traceback (most recent call last):\r\n      File \"/home/vterron/lemon/lemon\", line 136, in <module>\r\n        module.main(args)\r\n      File \"/home/vterron/lemon/mosaic.py\", line 257, in main\r\n        montage.mosaic(input_dir, output_dir, **kwargs)\r\n      File \"/home/vterron/.local/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 \"/home/vterron/.local/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 \"/home/vterron/.local/lib/python2.7/site-packages/montage_wrapper/status.py\", line 33, in parse_struct\r\n        result = Struct(command, string)\r\n      File \"/home/vterron/.local/lib/python2.7/site-packages/montage_wrapper/status.py\", line 70, in __init__\r\n        raise MontageError(\"%s: %s\" % (command, self.msg))\r\n    montage_wrapper.status.MontageError: mMakeHdr: Invalid table file: /tmp/montage_mosaic_tmpqIGPiH_LEMON_26615_mosaic_input_ipM_2B/images_raw_all.tbl\r\n    INFO: Deleting work directory /tmp/montage_mosaic_tmpqIGPiH_LEMON_26615_mosaic_input_ipM_2B [montage_wrapper.wrappers]\r\n    vterron@iaa:~/ngc2264$\r\n\r\nThis should be improved, ideally explaining to the user that `astrometry` must be run first.\r\n"}}