linan7788626 / Arc_Finding_CNN

0 stars 1 forks source link

About the arc from 'test.fits' #2

Closed WentaoLuo closed 8 years ago

WentaoLuo commented 8 years ago

Is there a lens galaxy or the smoothed profile of the dark matter that creates the arcs?

WentaoLuo commented 8 years ago

I will upload the python code soon. it is based on Rachel's work SHERA.

WentaoLuo commented 8 years ago

The simulated Gaussian has bigger dispersion.

WentaoLuo commented 8 years ago

These noise map are simulated with noise variance=58.75, typical SDSS noise variance.

WentaoLuo commented 8 years ago

The unit is count^2.

WentaoLuo commented 8 years ago

The poisson part may be wrong. I will check and modify it later.

linan7788626 commented 8 years ago

Hi @WentaoLuo , I just merged your SDSS images , and will be working on it soon. thanks a lot.

WentaoLuo commented 8 years ago

I will focus on galaxy next.

linan7788626 commented 8 years ago

so you think the noise model is right?

WentaoLuo commented 8 years ago

Yes, I talked with Rachel. it is right.

linan7788626 commented 8 years ago

Hi wentao, I have merged your code and update the script for producing lensed images. If the noise model is correct, then, so far, the only thing we need is the images of lenses, and please update your commits of the code in the same way. Thanks. BTW, Good luck to you about your paper. :-)

WentaoLuo commented 8 years ago

figure_2

Simulated de Vaucouleurs with R_e=2.9'', miu_e=27.989 z=0.3 with gaussian noise

WentaoLuo commented 8 years ago

figure_3

This one is a figure without noise in ln(image) plot. It seems it is too big. Maybe we have to add sky level rather than noise only.

WentaoLuo commented 8 years ago

./lens_galaxy.py --E 0.5 --Phi 45 --R_e 2.0 --zl 0.1 --NoiseVar 59

Once I put the lens_galaxy.py to this repo, everyone can simulate an de Vaucouleurs image by adding parameters like ellipticity --E, position angle --Phi or effective radius --R_e e.t.c

WentaoLuo commented 8 years ago

The velocity dispersion of a galaxy with R_e and miu_e, can be calculated also in lens_galaxy.py.

WentaoLuo commented 8 years ago

figure_4

Yes, we definitely need to add sky to mimic SDSS survey.

WentaoLuo commented 8 years ago

How much information we lost from the sky!!!

WentaoLuo commented 8 years ago

This galaxy has miu_e~ 18.8825

WentaoLuo commented 8 years ago

I mean effective brightness

linan7788626 commented 8 years ago

it looks great, I will get into it later. thanks. did you make a pull request? if so I will merge it asap.

WentaoLuo commented 8 years ago

figure_5

this one is with Poisson noise. I think Guassian is better.

WentaoLuo commented 8 years ago

I will modify it and check 1, the fundamental plane relation 2, noise modelling

And then put it on git and send a pull request.

linan7788626 commented 8 years ago

OK, thanks, I will read your new scripts later. By the way, I did not see any noise in the latest figure. is the scales of noise and flux right?

On Dec 16, 2015, at 3:54 PM, Wentao Luo notifications@github.com wrote:

I will modify it and check 1, the fundamental plane relation 2, noise modelling

And then put it on git and send a pull request.

— Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-165255119.

WentaoLuo commented 8 years ago

The Poisson noise model has much smaller variance than Gaussian one, that is the reason. I use exactly the model by Rachel. For now, I think we should use Gaussian, because it seems more realistic.

linan7788626 commented 8 years ago

can I ask why the poisson noise is much smaller than Gaussian? Is it realistic?

linan7788626 commented 8 years ago

Hi Wentao, Could you please make a pull request for your new code ? so that I can merge them in the master branch. Thanks

WentaoLuo commented 8 years ago

I did a major modification of the simulation code. The image magnitude will be given by velocity dispersion, effective radius(arcsec), redshift. The noise from Rachel works well after this modification.

I will show you some example with fix redshift z=0.5, effetive radius=10, and velocity dispersion=100,200,300

WentaoLuo commented 8 years ago

vd_100 vd_200 vd_300

WentaoLuo commented 8 years ago

Next, we fix vd=300, radius_eff=10, z=0.2,0.3,0.5

WentaoLuo commented 8 years ago

z_0 2 z_0 3 z_0 5

WentaoLuo commented 8 years ago

Sorry the size is fixed

WentaoLuo commented 8 years ago

