{"action":"created","issue":{"url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/114","labels_url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/114/comments","events_url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/114/events","html_url":"https://github.com/davidh-ssec/polar2grid/issues/114","id":115442149,"number":114,"title":"'cannot execute binary file' error on a Mac","user":{"login":"andyprata","id":8485285,"avatar_url":"https://avatars.githubusercontent.com/u/8485285?v=3","gravatar_id":"","url":"https://api.github.com/users/andyprata","html_url":"https://github.com/andyprata","followers_url":"https://api.github.com/users/andyprata/followers","following_url":"https://api.github.com/users/andyprata/following{/other_user}","gists_url":"https://api.github.com/users/andyprata/gists{/gist_id}","starred_url":"https://api.github.com/users/andyprata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyprata/subscriptions","organizations_url":"https://api.github.com/users/andyprata/orgs","repos_url":"https://api.github.com/users/andyprata/repos","events_url":"https://api.github.com/users/andyprata/events{/privacy}","received_events_url":"https://api.github.com/users/andyprata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/davidh-ssec/polar2grid/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"davidh-ssec","id":1828519,"avatar_url":"https://avatars.githubusercontent.com/u/1828519?v=3","gravatar_id":"","url":"https://api.github.com/users/davidh-ssec","html_url":"https://github.com/davidh-ssec","followers_url":"https://api.github.com/users/davidh-ssec/followers","following_url":"https://api.github.com/users/davidh-ssec/following{/other_user}","gists_url":"https://api.github.com/users/davidh-ssec/gists{/gist_id}","starred_url":"https://api.github.com/users/davidh-ssec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidh-ssec/subscriptions","organizations_url":"https://api.github.com/users/davidh-ssec/orgs","repos_url":"https://api.github.com/users/davidh-ssec/repos","events_url":"https://api.github.com/users/davidh-ssec/events{/privacy}","received_events_url":"https://api.github.com/users/davidh-ssec/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-11-06T06:05:39Z","updated_at":"2015-11-08T11:04:49Z","closed_at":null,"body":"Hi,\r\n\r\nI'm new to polar2grid and I've just downloaded the CSPP_IMAPP_POLAR2GRID_V2.0.tar.gz bundle from here: http://cimss.ssec.wisc.edu/cspp/download/index.php\r\n\r\nI've followed the installation instructions however when I try to run any of the bash scripts I get this error:\r\n```\r\ndyn-49-127-66-246:~ andyprata$ viirs2gtiff.sh \r\n/Users/andyprata/Documents/PhD_2013_2014/python/CIMSS/polar2grid/polar2grid_v_2_0/bin/viirs2gtiff.sh: line 39:\r\n/Users/andyprata/Documents/PhD_2013_2014/python/CIMSS/polar2grid/polar2grid_v_2_0/ShellB3/bin/python: cannot execute binary file\r\n```\r\nI believe I have the polar2grid home path correct:\r\n```\r\ndyn-49-127-66-246:~ andyprata$ echo $POLAR2GRID_HOME \r\n/Users/andyprata/Documents/PhD_2013_2014/python/CIMSS/polar2grid/polar2grid_v_2_0\r\n```\r\n\r\nI've also tried the following combinations to make the bash script executable:\r\n```\r\nchmod 777 viirs2gtiff.sh\r\nsudo chmod 777 viirs2gtiff.sh\r\n```\r\nBut I still get the same 'cannot execute binary file' error.  I'm on a Mac system (OS X 10.10.5 Yosemite) running the bash shell from Terminal.  Any help on this would be much appreciated.\r\n\r\nThanks,\r\n\r\nAndy"},"comment":{"url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/comments/154806100","html_url":"https://github.com/davidh-ssec/polar2grid/issues/114#issuecomment-154806100","issue_url":"https://api.github.com/repos/davidh-ssec/polar2grid/issues/114","id":154806100,"user":{"login":"andyprata","id":8485285,"avatar_url":"https://avatars.githubusercontent.com/u/8485285?v=3","gravatar_id":"","url":"https://api.github.com/users/andyprata","html_url":"https://github.com/andyprata","followers_url":"https://api.github.com/users/andyprata/followers","following_url":"https://api.github.com/users/andyprata/following{/other_user}","gists_url":"https://api.github.com/users/andyprata/gists{/gist_id}","starred_url":"https://api.github.com/users/andyprata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyprata/subscriptions","organizations_url":"https://api.github.com/users/andyprata/orgs","repos_url":"https://api.github.com/users/andyprata/repos","events_url":"https://api.github.com/users/andyprata/events{/privacy}","received_events_url":"https://api.github.com/users/andyprata/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T11:04:48Z","updated_at":"2015-11-08T11:04:48Z","body":"I really appreciate the support on this @davidh-ssec.  I do not need NinJo compatibility and  `pip` ran smoothly after running your suggested command.  I'm still reading through the docs, but what would be a good \"test\" command to see if the code is running properly?  I've tried this but I'm not sure if this means it's working properly:\r\n```\r\nAndrews-MBP:~ andyprata$ p2g_glue viirs gtiff -h\r\nusage: p2g_glue [-h] [-v] [-l LOG_FN] [--debug] [--overwrite]\r\n                [--exit-on-error]\r\n                [--compositor-configs [COMPOSITOR_CONFIGS [COMPOSITOR_CONFIGS ...]]]\r\n                {} {awips,binary,gtiff,hdf5,ninjo}\r\np2g_glue: error: argument frontend: invalid choice: 'viirs' (choose from )\r\n```"}}