You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe it is a good idea, as it is now, to have the Model subclasses take care of the bandpass integration, see #9
However, I think it is convenient to have a Instrument class with a similar interface to PySM 2, it is a good way of grouping the instrument properties together that are otherwise just independent arrays like fwhms and bandpasses.
We can still provide the same observe method that calls get_integrated_emission of Sky and passes bandpasses.
Smoothing instead can just be implemented inside Instrument, I don't think there is any advantage in implementing it inside Model.
Finally Instrument will be able to generate white noise maps and also optionally write the outputs to disk. So it should process one channel at a time.
The text was updated successfully, but these errors were encountered:
zonca
changed the title
Design of Instrument class
Design of the Instrument class
Jan 29, 2019
Possibly each channel is a dictionary with predefined keys, otherwise implement a Class
Instrument.generate_noise_map, gets a seed (optional) generates 1 noise map
we also need to have a simple hitmap weighted white noise map.
Instrument.generate_noise_realizations(number, sky=None) loop through channels and for let's say 100 realizations create noise maps and call the write_output with a suitable filename template.
need to specify a bandpass_units, for example if we have tophat assuming K_CMB we need to compute the conversion factor fromK_RJtoK_CMB and apply it to the dimensionless weights
I believe it is a good idea, as it is now, to have the
Model
subclasses take care of the bandpass integration, see #9However, I think it is convenient to have a
Instrument
class with a similar interface to PySM 2, it is a good way of grouping the instrument properties together that are otherwise just independent arrays likefwhms
andbandpasses
.We can still provide the same
observe
method that callsget_integrated_emission
ofSky
and passes bandpasses.Smoothing instead can just be implemented inside
Instrument
, I don't think there is any advantage in implementing it insideModel
.Finally
Instrument
will be able to generate white noise maps and also optionally write the outputs to disk. So it should process one channel at a time.The text was updated successfully, but these errors were encountered: