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

GRF Shear prior #10

Open
b-remy opened this issue Mar 30, 2022 · 1 comment
Open

GRF Shear prior #10

b-remy opened this issue Mar 30, 2022 · 1 comment

Comments

@b-remy
Copy link
Owner

b-remy commented Mar 30, 2022

This issue is to track the development of a varying shear model.

In this model, instead of sampling shear values, we sample convergence map from a Gaussian Random Field.

Assuming a cosmology and a redshift distribution, we create a GRF prior for the E-mode of the convergence (and assume the B-mode is zero). Shear maps are then computed using KS transformation, and shear is measured on galaxy position by interpolation. Here is the related code (forward model, sampling shear maps).

As a first try, I simulated observations by sampling:

  • a 16x16 convergence map of resultion 5 arcmin/pixel
  • 3600 Gaussian galaxies on a regular grid (params: hlr and ellipticities) which is equivalent of 14 galaxies per pixel.

MAP

Initialization was done sampling from the prior distribution.

As decribed in #issue-vi, optimization is in two steps:

  1. Adam(lr=1e-1) for 100 iterations:

image

  1. Adam(lr=1e-2) for 100 iterations:

image

Here as well, the hlr parameter is well fitted, but galaxy ellipticities and shear field are a bit off.
image

image

Expected shear
image

Obtained shear
image

I need to try with more galaxies per pixel to see if it constrains more the model. But I wanted to ask you if the size and resolution of the map were not problematic @EiffL .

VI

I haven't started to run VI with the varying shear field.

@b-remy
Copy link
Owner Author

b-remy commented Apr 6, 2022

Update result for the MAP: rescaling the parameters to the same scale helps the inference.

  • 3600 gaussian galaxies on a regular grid
  • GRF shear (16x16, resolution = 1 arcmin/pixel)
  • sigma_pix = 0.003

With Adam(lr=1e-2) for 300 steps
image

Here is the convergence MAP (kB is zero by construction):
Capture d’écran 2022-04-06 à 17 25 51

An the associated shear maps
Capture d’écran 2022-04-06 à 17 27 07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant