zonca / pico-simulations

Simulations for PICO using TOAST
0 stars 2 forks source link

New PICO focalplane for full focal plane simulations #3

Closed zonca closed 6 years ago

zonca commented 6 years ago

@tskisner @jdborrill, are the new features of the focalplane generation for PICO finalized? Can you generate the focalplane for the noise sims (or explain me how to generate it)?

tskisner commented 6 years ago

Hi @zonca, work in progress, should be done in about a day.

zonca commented 6 years ago

https://github.com/hpc4cmb/toast-pico

$>  toast_pico_hardware.py --bands params/bands.txt --pixels
params/pixels.txt --fov 12.15 --plot

which will dump 2 different testing formats (yaml and json, am investigating hdf5 now) and make some pretty plots. To dump pickle files compatible with the toast example scripts, use a different tool:

$>  toast_pico_pkl.py --bands params/bands.txt --pixels
params/pixels.txt --fov 12.15
tskisner commented 6 years ago

Thanks for posting it in a better place. I still need to apply the 30 degree rotation of the whole focalplane (so that it is correct for the scan direction) but that is a detail for now.

zonca commented 6 years ago

@tskisner is the 30 deg rotation done?

tskisner commented 6 years ago

Sorry for the delay, just pushed that change to toast-pico so that the detectors are in a line along the scan direction (or should be). If you do a few-second sim and see the detector hits not trailing each other, then just change that overall rotation angle: https://github.com/hpc4cmb/toast-pico/blob/master/toast_pico/hardware.py#L145

zonca commented 6 years ago

@tskisner here is 3.8 sec of band 9, how do I tell?

pico_4sec_hitmap

tskisner commented 6 years ago

Sorry for not being more clear. I ran the toast_satellite_sim.py script with the central GHI wafer (band 21), for obs=0.01 and nside 2048. Then I plotted the hit map with:

hp.gnomview(hits, rot=(-95.0, -0.3, 0.0), min=0.0, max=10.0, reso=1.0)

And here is the result: hits So from this you can see that he detectors are aligned along the scan direction. So I think we are good to go :-)

zonca commented 6 years ago

ok, good thanks