Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting WebSky extragalactic models to PySM 3 #120

Closed
zonca opened this issue Jun 21, 2022 · 17 comments
Closed

Porting WebSky extragalactic models to PySM 3 #120

zonca opened this issue Jun 21, 2022 · 17 comments
Assignees

Comments

@zonca
Copy link
Member

zonca commented Jun 21, 2022

Currently the WebSky models are included in the so_pysm_models package:

https://so-pysm-models.readthedocs.io/en/latest/models.html#websky

The package is already based on PySM 3, so it should not be too difficult to move the functionality in PySM 3 proper.

However, it would be useful to first check if there is any update in WebSky itself, like maps from new simulations, or maps at resolution higher than N_side 4096.

@marcelo-alvarez has there been any update? or is there an update coming soon we should wait for?

/cc @giuspugl @brandonshensley @seclark

@zonca zonca self-assigned this Jun 21, 2022
@marcelo-alvarez
Copy link

@zonca yes there should be an update coming soon, which @xzackli is coordinating / running. There should be the addition of radio sources, update of tSZ and CIB, and likely N_side of 8192.

@zonca
Copy link
Member Author

zonca commented Aug 17, 2022

@xzackli do you have an estimate of when the new websky will be available?

@xzackli
Copy link
Contributor

xzackli commented Aug 22, 2022

@zonca We have new maps, and I"d like to set a target of Wednesday, August 24. Most of it is on disk at NERSC -- I briefly looked into writing up a pysm PR, do you have suggestions?

@zonca
Copy link
Member Author

zonca commented Aug 22, 2022

@xzackli we should mostly just port from so_pysm_models, adapting the code for the new maps:

https://github.com/simonsobs/so_pysm_models/blob/master/so_pysm_models/extragalactic.py

also the maps should be in the pysm repository at NERSC:

/global/project/projectdirs/cmb/www/pysm-data

@xzackli
Copy link
Contributor

xzackli commented Aug 24, 2022

Seems sensible, looking at this now.

@xzackli
Copy link
Contributor

xzackli commented Aug 24, 2022

@zonca a quick clarifying question: of course I don't have write permission to /global/project/projectdirs/cmb/www/pysm-data, should I just direct you to a location in scratch for you to copy over?

@zonca
Copy link
Member Author

zonca commented Aug 24, 2022

@zonca a quick clarifying question: of course I don't have write permission to /global/project/projectdirs/cmb/www/pysm-data, should I just direct you to a location in scratch for you to copy over?

yes, right

@zonca
Copy link
Member Author

zonca commented Sep 12, 2022

@xzackli any update on this?

@giuspugl
Copy link
Contributor

giuspugl commented Sep 20, 2022

we have released IQU maps of Radio sources painted onto Websky halos, here
I 'd say that for time being as we 're supposed to run several simulations for SO and Litebird asap, we can employ the approach we have previously used for CIB, i.e. interpolating maps at different frequencies , see https://so-pysm-models.readthedocs.io/en/latest/models.html#websky.
Actually, we can allow a finer interpolation than the CIB one as there're ~40 maps in the range from 18 - 900 GHz all at nside= 4096 reso. Not sure though how much is needed to got for radio sources up to 900 GHz.
How does that sound ?

@zonca
Copy link
Member Author

zonca commented Sep 20, 2022

sure @giuspugl, https://pysm3.readthedocs.io/en/latest/api/pysm3.InterpolatingComponent.html#pysm3.InterpolatingComponent is already in PySM 3.

Does this work use the new Websky release? Do newer CIB maps are available yet?

@xzackli
Copy link
Contributor

xzackli commented Sep 20, 2022

We have CIB frequency maps at

/global/cscratch1/sd/xzackli/cib_sources/

and radio maps in the directory Giuseppe listed. I'm still porting over the old pysm code to PySM3 by inheriting from the InterpolatingComponent, but I was worried about validating these CIB maps.

@zonca
Copy link
Member Author

zonca commented Sep 20, 2022

thanks @xzackli, the so-pysm-models code was already based on the PySM3 interpolating component, so changes should be minor.

@giuspugl
Copy link
Contributor

giuspugl commented Sep 21, 2022

@xzackli What are the differences of the new CIB maps you're validating,wrt the ones employed here, which i believe come from WEbsky Stein et al.2020 ?

Does this work use the new Websky release?

@zonca ain't sure what you mean here by new release, yes they used the relatively recent Websky halo distribution from Stein et al.2020 .
To my knowledge there is just one halo light-cone produced by websky abd we painted clusters, IR and radio galaxies on top of those haloes .

@xzackli
Copy link
Contributor

xzackli commented Sep 21, 2022

They have a different frequency normalization (as discussed in WebSky-CITA/XGPaint.jl#7), which I believe behave a bit better in terms of redshift evolution. There's not much else, but I also want to check on the frequency map power spectra and maybe adjust some parameters there.

@giuspugl
Copy link
Contributor

I believe behave a bit better in terms of redshift evolution

Thanks @xzackli ! I checked the redshift evolution by including the new normalization and it left kinda the same the redshift evolution, It's the Shang et al. 2012 prescription that is mostly affecting that..

@zonca
Copy link
Member Author

zonca commented Sep 21, 2022

ok, thanks @xzackli so I'll wait for a pull request, I can then also copy all the input data to the pysm-data folder at NERSC.

@zonca
Copy link
Member Author

zonca commented Nov 6, 2022

see #129

@zonca zonca closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants