galsci / mapsims

Map based simulations software for CMB Experiments
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Noise sims in CAR and noise splits #29

Closed msyriac closed 4 years ago

msyriac commented 4 years ago

This is work in progress towards

  1. noise sims in CAR, fixes https://github.com/simonsobs/map_based_simulations/issues/28
  2. noise splits, fixes https://github.com/simonsobs/map_based_simulations/issues/30

Current changes include:

To do:

E.g. invocation:

bounds_deg = [-80.,40.]                                                                                                                                                                       
res_arcmin = 2.0                                                                                                                                                                              
shape,wcs = enmap.band_geometry(np.deg2rad(bounds_deg),res=np.deg2rad(res_arcmin/60.),proj='car')                                                                                             

nsim = mapsims.SONoiseSimulator(                                                                                                                                                              
        shape=shape,                                                                                                                                                                          
        wcs=wcs)                                                                                                                                                                              

ch = mapsims.SOChannel("LA", 145)                                                                                                                                                             
omap = nsim.simulate(ch, output_units="uK_CMB", seed=None)     

Output: 2020-01-10_17:24:29

msyriac commented 4 years ago

@zonca This is ready to be merged once the requirements.txt issue #30 is solved. I will raise a separate issue for this to-do item: "Standardize resolution/WCS choices with mapmaker/TOD codes".

zonca commented 4 years ago

fixed in #32 and extra commits to master to fix readthedocs, can you rebase?

msyriac commented 4 years ago

Done.

zonca commented 4 years ago

@msyriac can you fix the errors on travis? consider also that NERSC /project is down until 1pm PST today, so that could cause some tests to fail.

msyriac commented 4 years ago

I can't even run the tests locally, since the test suite requires pytest-astropy which requires psutil which it doesn't seem can be compiled using Intel compilers. https://github.com/giampaolo/psutil/issues/1664

zonca commented 4 years ago

@msyriac can you just try to fix the variable undefined issue? I can then later pickup from there

msyriac commented 4 years ago

@zonca all the tests pass now.