CosmoStat / autometacal

Metacalibration and shape measurement by automatic differentiation
MIT License
4 stars 1 forks source link

New data generators #34

Closed andrevitorelli closed 2 years ago

andrevitorelli commented 2 years ago

I am trying to generate a more realistic set of galaxy stamps to test autometacal. These methods will be available inside the datasets subpackage and eventually integrated into tensorflow-datasets api within autometacal.

I have created a notebook at notebooks/Datasets.ipynb to explore different ways to do so.

Currently, I have implementations of:

  1. A simple exponential profile convolved with a moffat PSF
  2. Creating parametric galaxies from the COSMOS dataset
  3. Cutting out galaxy stamps directly from the COSMOS dataset

Both 2. and 3. have problems for sure, which is why I'm seeking some guidance from @aguinot also. I'm trying to improve 2. getting code from galaxy2galaxy now.

PS: I have also tried to do bulge+disk models (with some reasonable assumptions) by modifying 1., and tested them as I was doing before - the results were comparable to 1.

aguinot commented 2 years ago

In addition to the comment I let on the code, here are some comments on the notebooks:

Some general comments:

EiffL commented 2 years ago

I've updated this branch to main.

andrevitorelli commented 2 years ago

This PR should be dropped as #40 covers it.