{"action":"created","issue":{"url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/218","labels_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/218/comments","events_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/218/events","html_url":"https://github.com/publiclab/spectral-workbench/issues/218","id":113497731,"number":218,"title":"Feature Request: Export Spectral Data in Single nm steps (i.e., 340, 341, 342)","user":{"login":"JJCone","id":12819950,"avatar_url":"https://avatars.githubusercontent.com/u/12819950?v=3","gravatar_id":"","url":"https://api.github.com/users/JJCone","html_url":"https://github.com/JJCone","followers_url":"https://api.github.com/users/JJCone/followers","following_url":"https://api.github.com/users/JJCone/following{/other_user}","gists_url":"https://api.github.com/users/JJCone/gists{/gist_id}","starred_url":"https://api.github.com/users/JJCone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJCone/subscriptions","organizations_url":"https://api.github.com/users/JJCone/orgs","repos_url":"https://api.github.com/users/JJCone/repos","events_url":"https://api.github.com/users/JJCone/events{/privacy}","received_events_url":"https://api.github.com/users/JJCone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T03:12:03Z","updated_at":"2015-11-04T16:37:02Z","closed_at":null,"body":"I'm trying to convert the spectral data to cone receptor activation in the retina. The cone fundamentals are rated in single nm steps but the spectral data (when export as CSV) comes out in weird step sizes. "},"comment":{"url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/comments/153785655","html_url":"https://github.com/publiclab/spectral-workbench/issues/218#issuecomment-153785655","issue_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/218","id":153785655,"user":{"login":"JJCone","id":12819950,"avatar_url":"https://avatars.githubusercontent.com/u/12819950?v=3","gravatar_id":"","url":"https://api.github.com/users/JJCone","html_url":"https://github.com/JJCone","followers_url":"https://api.github.com/users/JJCone/followers","following_url":"https://api.github.com/users/JJCone/following{/other_user}","gists_url":"https://api.github.com/users/JJCone/gists{/gist_id}","starred_url":"https://api.github.com/users/JJCone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJCone/subscriptions","organizations_url":"https://api.github.com/users/JJCone/orgs","repos_url":"https://api.github.com/users/JJCone/repos","events_url":"https://api.github.com/users/JJCone/events{/privacy}","received_events_url":"https://api.github.com/users/JJCone/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T16:37:01Z","updated_at":"2015-11-04T16:37:01Z","body":"Thanks for your response\n\nI didn't realize the data was created by measuring across pixels, but that\nmakes sense since you are spreading the light across the surface of the\nwebcam. Perhaps then the easiest way to get the data into nM sized steps\nwould be to create a rough estimate of the intensity at each nM of\nwavelength by taking a weighted average of nearby pixels.\n\nWhile not entirely accurate, I did come up with one workaround that worked\nout okay for teaching purposes. I exported the data as CSV and dumped it in\nMATLAB. I then down sampled the cone fundamentals (which range from 400 to\n700 nM) a little bit so the resolution would more closely match the\nresolution of the CSV file across the same wavelength range. At that point\nyou just take the dot product of the spectral intensity by the Cone\nfundamentals to end up with a number that corresponds (approximately) to\nthe activation of each of the Cones.\n\nThe one thought that comes up here is that it would be handy to be able to\nselect the range of wavelengths you wanted in your CSV file prior to\nexport.\n\nThanks again\n\nOn Wed, Nov 4, 2015 at 9:35 AM, Jeffrey Warren <notifications@github.com>\nwrote:\n\n> It currently comes out with one datum per pixel. I'm not sure what's the\n> best way to do your request -- should it be an export option, or perhaps\n> some kind of API macro? Currently the SVG export is defined in the API\n> itself, in\n>\n> https://github.com/publiclab/spectral-workbench/blob/master/app/assets/javascripts/spectralworkbench/SpectralWorkbench.API.Core.js#L54\n>\n> Perhaps we could move that into the Spectrum model and add another for your\n> type of export?\n>\n> On Mon, Oct 26, 2015 at 11:12 PM, JJCone <notifications@github.com> wrote:\n>\n> > I'm trying to convert the spectral data to cone receptor activation in\n> the\n> > retina. The cone fundamentals are rated in single nm steps but the\n> spectral\n> > data (when export as CSV) comes out in weird step sizes.\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <https://github.com/publiclab/spectral-workbench/issues/218>.\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/publiclab/spectral-workbench/issues/218#issuecomment-153765159>\n> .\n>\n\n\n\n-- \nJackson J. Cone, Ph.D.\nPostdoctoral Scholar\nMaunsell Lab\nUniversity of Chicago, Dept. of Neurobiology\n"}}