<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>https://mocks.cita.utoronto.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MediaWiki+default</id>
	<title>LSS Mocks - User contributions [en-ca]</title>
	<link rel="self" type="application/atom+xml" href="https://mocks.cita.utoronto.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MediaWiki+default"/>
	<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php/Special:Contributions/MediaWiki_default"/>
	<updated>2026-05-12T10:23:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=WebSky_Extragalactic_CMB_Mocks&amp;diff=3069</id>
		<title>WebSky Extragalactic CMB Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=WebSky_Extragalactic_CMB_Mocks&amp;diff=3069"/>
		<updated>2021-08-27T21:37:24Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:montage.png  | [[Media:montage.png|Websky maps]]&lt;br /&gt;
File:Lightcone_60arcmin_300dpi.png | [[Media:Lightcone_60arcmin_300dpi.png | Websky halos ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Provided are [https://healpix.jpl.nasa.gov/ HEALPix] .fits files over the full sky at nside=4096 of CIB (in MJy/sr) intensity, Compton-y, kSZ (mu K), CMB lensing convergence, and lensed and un-lensed CMB TT, EE, and BB maps, all from the same 12288^3 particle, 15.4 Gpc peak-patch and 2LPT based cosmological simulation, as well as the light cone halo catalog itself. The minimum halo mass used was ~1.4e12 M200,M. Higher resolution maps and different frequencies are available upon request. For a full description of the contents of these maps see ''The Websky Extragalactic CMB Simulations'' - https://arxiv.org/abs/2001.08787. &lt;br /&gt;
&lt;br /&gt;
= Data =&lt;br /&gt;
Data, including [http://mocks.cita.utoronto.ca/data/websky/v0.0 README], available [http://mocks.cita.utoronto.ca/data/websky/v0.0 here]&lt;br /&gt;
&lt;br /&gt;
= Figures = &lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot; heights=&amp;quot;250px&amp;quot;&amp;gt;&lt;br /&gt;
File:tsz.png | [[Media:tsz.png | tSZ power spectrum ]]&lt;br /&gt;
File:ksz.png | [[Media:ksz.png | kSZ power spectrum ]]&lt;br /&gt;
File:cib.png | [[Media:cib.png | CIB power spectra ]]&lt;br /&gt;
File:KappaPower.png | [[Media:KappaPower.png | Convergence power spectrum ]]&lt;br /&gt;
File:conversion_factors.png | [[Media:conversion_factors.png | Conversion factors from native maps to delta Tcmb]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Acknowledgments = &lt;br /&gt;
The WebSky Extragalactic CMB Mocks Collaboration consists of George Stein, Marcelo Alvarez, Dick Bond, Alex van Engelen, Nick Battaglia, and Zack Li, with additional contributions from Amir Hajian.&lt;br /&gt;
&lt;br /&gt;
In order to properly acknowledge our efforts, we request the following paragraph to be included in the “Acknowledgements” section of any publication &lt;br /&gt;
which makes use of the simulation data above, and ask you to cite the following papers:&lt;br /&gt;
&lt;br /&gt;
Paper 2: ''The Websky Extragalactic CMB Simulations'' - G. Stein, M. A. Alvarez, J. R. Bond, A. v. Engelen, N. Battaglia (2020). https://arxiv.org/abs/2001.08787&lt;br /&gt;
&lt;br /&gt;
Paper 1: ''The mass-Peak Patch algorithm for fast generation of deep all-sky dark matter halo catalogues and its N-Body validation'' - G. Stein, M. A. Alvarez, J. R. Bond (2019). https://arxiv.org/abs/1810.07727&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The sky simulations used in this paper were developed by the WebSky Extragalactic CMB Mocks team, with the continuous support of the Canadian Institute for Theoretical Astrophysics (CITA), the Canadian Institute for Advanced Research (CIFAR), and the Natural Sciences and Engineering Council of Canada (NSERC), and were generated on the Niagara supercomputer at the SciNet HPC Consortium (cite https://arxiv.org/abs/1907.13600). SciNet is funded by: the Canada Foundation for Innovation under the auspices of Compute Canada; the Government of Ontario; Ontario Research Fund - Research Excellence; and the University of Toronto.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[ Documentation | Internal Pages ]]&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=782</id>
		<title>File:Montage.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=782"/>
		<updated>2019-04-09T21:52:55Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Montage.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=781</id>
		<title>File:Montage.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=781"/>
		<updated>2019-04-09T21:51:55Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Montage.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=780</id>
		<title>File:Montage.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Montage.png&amp;diff=780"/>
		<updated>2019-04-09T21:46:33Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Ksz.png&amp;diff=779</id>
		<title>File:Ksz.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Ksz.png&amp;diff=779"/>
		<updated>2019-04-09T21:31:55Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=775</id>
		<title>File:Tsz.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=775"/>
		<updated>2019-04-09T21:28:16Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Compton-y power spectrum of the WebSky tSZ map (blue line).  We also include the Planck results (black), the external Planck re-analysis taking into account the trispectrum in the covariance matrixand an extended marginalization (gray), the ACT measurement (green), and the SPT measurement (orange).&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=774</id>
		<title>File:Tsz.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=774"/>
		<updated>2019-04-09T21:27:59Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Compton-y power spectrum of the WebSky tSZ map (blue line).  We also include the Planck results (black), the external Planck re-analysis taking into account the trispectrum in the covariance matrixand an extended marginalization (gray), the ACT measurement (green), and the SPT measurement(orange).&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=773</id>
		<title>File:Tsz.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=773"/>
		<updated>2019-04-09T21:22:31Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Tsz.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Cib.png&amp;diff=772</id>
		<title>File:Cib.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Cib.png&amp;diff=772"/>
		<updated>2019-04-09T21:22:07Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=771</id>
		<title>File:Tsz.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Tsz.png&amp;diff=771"/>
		<updated>2019-04-09T21:05:29Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Lightcone_60arcmin_300dpi.png&amp;diff=769</id>
		<title>File:Lightcone 60arcmin 300dpi.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Lightcone_60arcmin_300dpi.png&amp;diff=769"/>
		<updated>2019-04-09T21:00:32Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=766</id>
		<title>File:KSZPower.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=766"/>
		<updated>2019-04-02T00:17:56Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:KSZPower.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=765</id>
		<title>File:KSZPower.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=765"/>
		<updated>2019-04-02T00:15:29Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:KSZPower.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=764</id>
		<title>File:KSZPower.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:KSZPower.png&amp;diff=764"/>
		<updated>2019-04-02T00:14:13Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=152</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=152"/>
		<updated>2018-01-24T05:03:15Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Software ==&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
&lt;br /&gt;
[http://cita.utoronto.ca/~malvarez/research/ksz-data/ Patchy kSZ Maps]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/sh/deqz1gekpw0fapw/AABGKqqzG9wMnLP0LqFzE6i-a?dl=0/ Kappa, unlensed and lensed maps (LP)]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/s/1evuw17snfqzhwj/all.pdf?dl=0 K, Phi, unlensed, lensed PDF (LP)]&lt;br /&gt;
&lt;br /&gt;
== Transferring Data to Nersc ==&lt;br /&gt;
&lt;br /&gt;
1.) log in to nersc - $ssh &amp;lt;username&amp;gt;@edison.nersc.gov&lt;br /&gt;
 &lt;br /&gt;
2.) log into edisongrid - $ssh edisongrid&lt;br /&gt;
&lt;br /&gt;
3.) Sign into collaboration account&lt;br /&gt;
 $module load globus&lt;br /&gt;
 $myproxy-logon -s nerscca.nersc.gov    !Password is the same as your username&lt;br /&gt;
 $gsissh localhost -l cmbs4&lt;br /&gt;
&lt;br /&gt;
4.) $cd /project/projectdirs/cmbs4&lt;br /&gt;
&lt;br /&gt;
5.) ensure that the permissions are set appropriately (g+rX,o-rwx)&lt;br /&gt;
&lt;br /&gt;
6.) Update README and cmbs4 wiki for any new files you add or changes you make!&lt;br /&gt;
&lt;br /&gt;
README snippet for .npz catalogues&lt;br /&gt;
 HALO CATALOGUES:&lt;br /&gt;
 Contains (x,y,z,mass,redshift) for each halo. They are saved in the npz format of numpy (see http://docs.scipy.org/doc/numpy/reference/generated/numpy.savez.html). To load simply use&lt;br /&gt;
 halo_cat = np.load(outfile)&lt;br /&gt;
 xpk      = halo_cat[&amp;quot;xpk&amp;quot;]&lt;br /&gt;
 ypk      = halo_cat[&amp;quot;ypk&amp;quot;]&lt;br /&gt;
 zpk      = halo_cat[&amp;quot;zpk&amp;quot;] &lt;br /&gt;
 M         = halo_cat[&amp;quot;M&amp;quot;]&lt;br /&gt;
 redshift = halo_cat[&amp;quot;redshift&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
README snippet for .pksc catalogues&lt;br /&gt;
&lt;br /&gt;
Contains (x,y,z,v_x,v_y,v_z,R_TH) for each halo. The final halo catalog is a binary file with a 12 byte header, R_TH is the Lagrangian top hat radius of the halo. The conversion to mass is M_halo = 4*pi/3 * R_TH**3 * rho_bar, where rho_mean = 2.775e11*Omega_M*h**2.&lt;br /&gt;
header = (int Non, float RTHmax, float redshiftbox)&lt;br /&gt;
where Non is the total number of halos found, &lt;br /&gt;
RTHmax is the radius of the largest halo in the simulation,&lt;br /&gt;
redshiftbox is the redshift of the box, which will be negative for lightcone runs.&lt;br /&gt;
This 12 byte header is then followed by a list of Non*7 4 byte floats that represent (x_halo,y_halo,z_halo,vx_halo,vy_halo,vz_halo,Rth_halo)&lt;br /&gt;
             &lt;br /&gt;
Sample Python and Fortran code to load a datafile:&lt;br /&gt;
&lt;br /&gt;
Python: &lt;br /&gt;
 pkfile            = open(filein,&amp;quot;rb&amp;quot;)&lt;br /&gt;
 Non              = np.fromfile(pkfile, dtype=np.int32, count=1)&lt;br /&gt;
 RTHMAXin   = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 redshiftbox  = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 print &amp;quot;Non = &amp;quot;, Non&lt;br /&gt;
 npkdata        = 7*Non&lt;br /&gt;
 peakdata      = np.fromfile(pkfile, dtype=np.float32, count=npkdata)&lt;br /&gt;
 peakdata      = np.reshape(peakdata,(Non,7))&lt;br /&gt;
 xpos   = peakdata[:,0]&lt;br /&gt;
 ypos   = peakdata[:,1]&lt;br /&gt;
 zpos   = peakdata[:,2]&lt;br /&gt;
 vxpos = peakdata[:,3]&lt;br /&gt;
 vypos = peakdata[:,4]&lt;br /&gt;
 vzpos = peakdata[:,5]&lt;br /&gt;
 Rth     = peakdata[:,6]&lt;br /&gt;
 Omega_M = 0.25&lt;br /&gt;
 h                = 0.7&lt;br /&gt;
 rhomean   = 2.775e11*Omega_M*h**2&lt;br /&gt;
 M               = 4.0/3*np.pi*Rth**3*rhomean&lt;br /&gt;
&lt;br /&gt;
Redshifts&lt;br /&gt;
 z=np.linspace(0,4,1000)&lt;br /&gt;
 def hubble(z):&lt;br /&gt;
     return h*100*np.sqrt(omegam*(1+z)**3+1-omegam)&lt;br /&gt;
 def drdz(z):&lt;br /&gt;
     return 3e5 / hubble(z)&lt;br /&gt;
 r  = np.cumsum(drdz(z)*(z[1]-z[0]))&lt;br /&gt;
 r -= r[0]&lt;br /&gt;
 z_to_r   = sp.interpolate.interp1d(z,r)&lt;br /&gt;
 r_to_z   = sp.interpolate.interp1d(r,z)&lt;br /&gt;
&lt;br /&gt;
Fortran:&lt;br /&gt;
 open(4,file=filein,status='old',access='stream')&lt;br /&gt;
 read(4) Npk,RTHLmax_in,boxredshift&lt;br /&gt;
 allocate(posxyz(3,nhalo))&lt;br /&gt;
 allocate(velxyz(3,nhalo))&lt;br /&gt;
 allocate(rth(nhalo))&lt;br /&gt;
 allocate(mass(nhalo))&lt;br /&gt;
 allocate(vrad(nhalo))&lt;br /&gt;
 offset_num_floats = 7*nhalo*myid&lt;br /&gt;
 read(4) ((posxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         (velxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         rth(i),i=1,nhalo)&lt;br /&gt;
 close(4)&lt;br /&gt;
&lt;br /&gt;
== Modeling ==&lt;br /&gt;
&lt;br /&gt;
=== CMB Lensing === &lt;br /&gt;
&lt;br /&gt;
Using a 'field+halo' model to generate lensing kappa maps from Gaussian random field (GRF) of density fluctuations on the past light cone. &lt;br /&gt;
&lt;br /&gt;
'''Halo Model:''' The peak patch algorithm is run on the GRF to produce a catalog of halos with [RA, Dec, redshift, velocity, mass]. The halos are assumed to have a spherically-symmetric matter distribution parameterized by a generalized NFW density profile. This contribution to the convergence from each halo is then projected onto the kappa map, appropriately weighted by the lensing kernel, W(z).&lt;br /&gt;
&amp;lt;gallery mode=packed heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:fullskykappa.png|&amp;quot;Halo only&amp;quot; full sky kappa map&lt;br /&gt;
File:flatskykappa.png|&amp;quot;Halo only&amp;quot; zoomed in kappa map&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Field Model:''' (development in progress) Lagrangian perturbation theory is used to move matter not within halos to its final Eulerian position. This field matter distribution is then added directly to the kappa map. A [260 x 260 x 60] Mpc/h slab at z=0 is shown below with all the matter moved with either first (1LPT) or second (2LPT) order Lagrangian perturbation theory, in addition to the halos found with the peak patch method (these peak patch halos are also moved with either . Shown below are the same peak patch halo distributions, but also the&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=150</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=150"/>
		<updated>2018-01-24T04:56:41Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez moved page CITA Large Scale Structure Mocks to Large Scale Structure Mocks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA LSS Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=148</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=148"/>
		<updated>2018-01-24T04:52:03Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez moved page Internal to Documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;math&amp;gt;M_{200,M} = 2.62 \times 10^{13} M_\odot&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
&lt;br /&gt;
[http://cita.utoronto.ca/~malvarez/research/ksz-data/ Patchy kSZ Maps]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/sh/deqz1gekpw0fapw/AABGKqqzG9wMnLP0LqFzE6i-a?dl=0/ Kappa, unlensed and lensed maps (LP)]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/s/1evuw17snfqzhwj/all.pdf?dl=0 K, Phi, unlensed, lensed PDF (LP)]&lt;br /&gt;
&lt;br /&gt;
== Transferring Data to Nersc ==&lt;br /&gt;
&lt;br /&gt;
1.) log in to nersc - $ssh &amp;lt;username&amp;gt;@edison.nersc.gov&lt;br /&gt;
 &lt;br /&gt;
2.) log into edisongrid - $ssh edisongrid&lt;br /&gt;
&lt;br /&gt;
3.) Sign into collaboration account&lt;br /&gt;
 $module load globus&lt;br /&gt;
 $myproxy-logon -s nerscca.nersc.gov    !Password is the same as your username&lt;br /&gt;
 $gsissh localhost -l cmbs4&lt;br /&gt;
&lt;br /&gt;
4.) $cd /project/projectdirs/cmbs4&lt;br /&gt;
&lt;br /&gt;
5.) ensure that the permissions are set appropriately (g+rX,o-rwx)&lt;br /&gt;
&lt;br /&gt;
6.) Update README and cmbs4 wiki for any new files you add or changes you make!&lt;br /&gt;
&lt;br /&gt;
README snippet for .npz catalogues&lt;br /&gt;
 HALO CATALOGUES:&lt;br /&gt;
 Contains (x,y,z,mass,redshift) for each halo. They are saved in the npz format of numpy (see http://docs.scipy.org/doc/numpy/reference/generated/numpy.savez.html). To load simply use&lt;br /&gt;
 halo_cat = np.load(outfile)&lt;br /&gt;
 xpk      = halo_cat[&amp;quot;xpk&amp;quot;]&lt;br /&gt;
 ypk      = halo_cat[&amp;quot;ypk&amp;quot;]&lt;br /&gt;
 zpk      = halo_cat[&amp;quot;zpk&amp;quot;] &lt;br /&gt;
 M         = halo_cat[&amp;quot;M&amp;quot;]&lt;br /&gt;
 redshift = halo_cat[&amp;quot;redshift&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
README snippet for .pksc catalogues&lt;br /&gt;
&lt;br /&gt;
Contains (x,y,z,v_x,v_y,v_z,R_TH) for each halo. The final halo catalog is a binary file with a 12 byte header, R_TH is the Lagrangian top hat radius of the halo. The conversion to mass is M_halo = 4*pi/3 * R_TH**3 * rho_bar, where rho_mean = 2.775e11*Omega_M*h**2.&lt;br /&gt;
header = (int Non, float RTHmax, float redshiftbox)&lt;br /&gt;
where Non is the total number of halos found, &lt;br /&gt;
RTHmax is the radius of the largest halo in the simulation,&lt;br /&gt;
redshiftbox is the redshift of the box, which will be negative for lightcone runs.&lt;br /&gt;
This 12 byte header is then followed by a list of Non*7 4 byte floats that represent (x_halo,y_halo,z_halo,vx_halo,vy_halo,vz_halo,Rth_halo)&lt;br /&gt;
             &lt;br /&gt;
Sample Python and Fortran code to load a datafile:&lt;br /&gt;
&lt;br /&gt;
Python: &lt;br /&gt;
 pkfile            = open(filein,&amp;quot;rb&amp;quot;)&lt;br /&gt;
 Non              = np.fromfile(pkfile, dtype=np.int32, count=1)&lt;br /&gt;
 RTHMAXin   = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 redshiftbox  = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 print &amp;quot;Non = &amp;quot;, Non&lt;br /&gt;
 npkdata        = 7*Non&lt;br /&gt;
 peakdata      = np.fromfile(pkfile, dtype=np.float32, count=npkdata)&lt;br /&gt;
 peakdata      = np.reshape(peakdata,(Non,7))&lt;br /&gt;
 xpos   = peakdata[:,0]&lt;br /&gt;
 ypos   = peakdata[:,1]&lt;br /&gt;
 zpos   = peakdata[:,2]&lt;br /&gt;
 vxpos = peakdata[:,3]&lt;br /&gt;
 vypos = peakdata[:,4]&lt;br /&gt;
 vzpos = peakdata[:,5]&lt;br /&gt;
 Rth     = peakdata[:,6]&lt;br /&gt;
 Omega_M = 0.25&lt;br /&gt;
 h                = 0.7&lt;br /&gt;
 rhomean   = 2.775e11*Omega_M*h**2&lt;br /&gt;
 M               = 4.0/3*np.pi*Rth**3*rhomean&lt;br /&gt;
&lt;br /&gt;
Redshifts&lt;br /&gt;
 z=np.linspace(0,4,1000)&lt;br /&gt;
 def hubble(z):&lt;br /&gt;
     return h*100*np.sqrt(omegam*(1+z)**3+1-omegam)&lt;br /&gt;
 def drdz(z):&lt;br /&gt;
     return 3e5 / hubble(z)&lt;br /&gt;
 r  = np.cumsum(drdz(z)*(z[1]-z[0]))&lt;br /&gt;
 r -= r[0]&lt;br /&gt;
 z_to_r   = sp.interpolate.interp1d(z,r)&lt;br /&gt;
 r_to_z   = sp.interpolate.interp1d(r,z)&lt;br /&gt;
&lt;br /&gt;
Fortran:&lt;br /&gt;
 open(4,file=filein,status='old',access='stream')&lt;br /&gt;
 read(4) Npk,RTHLmax_in,boxredshift&lt;br /&gt;
 allocate(posxyz(3,nhalo))&lt;br /&gt;
 allocate(velxyz(3,nhalo))&lt;br /&gt;
 allocate(rth(nhalo))&lt;br /&gt;
 allocate(mass(nhalo))&lt;br /&gt;
 allocate(vrad(nhalo))&lt;br /&gt;
 offset_num_floats = 7*nhalo*myid&lt;br /&gt;
 read(4) ((posxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         (velxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         rth(i),i=1,nhalo)&lt;br /&gt;
 close(4)&lt;br /&gt;
&lt;br /&gt;
== Modeling ==&lt;br /&gt;
&lt;br /&gt;
=== CMB Lensing === &lt;br /&gt;
&lt;br /&gt;
Using a 'field+halo' model to generate lensing kappa maps from Gaussian random field (GRF) of density fluctuations on the past light cone. &lt;br /&gt;
&lt;br /&gt;
'''Halo Model:''' The peak patch algorithm is run on the GRF to produce a catalog of halos with [RA, Dec, redshift, velocity, mass]. The halos are assumed to have a spherically-symmetric matter distribution parameterized by a generalized NFW density profile. This contribution to the convergence from each halo is then projected onto the kappa map, appropriately weighted by the lensing kernel, W(z).&lt;br /&gt;
&amp;lt;gallery mode=packed heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:fullskykappa.png|&amp;quot;Halo only&amp;quot; full sky kappa map&lt;br /&gt;
File:flatskykappa.png|&amp;quot;Halo only&amp;quot; zoomed in kappa map&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Field Model:''' (development in progress) Lagrangian perturbation theory is used to move matter not within halos to its final Eulerian position. This field matter distribution is then added directly to the kappa map. A [260 x 260 x 60] Mpc/h slab at z=0 is shown below with all the matter moved with either first (1LPT) or second (2LPT) order Lagrangian perturbation theory, in addition to the halos found with the peak patch method (these peak patch halos are also moved with either . Shown below are the same peak patch halo distributions, but also the&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=147</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=147"/>
		<updated>2018-01-24T04:40:25Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA LSS Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=145</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=145"/>
		<updated>2018-01-24T04:40:09Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez moved page CITA LSS Mocks to CITA Large Scale Structure Mocks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA Cosmology Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=143</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=143"/>
		<updated>2018-01-24T04:39:39Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez moved page LSS Mocks:CITA LSS Mocks to CITA LSS Mocks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA Cosmology Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=141</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=141"/>
		<updated>2018-01-24T04:39:22Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez moved page CITA Cosmology Mock Portal to LSS Mocks:CITA LSS Mocks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA Cosmology Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=140</id>
		<title>Large Scale Structure Mocks</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Large_Scale_Structure_Mocks&amp;diff=140"/>
		<updated>2018-01-24T04:38:11Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Created page with &amp;quot;Welcome to the CITA Cosmology Mocks Portal.  = [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] = CIB intensity, Compton-y, CMB lensing convergence, lense...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the CITA Cosmology Mocks Portal.&lt;br /&gt;
&lt;br /&gt;
= [http://mocks.cita.utoronto.ca/websky WebSky Extragalactic CMB Mocks] =&lt;br /&gt;
CIB intensity, Compton-y, CMB lensing convergence, lensed and unlensed CMB temperature, all from the same 8192^3 16 Gpc simulation.&lt;br /&gt;
&lt;br /&gt;
= [http://cita.utoronto.ca/~malvarez/research/ksz-data Patchy kSZ Maps] =&lt;br /&gt;
Data and figures to accompany [http://adsabs.harvard.edu/abs/2016ApJ...824..118A Alvarez (2016)].&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=107</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=107"/>
		<updated>2017-12-14T23:24:07Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Logo.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=106</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=106"/>
		<updated>2017-12-14T23:22:29Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Logo.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=105</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=105"/>
		<updated>2017-12-14T23:19:59Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Logo.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=104</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=104"/>
		<updated>2017-12-14T23:18:07Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Logo.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=103</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=103"/>
		<updated>2017-12-14T23:12:41Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Logo.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=82</id>
		<title>File:Logo.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Logo.png&amp;diff=82"/>
		<updated>2017-12-14T19:55:53Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=77</id>
		<title>MediaWiki:Mainpage</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=77"/>
		<updated>2017-12-14T04:44:04Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CITA Extragalactic Mocks&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=76</id>
		<title>MediaWiki:Mainpage</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=76"/>
		<updated>2017-12-14T04:39:13Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extragalactic Mocks @ CITA&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=74</id>
		<title>MediaWiki:Mainpage</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=MediaWiki:Mainpage&amp;diff=74"/>
		<updated>2017-12-14T04:33:13Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Created page with &amp;quot;CITA Extragalactic Mocks&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CITA Extragalactic Mocks&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=71</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Documentation&amp;diff=71"/>
		<updated>2017-12-14T04:13:10Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Migrated main page here&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Software ==&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
&lt;br /&gt;
[http://cita.utoronto.ca/~malvarez/research/ksz-data/ Patchy kSZ Maps]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/sh/deqz1gekpw0fapw/AABGKqqzG9wMnLP0LqFzE6i-a?dl=0/ Kappa, unlensed and lensed maps (LP)]&lt;br /&gt;
&lt;br /&gt;
[https://www.dropbox.com/s/1evuw17snfqzhwj/all.pdf?dl=0 K, Phi, unlensed, lensed PDF (LP)]&lt;br /&gt;
&lt;br /&gt;
== Transferring Data to Nersc ==&lt;br /&gt;
&lt;br /&gt;
1.) log in to nersc - $ssh &amp;lt;username&amp;gt;@edison.nersc.gov&lt;br /&gt;
 &lt;br /&gt;
2.) log into edisongrid - $ssh edisongrid&lt;br /&gt;
&lt;br /&gt;
3.) Sign into collaboration account&lt;br /&gt;
 $module load globus&lt;br /&gt;
 $myproxy-logon -s nerscca.nersc.gov    !Password is the same as your username&lt;br /&gt;
 $gsissh localhost -l cmbs4&lt;br /&gt;
&lt;br /&gt;
4.) $cd /project/projectdirs/cmbs4&lt;br /&gt;
&lt;br /&gt;
5.) ensure that the permissions are set appropriately (g+rX,o-rwx)&lt;br /&gt;
&lt;br /&gt;
6.) Update README and cmbs4 wiki for any new files you add or changes you make!&lt;br /&gt;
&lt;br /&gt;
README snippet for .npz catalogues&lt;br /&gt;
 HALO CATALOGUES:&lt;br /&gt;
 Contains (x,y,z,mass,redshift) for each halo. They are saved in the npz format of numpy (see http://docs.scipy.org/doc/numpy/reference/generated/numpy.savez.html). To load simply use&lt;br /&gt;
 halo_cat = np.load(outfile)&lt;br /&gt;
 xpk      = halo_cat[&amp;quot;xpk&amp;quot;]&lt;br /&gt;
 ypk      = halo_cat[&amp;quot;ypk&amp;quot;]&lt;br /&gt;
 zpk      = halo_cat[&amp;quot;zpk&amp;quot;] &lt;br /&gt;
 M         = halo_cat[&amp;quot;M&amp;quot;]&lt;br /&gt;
 redshift = halo_cat[&amp;quot;redshift&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
README snippet for .pksc catalogues&lt;br /&gt;
&lt;br /&gt;
Contains (x,y,z,v_x,v_y,v_z,R_TH) for each halo. The final halo catalog is a binary file with a 12 byte header, R_TH is the Lagrangian top hat radius of the halo. The conversion to mass is M_halo = 4*pi/3 * R_TH**3 * rho_bar, where rho_mean = 2.775e11*Omega_M*h**2.&lt;br /&gt;
header = (int Non, float RTHmax, float redshiftbox)&lt;br /&gt;
where Non is the total number of halos found, &lt;br /&gt;
RTHmax is the radius of the largest halo in the simulation,&lt;br /&gt;
redshiftbox is the redshift of the box, which will be negative for lightcone runs.&lt;br /&gt;
This 12 byte header is then followed by a list of Non*7 4 byte floats that represent (x_halo,y_halo,z_halo,vx_halo,vy_halo,vz_halo,Rth_halo)&lt;br /&gt;
             &lt;br /&gt;
Sample Python and Fortran code to load a datafile:&lt;br /&gt;
&lt;br /&gt;
Python: &lt;br /&gt;
 pkfile            = open(filein,&amp;quot;rb&amp;quot;)&lt;br /&gt;
 Non              = np.fromfile(pkfile, dtype=np.int32, count=1)&lt;br /&gt;
 RTHMAXin   = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 redshiftbox  = np.fromfile(pkfile, dtype=np.float32, count=1)&lt;br /&gt;
 print &amp;quot;Non = &amp;quot;, Non&lt;br /&gt;
 npkdata        = 7*Non&lt;br /&gt;
 peakdata      = np.fromfile(pkfile, dtype=np.float32, count=npkdata)&lt;br /&gt;
 peakdata      = np.reshape(peakdata,(Non,7))&lt;br /&gt;
 xpos   = peakdata[:,0]&lt;br /&gt;
 ypos   = peakdata[:,1]&lt;br /&gt;
 zpos   = peakdata[:,2]&lt;br /&gt;
 vxpos = peakdata[:,3]&lt;br /&gt;
 vypos = peakdata[:,4]&lt;br /&gt;
 vzpos = peakdata[:,5]&lt;br /&gt;
 Rth     = peakdata[:,6]&lt;br /&gt;
 Omega_M = 0.25&lt;br /&gt;
 h                = 0.7&lt;br /&gt;
 rhomean   = 2.775e11*Omega_M*h**2&lt;br /&gt;
 M               = 4.0/3*np.pi*Rth**3*rhomean&lt;br /&gt;
&lt;br /&gt;
Redshifts&lt;br /&gt;
 z=np.linspace(0,4,1000)&lt;br /&gt;
 def hubble(z):&lt;br /&gt;
     return h*100*np.sqrt(omegam*(1+z)**3+1-omegam)&lt;br /&gt;
 def drdz(z):&lt;br /&gt;
     return 3e5 / hubble(z)&lt;br /&gt;
 r  = np.cumsum(drdz(z)*(z[1]-z[0]))&lt;br /&gt;
 r -= r[0]&lt;br /&gt;
 z_to_r   = sp.interpolate.interp1d(z,r)&lt;br /&gt;
 r_to_z   = sp.interpolate.interp1d(r,z)&lt;br /&gt;
&lt;br /&gt;
Fortran:&lt;br /&gt;
 open(4,file=filein,status='old',access='stream')&lt;br /&gt;
 read(4) Npk,RTHLmax_in,boxredshift&lt;br /&gt;
 allocate(posxyz(3,nhalo))&lt;br /&gt;
 allocate(velxyz(3,nhalo))&lt;br /&gt;
 allocate(rth(nhalo))&lt;br /&gt;
 allocate(mass(nhalo))&lt;br /&gt;
 allocate(vrad(nhalo))&lt;br /&gt;
 offset_num_floats = 7*nhalo*myid&lt;br /&gt;
 read(4) ((posxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         (velxyz(j,i),j=1,3),&amp;amp;&lt;br /&gt;
         rth(i),i=1,nhalo)&lt;br /&gt;
 close(4)&lt;br /&gt;
&lt;br /&gt;
== Modeling ==&lt;br /&gt;
&lt;br /&gt;
=== CMB Lensing === &lt;br /&gt;
&lt;br /&gt;
Using a 'field+halo' model to generate lensing kappa maps from Gaussian random field (GRF) of density fluctuations on the past light cone. &lt;br /&gt;
&lt;br /&gt;
'''Halo Model:''' The peak patch algorithm is run on the GRF to produce a catalog of halos with [RA, Dec, redshift, velocity, mass]. The halos are assumed to have a spherically-symmetric matter distribution parameterized by a generalized NFW density profile. This contribution to the convergence from each halo is then projected onto the kappa map, appropriately weighted by the lensing kernel, W(z).&lt;br /&gt;
&amp;lt;gallery mode=packed heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:fullskykappa.png|&amp;quot;Halo only&amp;quot; full sky kappa map&lt;br /&gt;
File:flatskykappa.png|&amp;quot;Halo only&amp;quot; zoomed in kappa map&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Field Model:''' (development in progress) Lagrangian perturbation theory is used to move matter not within halos to its final Eulerian position. This field matter distribution is then added directly to the kappa map. A [260 x 260 x 60] Mpc/h slab at z=0 is shown below with all the matter moved with either first (1LPT) or second (2LPT) order Lagrangian perturbation theory, in addition to the halos found with the peak patch method (these peak patch halos are also moved with either . Shown below are the same peak patch halo distributions, but also the&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Nb_2lpt_1e11.png&amp;diff=67</id>
		<title>File:Nb 2lpt 1e11.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Nb_2lpt_1e11.png&amp;diff=67"/>
		<updated>2017-02-15T18:37:20Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Nb_1lpt_1e11.png&amp;diff=66</id>
		<title>File:Nb 1lpt 1e11.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Nb_1lpt_1e11.png&amp;diff=66"/>
		<updated>2017-02-15T18:36:57Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Fullskykappa.png&amp;diff=64</id>
		<title>File:Fullskykappa.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Fullskykappa.png&amp;diff=64"/>
		<updated>2017-02-15T18:17:35Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Flatskykappa.png&amp;diff=63</id>
		<title>File:Flatskykappa.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Flatskykappa.png&amp;diff=63"/>
		<updated>2017-02-15T18:16:14Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Malvarez uploaded a new version of File:Flatskykappa.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=File:Flatskykappa.png&amp;diff=62</id>
		<title>File:Flatskykappa.png</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=File:Flatskykappa.png&amp;diff=62"/>
		<updated>2017-02-15T18:12:47Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
	<entry>
		<id>https://mocks.cita.utoronto.ca/index.php?title=Future_Projects&amp;diff=38</id>
		<title>Future Projects</title>
		<link rel="alternate" type="text/html" href="https://mocks.cita.utoronto.ca/index.php?title=Future_Projects&amp;diff=38"/>
		<updated>2016-12-14T04:59:41Z</updated>

		<summary type="html">&lt;p&gt;MediaWiki default: Created page with &amp;quot;==Coyote Sim Comparison==  * Initial conditions and final halos of Coyote are located on scinet at '''/scratch2/r/rbond/gstein/peak-patch-runs/current/Argon_Labs_Compare/coyot...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Coyote Sim Comparison==&lt;br /&gt;
&lt;br /&gt;
* Initial conditions and final halos of Coyote are located on scinet at '''/scratch2/r/rbond/gstein/peak-patch-runs/current/Argon_Labs_Compare/coyote_sim'''&lt;br /&gt;
&lt;br /&gt;
==HR4 Comparison==&lt;br /&gt;
&lt;br /&gt;
==Octant Runs==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4096^3, 4096Mpc&amp;lt;/math&amp;gt; can be found at '''/scratch2/r/rbond/gstein/peak-patch-runs/current/octant_runs''' , larger runs to come&lt;br /&gt;
&lt;br /&gt;
==DE &amp;amp; Neutrino runs==&lt;/div&gt;</summary>
		<author><name>MediaWiki default</name></author>
	</entry>
</feed>