igmhub / LyaCoLoRe

Code development to use CoLoRe simulations for generating simulated Lyman alpha forest spectra
4 stars 5 forks source link

Compare flux skewers from 2LPT #93

Open andreufont opened 5 years ago

andreufont commented 5 years ago

Once we are happy with the 2LPT density skewers, we should go ahead and extract flux skewers.

We could start by applying the same transformations than in the case of the Gaussian skewers, without re-tunning the parameters, and see how it goes.

The only thing we'd need to do is to think how to actually combine the 2LPT skewers with the extra Gaussian noise.

andreufont commented 5 years ago

May be @slosar might have an idea here.

slosar commented 5 years ago

I don't think exactly the same transformations will work, but it doesn't hurt to try. You'll probably have to retune them. So, what is the problem in adding noise. You can add noise to density and even if density goes negative flux is still fine, right?

andreufont commented 5 years ago

Hi @slosar - let me explain a bit more the concern:

Current setting:

Potential future setting:

In the long term we'd want to re-tune the parameters in the last two transformations, but given that most of the variance comes from the extra power, I do not expect the statistics in the resulting skewers to be off by order unity.

My concern is whether applying a lognormal transformation to the 2LPT fields was the right thing to do, or whether there was something smarter.

slosar commented 5 years ago

So Gaussian + lognormal is supposed to approximate matter. LPT gives matter already, so I don't think you should be lognormalling that once more. I would apply FGPA to LPT + Gaussian noise, or perhaps LPT + lognormal (gaussian noise).

andreufont commented 5 years ago

On Slack we had suggested 2LPT + lognormal(gaussian noise), but I wasn't quite sure whether this would need to be re-normalised later, to have bias=1 on linear scales. We could do some simple algebra, or run both and compare :-p