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

Sources too bright in DC-0 run Radio Galaxies component #23

Open
zonca opened this issue Apr 21, 2023 · 35 comments
Open

Sources too bright in DC-0 run Radio Galaxies component #23

zonca opened this issue Apr 21, 2023 · 35 comments
Assignees

Comments

@zonca
Copy link
Member

zonca commented Apr 21, 2023

My processing mask is already built using the raw point source map so residuals like this are unexpected. I looked at the input maps and that source is very hot, 5.9 K_CMB. The brightest radio source in the Planck 30GHz map is 0.018 K_CMB. Some of this is simply due to the difference in beam size but not 300X. Based on the FWMH, I would expect the source amplitude to scale by 20X.

Sources unexpectedly bright:

  • RA=32.9deg, Dec=-50.6deg
  • RA=58.8deg, Dec=-33.2deg
  • RA=49.5deg, Dec=-51.9deg

image (6)

@zonca zonca self-assigned this Apr 21, 2023
@zonca
Copy link
Member Author

zonca commented Apr 21, 2023

my tests comparing PySM rg1 to Planck was instead fine: https://www.zonca.dev/posts/2022-12-01-radio-galaxies-websky-planck

Investigating

@zonca
Copy link
Member Author

zonca commented Apr 21, 2023

@keskitalo it seems to me that the brightest point source in planck is 0.2 K_CMB, while in DC_0 it is 5 K_CMB, that is a factor of 25 which is not unreasonable given the different beam width.

@zonca
Copy link
Member Author

zonca commented Apr 21, 2023

@zonca
Copy link
Member Author

zonca commented Apr 21, 2023

sorry, I was comparing a Planck galactic source with a Websky extragalactic source.

If I check the brightest source in Websky at 30 Ghz, it has a flux of 455 Jy, instead if I check in the Planck map, Cygnus A has a flux of 64 Jy.

It is about a factor of 7, it seems reasonable to me, but I would like a confirmation from @giuspugl or @xzackli!

In particular if I compare the catalog at 24.5 GHz (the closest to LFL1), I find that the brightest source is more than 600 Jy, then if I compare with the DC-0 input map, I approximately get the same flux, so I think the processing of the maps is correct, please double-check my notebook here:

https://gist.github.com/zonca/3d65698d73c175754895ee517892cad1

@zonca
Copy link
Member Author

zonca commented Apr 21, 2023

@keskitalo forgot to tag you above

@giuspugl
Copy link

i think what we're observing is kinda expected from the Websky models. There is no constrains in the Websky catalogs for the brightest sources to be consistent with what has been observed by Planck.
this is mainly due to the fact that we constructed the websky radio galaxies to be totally _unconstrained _ realizations and to match statistically the properties of radio galaxies (e.g. the number counts and the spectral index of the sources).
As expected there are few sources in the high flux bin and that might result in producing too bright sources, brighter than what we have anthropically observed (credits to @xzackli for this explanation) .
We can work out a hybrid model of rg employing constrained realizations, e.g. the brightest sources observed by Planck and at lower fluxes combine those from Websky.

@keskitalo
Copy link
Member

Thank you all. I would guess that a source that is 7 times brighter than any seen by Planck is a 10-sigma outlier. As long as you think there isn't anything obviously wrong with the radio source component, I'll just push ahead with the simulations.

@jdborrill
Copy link

jdborrill commented Apr 25, 2023 via email

@keskitalo
Copy link
Member

I mostly meant to check if the extreme sources were expected and it sounds like Giuseppe and Zack are not surprised to see them. I should not try to comment on the physics of blazing radio sources like this, beyond pointing out that they must be extreme statistical outliers since we haven't seen anything like them in the Planck maps.

@zonca
Copy link
Member Author

zonca commented Apr 25, 2023

Once @keskitalo masks the bright sources in the mapmaker and the output maps have no artifacts, the downstream pipelines need to mask them and will not be affected much, right?
If this is correct, I would continue using the current model.

The Websky radio galaxy catalog/maps are already published, so we would need to implement into PySM a model which is different from the websky catalog following @giuspugl's idea. We currently have rg1 which is Websky, we need to implement rg2 which is websky with a constrained realization or a high flux cut.

@giuspugl
Copy link

giuspugl commented Apr 25, 2023

we need to implement rg2 which is websky with a constrained realization or a high flux cut.

Sounds good ! The only cons that i see is the lack of correlation between the bright blazars from real data and the sources obtained with websky matter distribution (employed in CIB, SZ, etc.. ). In any case, we have to compromise something...

@jdborrill
Copy link

jdborrill commented Apr 25, 2023 via email

