{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1641","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1641/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1641/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1641/events","html_url":"https://github.com/sunpy/sunpy/issues/1641","id":126956280,"number":1641,"title":"Case sensitivity of fits file headers. ","user":{"login":"MSKirk","id":5497326,"avatar_url":"https://avatars.githubusercontent.com/u/5497326?v=3","gravatar_id":"","url":"https://api.github.com/users/MSKirk","html_url":"https://github.com/MSKirk","followers_url":"https://api.github.com/users/MSKirk/followers","following_url":"https://api.github.com/users/MSKirk/following{/other_user}","gists_url":"https://api.github.com/users/MSKirk/gists{/gist_id}","starred_url":"https://api.github.com/users/MSKirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSKirk/subscriptions","organizations_url":"https://api.github.com/users/MSKirk/orgs","repos_url":"https://api.github.com/users/MSKirk/repos","events_url":"https://api.github.com/users/MSKirk/events{/privacy}","received_events_url":"https://api.github.com/users/MSKirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-15T20:53:52Z","updated_at":"2016-01-15T21:33:38Z","closed_at":null,"body":"The fits header of a set of processed AIA images are all capitalized. This causes a error in the map object when trying to view the file. I am currently working on a solution to this. \r\n\r\n```python\r\nIn [9]: this_map.peek()\r\nERROR: ValueError: 'ARCSEC' did not parse as unit: At col 0, ARCSEC is not a valid unit. Did you mean Yarcsec, Zarcsec, arcsec, yarcsec or zarcsec? [astropy.units.core]\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-9-2a7c4bccb5b2> in <module>()\r\n----> 1 this_map.peek()\r\n\r\n/Users/mskirk/anaconda/lib/python2.7/site-packages/sunpy/map/mapbase.pyc in peek(self, draw_limb, draw_grid, colorbar, basic_plot, **matplot_args)\r\n   1266         # Normal plot\r\n   1267         else:\r\n-> 1268             axes = wcsaxes_compat.gca_wcs(self.wcs)\r\n   1269 \r\n   1270         im = self.plot(axes=axes, **matplot_args)\r\n\r\n/Users/mskirk/anaconda/lib/python2.7/site-packages/sunpy/map/mapbase.pyc in wcs(self)\r\n    200         # Make these a quantity array to prevent the numpy setting element of\r\n    201         # array with sequence error.\r\n--> 202         w2.wcs.cdelt = u.Quantity(self.scale)\r\n    203         w2.wcs.crval = u.Quantity(self.reference_coordinate)\r\n    204         w2.wcs.ctype = self.coordinate_system\r\n\r\n/Users/mskirk/anaconda/lib/python2.7/site-packages/sunpy/map/mapbase.pyc in scale(self)\r\n    437         \"\"\"Image scale along the x and y axes in units/pixel (cdelt1/2)\"\"\"\r\n    438         #TODO: Fix this if only CDi_j matrix is provided\r\n--> 439         return Pair(self.meta.get('cdelt1', 1.) * self.units.x / u.pixel,\r\n    440                     self.meta.get('cdelt2', 1.) * self.units.y / u.pixel)\r\n    441 \r\n\r\n/Users/mskirk/anaconda/lib/python2.7/site-packages/sunpy/map/mapbase.pyc in units(self)\r\n    443     def units(self):\r\n    444         \"\"\"Image coordinate units along the x and y axes (cunit1/2).\"\"\"\r\n--> 445         return Pair(u.Unit(self.meta.get('cunit1', 'arcsec')),\r\n    446                     u.Unit(self.meta.get('cunit2', 'arcsec')))\r\n    447 \r\n\r\n/Users/mskirk/anaconda/lib/python2.7/site-packages/astropy/units/core.pyc in __call__(self, s, represents, format, namespace, doc, parse_strict)\r\n   1788                            .format(s, format_clause, six.text_type(e)))\r\n   1789                     if parse_strict == 'raise':\r\n-> 1790                         raise ValueError(msg)\r\n   1791                     elif parse_strict == 'warn':\r\n   1792                         warnings.warn(msg, UnitsWarning)\r\n\r\nValueError: 'ARCSEC' did not parse as unit: At col 0, ARCSEC is not a valid unit. Did you mean Yarcsec, Zarcsec, arcsec, yarcsec or zarcsec?\r\n```"},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/172099402","html_url":"https://github.com/sunpy/sunpy/issues/1641#issuecomment-172099402","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1641","id":172099402,"user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T21:33:38Z","updated_at":"2016-01-15T21:33:38Z","body":"hmm yeah, I wonder if there is anything in the standard restricting the case of the 'CUNIT' keywords. \r\n\r\nIf the FITS standard is always mono-case then forcing the issue wouldn't be a problem otherwise you might have to fix your data ;)"}}