{"action":"closed","issue":{"url":"https://api.github.com/repos/desihub/specsim/issues/16","repository_url":"https://api.github.com/repos/desihub/specsim","labels_url":"https://api.github.com/repos/desihub/specsim/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/desihub/specsim/issues/16/comments","events_url":"https://api.github.com/repos/desihub/specsim/issues/16/events","html_url":"https://github.com/desihub/specsim/issues/16","id":117014030,"number":16,"title":"Use other packages for generic re-usable operations","user":{"login":"dkirkby","id":185007,"avatar_url":"https://avatars.githubusercontent.com/u/185007?v=3","gravatar_id":"","url":"https://api.github.com/users/dkirkby","html_url":"https://github.com/dkirkby","followers_url":"https://api.github.com/users/dkirkby/followers","following_url":"https://api.github.com/users/dkirkby/following{/other_user}","gists_url":"https://api.github.com/users/dkirkby/gists{/gist_id}","starred_url":"https://api.github.com/users/dkirkby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkirkby/subscriptions","organizations_url":"https://api.github.com/users/dkirkby/orgs","repos_url":"https://api.github.com/users/dkirkby/repos","events_url":"https://api.github.com/users/dkirkby/events{/privacy}","received_events_url":"https://api.github.com/users/dkirkby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-15T20:02:04Z","updated_at":"2016-02-20T01:18:15Z","closed_at":"2016-02-20T01:18:15Z","body":"There are several generic operations implemented in this package that are not simulation specific, and potentially useful as independent re-usable components:\r\n* interpolation of input tabulated functions (source SED, sky background, extinction, etc) to the simulation wavelength grid.\r\n* downsampling of simulated results from the high-resolution internal wavelength grid to the output grid.\r\n* weighted stacking of the per-camera predictions to simulate a coadd.\r\n* redshifting an SED.\r\n* renormalizing an SED to a specified magnitude in a specified pass band.\r\n\r\nThe first 4 of these are already implemented in the [speclite package](http://speclite.readthedocs.org/en/latest/overview.html), which was partly created with this migration in mind. The last item involves one of the following:\r\n* moving the filter definitions and synthetic magnitude calculation into `speclite`.\r\n* using an existing package that already does synthetic magnitude calculations.\r\n\r\nUsing an existing package is preferable as long as it does not introduce any additional dependencies or restrict the versions of python, numpy, etc, that are supported by `desisim`.  Are there any candidates?"}}