Let's fix zl=0.3, vd=300 and R_eff=5,8,10

WentaoLuo commented 8 years ago

reff_5 reff_8 reff_10

WentaoLuo commented 8 years ago

I will push the code soon.

WentaoLuo commented 8 years ago

$./lens_galaxy.py --NoiseVar 59 --Phi 45 --E 0.3 --R_eff 8 --zl 0.3 --VelDis 300

The basic command is like that. I will write a simple readme and then push the code and file soon after I finish the readme.

WentaoLuo commented 8 years ago

After this modification, the difference between the two noise models are not as huge as before. There was a bug when calculating the counts of SDSS detectors.

WentaoLuo commented 8 years ago

guassian_noise_model

WentaoLuo commented 8 years ago

poisson_noise_model

WentaoLuo commented 8 years ago

Poisson has smaller standard deviation than Gaussian

linan7788626 commented 8 years ago

Oh, it looks great, this is the noise we need, thanks a lot.

On Dec 18, 2015, at 2:05 PM, Wentao Luo notifications@github.com wrote:

https://cloud.githubusercontent.com/assets/6350744/11906191/cbc531fe-a598-11e5-95a8-bc6285483d73.png — Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-165886245.

WentaoLuo commented 8 years ago

Debugging is tiring. Haha

WentaoLuo commented 8 years ago

Larger velocity dispersion, the brighter. If we set vd=300 km/s. The noise will be not as obvious as we set vd=150 or 100.

linan7788626 commented 8 years ago

haha, BTW, how about the bug of your 2d kappa map? If needed, we can talk on it later.

On Dec 18, 2015, at 2:07 PM, Wentao Luo notifications@github.com wrote:

Debugging is tiring. Haha

— Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-165887022.

WentaoLuo commented 8 years ago

Sure, I am focusing on this big bug. Later I will take care of that one. I could not focus at two things at the same time. Haha

WentaoLuo commented 8 years ago

color_no_noise

I think we should further to modify our pipeline a little bit to generate rgb color images of galaxy. like the above. This one is without noise. We should follow Lupton et al 2004 MNRAS 116 to do this. I will work on it.

linan7788626 commented 8 years ago

Hi Wentao,

It looks great, I am still on my way back to Chicago, I will working on this during the weekend. thanks a lot. Happy new year! :)

-Nan

On Dec 30, 2015, at 2:02 PM, Wentao Luo notifications@github.com wrote:

https://cloud.githubusercontent.com/assets/6350744/12056593/13714896-af06-11e5-90a3-e5965351a514.png I think we should further to modify our pipeline a little bit to generate rgb color images of galaxy. like the above. This one is without noise. We should follow Lupton et al 2004 MNRAS 116 to do this. I will work on it.

— Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-168065062.

linan7788626 commented 8 years ago

Hi Wentao,

How could I convert the unit of flux of the lens galaxy from number counts to magnitude properly? Say, I have a 2d map as shown in the figure your attached, there should be some basic relation between number counts and magnitude, right?

Thanks, Nan

On Dec 30, 2015, at 10:40 PM, LiNan linan7788626@gmail.com wrote:

Hi Wentao,

It looks great, I am still on my way back to Chicago, I will working on this during the weekend. thanks a lot. Happy new year! :)

-Nan

On Dec 30, 2015, at 2:02 PM, Wentao Luo <notifications@github.com mailto:notifications@github.com> wrote:

https://cloud.githubusercontent.com/assets/6350744/12056593/13714896-af06-11e5-90a3-e5965351a514.png I think we should further to modify our pipeline a little bit to generate rgb color images of galaxy. like the above. This one is without noise. We should follow Lupton et al 2004 MNRAS 116 to do this. I will work on it.

— Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-168065062.

WentaoLuo commented 8 years ago

cosmos_example_1

linan7788626 commented 8 years ago

thanks wentao, it looks great, BTW, what is the angular resolution of this image?

On Jan 18, 2016, at 11:17 AM, Wentao Luo notifications@github.com wrote:

https://cloud.githubusercontent.com/assets/6350744/12397800/712db56a-bddd-11e5-906e-5f4e2e2e7057.png — Reply to this email directly or view it on GitHub https://github.com/linan7788626/Arc_Finding_with_CMU/issues/2#issuecomment-172595737.

WentaoLuo commented 8 years ago

This is an example image from acs at z~1.0. Sorry for the late update, I took my kid to get vaccine last Thurday and Friday was my older daughter's birthday.

WentaoLuo commented 8 years ago

Angular resolution interms of arcseconds?