Redshifts of galaxies vs halos
olakusiak opened this issue · comments
Hi,
I am trying to populate some halos with an HOD using halotools, and I started with this example before putting my own data:
I followed each step here, particularly specifying the redshift=0 for the Bolshoi halos. Maybe I am not understanding something correctly, but why are the galaxy redshifts (the outputs of mock_survey.ra_dec_z) not the same as the redshifts of the halos (zero in this case)? I attach the distribution of the redshifts of galaxies, which goes up to z=0.07 when shifting the catalog.
I tried both with and without shifting, and also for Bolshoi at z=0.5. Does it have to do with peculiar velocities (in any case, it seems like a significant difference)?
Please let me know what I am missing here, Thank you!
![redshifts](https://private-user-images.githubusercontent.com/62485729/254097415-eacfd509-16ac-4a90-b860-84905e3cde69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDgxMjAyMTIsIm5iZiI6MTcwODExOTkxMiwicGF0aCI6Ii82MjQ4NTcyOS8yNTQwOTc0MTUtZWFjZmQ1MDktMTZhYy00YTkwLWI4NjAtODQ5MDVlM2NkZTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjE2VDIxNDUxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3OGRjOGI4NzhkYTE2OTg5MzlhNTViMGU5NzA0NmUwODcxMGNkZDZkYzdmZjhlYmQyYzE0MGI2NzhiNzExNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dR6vYVWxm-iPYqXu529sEZHIt7PQKa4e89yulMz9UMA)
Hi @olakusiak the mock survey function transforms your box into a lightcone, and so as the line-of-sight serves as the redshift direction. So even in the complete absence of peculiar velocities, the redshift histogram would look something like what you report.