{"action":"created","issue":{"url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/10","labels_url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/10/comments","events_url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/10/events","html_url":"https://github.com/cpadavis/weak_sauce/issues/10","id":71699666,"number":10,"title":"write a sauce skimming method","user":{"login":"cpadavis","id":1781988,"avatar_url":"https://avatars.githubusercontent.com/u/1781988?v=3","gravatar_id":"","url":"https://api.github.com/users/cpadavis","html_url":"https://github.com/cpadavis","followers_url":"https://api.github.com/users/cpadavis/followers","following_url":"https://api.github.com/users/cpadavis/following{/other_user}","gists_url":"https://api.github.com/users/cpadavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cpadavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpadavis/subscriptions","organizations_url":"https://api.github.com/users/cpadavis/orgs","repos_url":"https://api.github.com/users/cpadavis/repos","events_url":"https://api.github.com/users/cpadavis/events{/privacy}","received_events_url":"https://api.github.com/users/cpadavis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cpadavis/weak_sauce/labels/DES","name":"DES","color":"fbca04"},{"url":"https://api.github.com/repos/cpadavis/weak_sauce/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/cpadavis/weak_sauce/labels/LSST","name":"LSST","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"cpadavis","id":1781988,"avatar_url":"https://avatars.githubusercontent.com/u/1781988?v=3","gravatar_id":"","url":"https://api.github.com/users/cpadavis","html_url":"https://github.com/cpadavis","followers_url":"https://api.github.com/users/cpadavis/followers","following_url":"https://api.github.com/users/cpadavis/following{/other_user}","gists_url":"https://api.github.com/users/cpadavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cpadavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpadavis/subscriptions","organizations_url":"https://api.github.com/users/cpadavis/orgs","repos_url":"https://api.github.com/users/cpadavis/repos","events_url":"https://api.github.com/users/cpadavis/events{/privacy}","received_events_url":"https://api.github.com/users/cpadavis/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-28T20:54:09Z","updated_at":"2015-08-15T08:26:04Z","closed_at":null,"body":"Once we have a model for a DES chip or an LSST chip, we should be able to take a data image and return what the image looks like without the weak sensor anomalies. In other words, we deposit flux from a crazy grid onto a regular one (or just another grid).\r\n\r\nThis is exactly the deposition code Devon wrote his to do, so I ought to be able to adapt it directly. Alternatively, I'm sure I can fudge the current deposition code to work in the inverse."},"comment":{"url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/comments/131314932","html_url":"https://github.com/cpadavis/weak_sauce/issues/10#issuecomment-131314932","issue_url":"https://api.github.com/repos/cpadavis/weak_sauce/issues/10","id":131314932,"user":{"login":"cpadavis","id":1781988,"avatar_url":"https://avatars.githubusercontent.com/u/1781988?v=3","gravatar_id":"","url":"https://api.github.com/users/cpadavis","html_url":"https://github.com/cpadavis","followers_url":"https://api.github.com/users/cpadavis/followers","following_url":"https://api.github.com/users/cpadavis/following{/other_user}","gists_url":"https://api.github.com/users/cpadavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cpadavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpadavis/subscriptions","organizations_url":"https://api.github.com/users/cpadavis/orgs","repos_url":"https://api.github.com/users/cpadavis/repos","events_url":"https://api.github.com/users/cpadavis/events{/privacy}","received_events_url":"https://api.github.com/users/cpadavis/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T08:26:04Z","updated_at":"2015-08-15T08:26:04Z","body":"OK there is a skimming method, called skim_fluxes in FixedIlluminationMover. So while FixedIlluminationMover will by default take a regular gridded stationary_source and deposit it onto given vertices, you can call skim_fluxes(fluxes, vertices) to take the fluxes and deposit those onto the regular grid as defined by vertices and the stationary_source (whose vertices are assumed to be in the same coordinate system). There is a simple example in Examples.ipynb where I demonstrate that you can recover uniform illumination (except on the edges as you might expect) from this method. That is, I take a regular grid with uniform sampling, deposit it onto an irregular grid, and skim the fluxes back onto the irregular grid.\r\n\r\nI am not closing this issue quite yet because I think the code for doing the skimming can be tightened up considerably. Basically, the code was originally meant to do just this task (deposit irregular onto regular grid), but I am doing a sort of 'kludge on top of a kludge' in iterating over each irregular pixel and depositing them individually, when I am fairly certain the r2d code can deposit them all at once. Python for loops add up as the images get bigger!"}}