{"action":"created","issue":{"url":"https://api.github.com/repos/fujii-team/sif_reader/issues/3","repository_url":"https://api.github.com/repos/fujii-team/sif_reader","labels_url":"https://api.github.com/repos/fujii-team/sif_reader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/fujii-team/sif_reader/issues/3/comments","events_url":"https://api.github.com/repos/fujii-team/sif_reader/issues/3/events","html_url":"https://github.com/fujii-team/sif_reader/issues/3","id":257730221,"number":3,"title":"X calibration ","user":{"login":"khoroshyy","id":1734704,"avatar_url":"https://avatars3.githubusercontent.com/u/1734704?v=4","gravatar_id":"","url":"https://api.github.com/users/khoroshyy","html_url":"https://github.com/khoroshyy","followers_url":"https://api.github.com/users/khoroshyy/followers","following_url":"https://api.github.com/users/khoroshyy/following{/other_user}","gists_url":"https://api.github.com/users/khoroshyy/gists{/gist_id}","starred_url":"https://api.github.com/users/khoroshyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoroshyy/subscriptions","organizations_url":"https://api.github.com/users/khoroshyy/orgs","repos_url":"https://api.github.com/users/khoroshyy/repos","events_url":"https://api.github.com/users/khoroshyy/events{/privacy}","received_events_url":"https://api.github.com/users/khoroshyy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-14T14:00:38Z","updated_at":"2017-09-15T15:00:16Z","closed_at":null,"author_association":"NONE","body":"Hi \r\nCan I ask you to add X calibration to this reader.\r\nI will try to work it out myself have no clue how long it will take me. but you may do it faster, as I will need to learn what is your code doing.\r\nI am attaching two files. One is a single line spectrum. X calibrated in wavelength nanometers. \r\nCalibration information looks like below. polynom coefficients in the first line:  \r\n-----------------------------------------------\r\n# here is the part where X wavelength calibration stored\r\n# 405.184510498139 0.0486615559015733 -3.17780657750795e-07 -1.1864020166803e-10\r\n# 0 1 0 0\r\n# 0 1 0 0\r\n# 422\r\n# 13\r\n# 13\r\n# 1\r\n# 10\r\n# Wavelength6 \r\n---------------------------------------------------\r\n\r\nAnd can be calculated like:\r\n--------------------------------------------------\r\nfrom pylab import *\r\ncal_coeffitients =  array([405.184510498139,\r\n                          0.0486615559015733,\r\n                          -3.17780657750795e-07,\r\n                          -1.1864020166803e-10])\r\npolinom = poly1d(flipud(cal_coeffitients))\r\nwavelength = polinom(arange(1,1025))\r\n -------------------------------------------------\r\nAnother file has data from step and scan measurement, and wavelength calibration for each frame is stored in the comment section on the top of sif file.\r\nThank you.\r\nPetro\r\n\r\n[nd_lum_image_no_glue.zip](https://github.com/fujii-team/sif_reader/files/1303095/nd_lum_image_no_glue.zip)\r\n[raman1.zip](https://github.com/fujii-team/sif_reader/files/1303096/raman1.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/fujii-team/sif_reader/issues/comments/329807804","html_url":"https://github.com/fujii-team/sif_reader/issues/3#issuecomment-329807804","issue_url":"https://api.github.com/repos/fujii-team/sif_reader/issues/3","id":329807804,"user":{"login":"fujiisoup","id":6815844,"avatar_url":"https://avatars2.githubusercontent.com/u/6815844?v=4","gravatar_id":"","url":"https://api.github.com/users/fujiisoup","html_url":"https://github.com/fujiisoup","followers_url":"https://api.github.com/users/fujiisoup/followers","following_url":"https://api.github.com/users/fujiisoup/following{/other_user}","gists_url":"https://api.github.com/users/fujiisoup/gists{/gist_id}","starred_url":"https://api.github.com/users/fujiisoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujiisoup/subscriptions","organizations_url":"https://api.github.com/users/fujiisoup/orgs","repos_url":"https://api.github.com/users/fujiisoup/repos","events_url":"https://api.github.com/users/fujiisoup/events{/privacy}","received_events_url":"https://api.github.com/users/fujiisoup/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T15:00:16Z","updated_at":"2017-09-15T15:00:16Z","author_association":"OWNER","body":"@khoroshyy I am struggling to read raman1.sif.\r\n(nd_lum_image_no_glue.zip seems OK.)\r\n\r\nI am not sure how X-calibrated data is stored inside the .sif file.\r\nHow did you input the calibration data? Your spectrograph automatically attaches it?"}}
{"actor":{"display_login":"fujiisoup"}}