b-thorne / PySM_public

PySM: Software for simulating the Galactic microwave sky
23 stars 29 forks source link

Make it easier to add a custom emission #21

Closed zonca closed 6 years ago

zonca commented 6 years ago

the add_component allows the user to define a new emission.

This emission only needs to provide a signal(nu, **kwargs) method that returns the emission in uK_RJ, the input component is not a class but a already initialized object, already with the correct nside, pixel_indices and so on.

zonca commented 6 years ago

See for example https://github.com/zonca/pysm_interpolating_component