{"action":"opened","issue":{"url":"https://api.github.com/repos/NuSTAR/nustar_pysolar/issues/36","repository_url":"https://api.github.com/repos/NuSTAR/nustar_pysolar","labels_url":"https://api.github.com/repos/NuSTAR/nustar_pysolar/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/NuSTAR/nustar_pysolar/issues/36/comments","events_url":"https://api.github.com/repos/NuSTAR/nustar_pysolar/issues/36/events","html_url":"https://github.com/NuSTAR/nustar_pysolar/issues/36","id":241784217,"number":36,"title":"Reversed map axes for sswidl sunpos files","user":{"login":"ianan","id":7059363,"avatar_url":"https://avatars3.githubusercontent.com/u/7059363?v=3","gravatar_id":"","url":"https://api.github.com/users/ianan","html_url":"https://github.com/ianan","followers_url":"https://api.github.com/users/ianan/followers","following_url":"https://api.github.com/users/ianan/following{/other_user}","gists_url":"https://api.github.com/users/ianan/gists{/gist_id}","starred_url":"https://api.github.com/users/ianan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianan/subscriptions","organizations_url":"https://api.github.com/users/ianan/orgs","repos_url":"https://api.github.com/users/ianan/repos","events_url":"https://api.github.com/users/ianan/events{/privacy}","received_events_url":"https://api.github.com/users/ianan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T17:14:55Z","updated_at":"2017-07-10T17:14:55Z","closed_at":null,"body":"For a variety of *sunpos.evt files I'm looking at, which have been sunpos converted via sswidl, the axes of the maps in python are reversed. \r\n\r\nThis is due to map.py using the x value of TCDLT from the fits header to define both the x and y pixel size (cdelt1 and cdelt2) and the SSWIDL conversion makes this value negative, i.e.([https://github.com/NuSTAR/nustar_solar/blob/master/util/nustar_convert_to_solar.pro#L113](https://github.com/NuSTAR/nustar_solar/blob/master/util/nustar_convert_to_solar.pro#L113))\r\n\r\nSo a quick solution could be just to use the absolute value in map.py?\r\n`delx = abs(hdr['TCDLT'+xval])`\r\n\r\nLike we do when making maps in sswidl.\r\n\r\n"}}
{"actor":{"display_login":"ianan"}}