@zonca
Copy link
Member Author

zonca commented Apr 25, 2023

yes, @jdborrill, but I think the downstream pipelines also apply masks

@zonca
Copy link
Member Author

zonca commented Apr 26, 2023

@keskitalo what do you think? do you prefer we work on a rg2 model more well-behaved at high flux?

@giuspugl do you have an estimate of how long it will take to implement rg2?

@keskitalo
Copy link
Member

I suspect the current catalog is unphysical and if we proceed with it, we will be stuck with it for a good while. I don't really mind either way, just as long as we come up with a decision soon.

@jdborrill
Copy link

jdborrill commented Apr 26, 2023 via email

@zonca
Copy link
Member Author

zonca commented Apr 26, 2023

Yes @xzackli replied via email

The behavior of the brightest sources is a plausible place where the websky radio galaxies would be incorrect; most of my validation against data was with a flux cut, so the brightest sources were masked.

These maps and catalogs were made from a resampling process, so I wonder if the brightest bin is just poorly measured due to being such an extreme value. Giuseppe, do you know of a test I could perform to check this?

This is almost certainly not the explanation, but as an aside: I could see an anthropic reason for a biased selection function on our sky so that there isn't a nearby radio galaxy with its jet pointed directly at us.

@jdborrill
Copy link

jdborrill commented Apr 26, 2023 via email

@keskitalo
Copy link
Member

Here is a quick test of masking in the vicinity of the offending source. Instead of just finding the brightest 1% of the pixels in the radio source map, I set a S/N threshold of 30:
image. The old threshold corresponded to something like S/N > 100. Tons of new point sources get masked but, surprisingly, only a small number of new pixels around the bright source are masked.

@jdborrill
Copy link

jdborrill commented Apr 28, 2023 via email

@keskitalo
Copy link
Member

The source mask in the center has a diameter of 30', whereas the FWHM at this frequency is 7.4'. We are already masking the source at 4.8σ.

@jdborrill
Copy link

jdborrill commented Apr 28, 2023 via email

@keskitalo
Copy link
Member

That is why I characterize it as an extreme source

@jdborrill
Copy link

jdborrill commented Apr 28, 2023 via email

@keskitalo
Copy link
Member

Not necessarily true. I'm guessing that the sources were added inside a fixed radius and lowering the threshold even a little captured the last signs of the intense source.

@jdborrill
Copy link

jdborrill commented Apr 28, 2023 via email

@zonca
Copy link
Member Author

zonca commented Apr 29, 2023

It is produced by Websky using a pixel-domain tool that loops through all the sources in the catalog and adds the flux of each source to the right pixel. Zack told me that in the future he would like to do it pre-smoothed to some beam, but for now has single bright pixels.
However, using map2alm_lsq, the smoothed maps look without artifacts.

I think this is the code:
https://github.com/WebSky-CITA/XGPaint.jl/blob/main/src/radio.jl#L254-L256

I skimmed the paper but cannot find more details:
https://arxiv.org/pdf/2110.15357.pdf

@zonca
Copy link
Member Author

zonca commented Apr 29, 2023

if I get the pixels a couple of arcmin from the brightest source, it looks like all flux is in 1 pixel, with other tiny sources around it:
image

@giuspugl
Copy link

giuspugl commented May 3, 2023

thanks a lot @keskitalo and @zonca for looking into this. I think we need to prioritize on this.
i will work on rg2 in these days , and I am planning to use the LFT -5GHz joint catalog of radio sources which employes a constrained realization of sources at about ~ 50 mJy limit, for fluxes S<50 mJy we could employ the Websky sources. how does that sound ?

However, i foresee there might be an inconsistency on how the websky maps have been created. I have a projection pipeline that works with healpy, but it's way slower than the one @xzackli produced in Julia. @xzacli could you please check this ?

@jdborrill
Copy link

jdborrill commented May 3, 2023 via email

@zonca
Copy link
Member Author

zonca commented Jun 4, 2023

@keskitalo can you please share the script you use to create the mask? I would like to have the mask be part of the map based simulation release.

@keskitalo
Copy link
Member

@zonca
Copy link
Member Author

zonca commented Jun 15, 2023

thanks @keskitalo, where are you sourcing the measurements requirements from? https://github.com/CMB-S4/s4sim/blob/master/dc0/foreground_sim/setup_sim.py#L19

I would like to do the same processing for SAT and SPLAT

@keskitalo
Copy link
Member

From the requirements document (private repository): https://github.com/CMB-S4/Requirements2020

@zonca
Copy link
Member Author

zonca commented Jul 14, 2023

note to myself: the file is being updated in CMB-S4/s4sim#29

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