mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 21:58:02 +00:00
438 lines
724 KiB
Text
438 lines
724 KiB
Text
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"# Copyright (C) 2024 Richard Stiskalek\n",
|
||
|
"# This program is free software; you can redistribute it and/or modify it\n",
|
||
|
"# under the terms of the GNU General Public License as published by the\n",
|
||
|
"# Free Software Foundation; either version 3 of the License, or (at your\n",
|
||
|
"# option) any later version.\n",
|
||
|
"#\n",
|
||
|
"# This program is distributed in the hope that it will be useful, but\n",
|
||
|
"# WITHOUT ANY WARRANTY; without even the implied warranty of\n",
|
||
|
"# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General\n",
|
||
|
"# Public License for more details.\n",
|
||
|
"#\n",
|
||
|
"# You should have received a copy of the GNU General Public License along\n",
|
||
|
"# with this program; if not, write to the Free Software Foundation, Inc.,\n",
|
||
|
"# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n",
|
||
|
"from gc import collect\n",
|
||
|
"\n",
|
||
|
"import numpy\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"from h5py import File\n",
|
||
|
"from astropy.cosmology import FlatLambdaCDM\n",
|
||
|
"import csiborgtools\n",
|
||
|
"\n",
|
||
|
"%matplotlib inline\n",
|
||
|
"%load_ext autoreload\n",
|
||
|
"%autoreload 2"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def get_particles_gadget(kind, fpath):\n",
|
||
|
" with File(fpath, \"r\") as f:\n",
|
||
|
" if kind == \"Masses\":\n",
|
||
|
" npart = f[\"Header\"].attrs[\"NumPart_Total\"][1]\n",
|
||
|
" x_high = numpy.ones(npart, dtype=numpy.float32)\n",
|
||
|
" x_high *= f[\"Header\"].attrs[\"MassTable\"][1]\n",
|
||
|
" else:\n",
|
||
|
" x_high = f[f\"PartType1/{kind}\"][...]\n",
|
||
|
"\n",
|
||
|
" x_low = f[f\"PartType5/{kind}\"][...]\n",
|
||
|
"\n",
|
||
|
" return x_high, x_low"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 174,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"option = \"csiborg2\"\n",
|
||
|
"chain_index = 16017\n",
|
||
|
"distances = numpy.linspace(0, 155, 101)[1:]\n",
|
||
|
"\n",
|
||
|
"if option == \"csiborg1\":\n",
|
||
|
" if chain_index != 8600:\n",
|
||
|
" raise ValueError(f\"Invalid chain index: `{chain_index}`.\")\n",
|
||
|
"\n",
|
||
|
" fpath_csiborg = \"/mnt/extraspace/rstiskalek/csiborg1/gadget4/chain_8600/output/snapshot_099.hdf5\"\n",
|
||
|
" fpath_borg = f\"/mnt/users/hdesmond/BORG_final/mcmc_{chain_index}.h5\"\n",
|
||
|
" Om0 = 0.307\n",
|
||
|
" boxsize = 677.7\n",
|
||
|
" H0 = 70.5\n",
|
||
|
"elif option == \"csiborg2\":\n",
|
||
|
" fpath_csiborg = f\"/mnt/extraspace/rstiskalek/csiborg2_main/chain_{chain_index}/output/snapshot_099_full.hdf5\"\n",
|
||
|
" fpath_borg = f\"/mnt/extraspace/rstiskalek/BORG_STOPYRA_2023/mcmc_{chain_index}.h5\"\n",
|
||
|
" Om0 = 0.3111\n",
|
||
|
" H0 = 67.66\n",
|
||
|
" boxsize = 676.6\n",
|
||
|
"else:\n",
|
||
|
" raise ValueError(f\"Invalid option: `{option}`.\")\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"rho_matter_borg = Om0 * FlatLambdaCDM(H0=H0, Om0=Om0).critical_density(0).to(\"Msun/Mpc^3\").value\n",
|
||
|
"rho_matter = Om0 * FlatLambdaCDM(H0=100, Om0=Om0).critical_density(0).to(\"Msun/Mpc^3\").value"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 175,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Getting positions\n",
|
||
|
"Getting masses\n",
|
||
|
"Concatenating the high- and low-resolution particles.\n",
|
||
|
"Calculating the radial distances.\n",
|
||
|
"Sorting particles\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"print(\"Getting positions\")\n",
|
||
|
"pos_high, pos_low = get_particles_gadget(\"Coordinates\", fpath_csiborg)\n",
|
||
|
"print(\"Getting masses\")\n",
|
||
|
"mass_high, mass_low = get_particles_gadget(\"Masses\", fpath_csiborg)\n",
|
||
|
"\n",
|
||
|
"print(\"Concatenating the high- and low-resolution particles.\")\n",
|
||
|
"pos = numpy.concatenate([pos_high, pos_low])\n",
|
||
|
"mass = numpy.concatenate([mass_high, mass_low]) * 1e10\n",
|
||
|
"\n",
|
||
|
"del pos_high, pos_low, mass_high, mass_low\n",
|
||
|
"collect()\n",
|
||
|
"\n",
|
||
|
"print(\"Calculating the radial distances.\")\n",
|
||
|
"pos -= boxsize / 2\n",
|
||
|
"rdist = numpy.linalg.norm(pos, axis=1)\n",
|
||
|
"\n",
|
||
|
"del pos\n",
|
||
|
"collect()\n",
|
||
|
"\n",
|
||
|
"print(\"Sorting particles\")\n",
|
||
|
"indxs = numpy.argsort(rdist)\n",
|
||
|
"rdist = rdist[indxs]\n",
|
||
|
"mass = mass[indxs]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 193,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Calculating the enclosed mass in BORG.\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/tmp/ipykernel_2000/2304497414.py:20: RuntimeWarning: invalid value encountered in divide\n",
|
||
|
" borg_density = borg_mass / borg_volume\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"# print(\"Calculating the enclosed mass in CSiBORG.\")\n",
|
||
|
"# csiborg_mass = csiborgtools.field.particles_enclosed_mass(rdist, mass, distances)\n",
|
||
|
"# volume = 4 / 3 * numpy.pi * distances**3\n",
|
||
|
"# csiborg_overdensity = csiborg_mass / volume / rho_matter - 1\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"print(\"Calculating the enclosed mass in BORG.\")\n",
|
||
|
"with File(fpath_borg) as f:\n",
|
||
|
" borg_density = f[\"scalars/BORG_final_density\"][...].T\n",
|
||
|
" borg_density += 1\n",
|
||
|
" borg_density *= rho_matter_borg\n",
|
||
|
"\n",
|
||
|
"h = H0 / 100\n",
|
||
|
"\n",
|
||
|
"# Now BORG_density is the density in each cell in units of borg H0.\n",
|
||
|
"borg_mass, borg_volume = csiborgtools.field.field_enclosed_mass(\n",
|
||
|
" borg_density, distances, boxsize)\n",
|
||
|
"\n",
|
||
|
"# Now we need to conver the mass to units of h = 1\n",
|
||
|
"borg_density = borg_mass / borg_volume\n",
|
||
|
"borg_overdensity = borg_density / rho_matter_borg - 1"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 195,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnUAAAHWCAYAAAARl3+JAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAB1iElEQVR4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g+eefZ/369SxYsICEhATeeustwsLCajzn1VdfZf369dx4440UFBTU+r3qi3rqPIgmStQsopmvK9SZ2XsVfkXktODvY2XLI0Pc9t61FR8fj2EYbN269Q/LhoeHc+2113LttdfyxBNP0KtXL5555hnee++9as9p164doaGhAJxxxhmsWrWKxx9/nAkTJtCpUycAkpKSOPvss084NykpiYSEhErHoqKi6NixIx07dmTOnDkMHz6cLVu20LJlS1d7tm3bVumco3u5/lH4ayjqqfNAhuJKlcID7ew7LtSJiJwODMMgwNfmlkdd7hsLCwtjyJAhzJo1yzWT9XjVrTvn6+tLhw4dqjynJkeHTgEuueQSwsLCePbZZ08oN2/ePHbs2MGoUaOqvVb//v3p06cPjz/+uOvYqFGjWLRoEevWratTvRqSQp0H0USJmvnaLOT5Of+XZCnMguIjbq6RiIgcb9asWZSXl9O/f38+++wzduzYQVJSEi+99BKJiYnMnz+f66+/nvnz57N9+3a2bdvGM888w9dff80VV1xR47UzMjJIS0tjz549fPrpp/zrX/9
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plt.figure()\n",
|
||
|
"\n",
|
||
|
"plt.plot(distances, csiborg_overdensity, label=\"CSiBORG\")\n",
|
||
|
"plt.plot(distances, borg_overdensity * 0.7, label=\"BORG\")\n",
|
||
|
"\n",
|
||
|
"# plt.plot(distances, borg_overdensity - csiborg_overdensity)\n",
|
||
|
"plt.axhline(0, color=\"black\", linestyle=\"--\")\n",
|
||
|
"\n",
|
||
|
"# plt.ylim(0.7, 1.3)\n",
|
||
|
"plt.ylim(-0.2, 0.2)\n",
|
||
|
"plt.ylabel(r\"$\\delta_r$\")\n",
|
||
|
"plt.xlabel(\"Distance [Mpc/h]\")\n",
|
||
|
"\n",
|
||
|
"plt.legend()\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"# plt.savefig(\"/mnt/users/rstiskalek/csiborgtools/plots/enclosed_overdensity_8600.png\", dpi=300)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 61,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"csiborg_reader = csiborgtools.read.CSiBORG2Field(17417, \"main\")\n",
|
||
|
"borg_reader = csiborgtools.read.BORG2Field(17417)\n",
|
||
|
"Om0 = 0.3111\n",
|
||
|
"boxsize = 676.6\n",
|
||
|
"\n",
|
||
|
"# csiborg_reader = csiborgtools.read.CSiBORG1Field(9844)\n",
|
||
|
"# borg_reader = csiborgtools.read.BORG1Field(9844)\n",
|
||
|
"# Om0 = 0.307\n",
|
||
|
"# boxsize = 677.7\n",
|
||
|
"\n",
|
||
|
"cosmo = FlatLambdaCDM(H0=100, Om0=Om0)\n",
|
||
|
"rho_matter = Om0 * cosmo.critical_density(0).to(\"Msun/kpc^3\").value"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 62,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"csiborg_density = csiborg_reader.density_field(\"SPH\", 1024)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"csiborg_density /= rho_matter\n",
|
||
|
"csiborg_density -= 1\n",
|
||
|
"\n",
|
||
|
"borg_overdensity = borg_reader.overdensity_field()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 63,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"csiborg_density_downsample = csiborg_density.reshape(256, 4, 256, 4, 256, 4).mean(axis=(1, 3, 5))\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 64,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/mnt/users/rstiskalek/csiborgtools/venv_csiborg/lib/python3.11/site-packages/numpy/core/fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.\n",
|
||
|
" return _methods._mean(a, axis=axis, dtype=dtype,\n",
|
||
|
"/mnt/users/rstiskalek/csiborgtools/venv_csiborg/lib/python3.11/site-packages/numpy/core/_methods.py:192: RuntimeWarning: invalid value encountered in divide\n",
|
||
|
" ret = ret.dtype.type(ret / rcount)\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"y_csiborg = []\n",
|
||
|
"y_borg = []\n",
|
||
|
"\n",
|
||
|
"dks = range(0, 128 + 1)\n",
|
||
|
"for dk in dks:\n",
|
||
|
" kmin = 128 - dk\n",
|
||
|
" kmax = 128 + dk\n",
|
||
|
"\n",
|
||
|
" y_csiborg.append(numpy.mean(csiborg_density_downsample[kmin:kmax, kmin:kmax, kmin:kmax]))\n",
|
||
|
" y_borg.append(numpy.mean(borg_overdensity[kmin:kmax, kmin:kmax, kmin:kmax]))\n",
|
||
|
"\n",
|
||
|
"y_csiborg = numpy.array(y_csiborg)\n",
|
||
|
"y_borg = numpy.array(y_borg)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 66,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHKCAYAAAA5Cf5NAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAACHxklEQVR4nO3dd3hUVf7H8feU9JCE0JLQe+81gIKCAgKKZVcQFSzYwIbdtTf82Rvq2sBdUVZdURYVRYogIj10kGooCQFCOmkz9/fHJUOG9GSSScLn9TzzJLlz7plzb+5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aDUbcubKFsWpa27uN9Tcee1ZcuWpW5Lz5496d69O//617+4+OKL2bZtG99//32R5YcOHconn3zCpk2b8PHxoUOHDgwdOpRly5Zx8uRJhgwZUurXzq+4Y/XUPmPHjqV58+Z8+OGHrvl8Xbp0ITs7u9DyJb0XrFar29wsgJycnGL3OZs33wOeuobyVPRYyrJ/ea6X0ipv3dOmTWPBggUsX76cJk2auD0XExPDlVdeWarXL+m688TnR0XqhYKfeyXtm5iYWOTrFqes79nyKO48Veb7szx/O0rL0+8PTaSvRG3btiUgIIDFixeXqnzr1q3x9fVl5cqVrm05OTmsXbuWTp06AeYvfNCgQTz99NNs3LgRX19f5s2bR6dOnfDz8yM2NpY2bdq4PZo2beqq38fHh9WrV7vqP3nyJH/++WeF2gTg7+/PFVdcwZw5c/jiiy9o376967/R0rStqNcuqb3lrft
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"dks_phys = numpy.array(dks) * (boxsize / 256)\n",
|
||
|
"\n",
|
||
|
"plt.figure()\n",
|
||
|
"plt.title(\"Enclosed overdensity within a cube of side length $2 L$ centered at the origin.\", fontsize=10)\n",
|
||
|
"plt.plot(dks_phys, y_csiborg, label=\"CSiBORG\")\n",
|
||
|
"plt.plot(dks_phys, y_borg, label=\"BORG\")\n",
|
||
|
"plt.xlabel(r\"$L ~ [\\mathrm{Mpc}/\\mathrm{h}]$\")\n",
|
||
|
"plt.ylabel(r\"$\\delta_r$\")\n",
|
||
|
"plt.axhline(0, color=\"black\", linestyle=\"--\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"plt.ylim(-0.2, 0.1)\n",
|
||
|
"plt.savefig(\"../plots/BORG_enclosed_gadget2.png\", dpi=300)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 29,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array([ 0. , 2.64296875, 5.2859375 , 7.92890625,\n",
|
||
|
" 10.571875 , 13.21484375, 15.8578125 , 18.50078125,\n",
|
||
|
" 21.14375 , 23.78671875, 26.4296875 , 29.07265625,\n",
|
||
|
" 31.715625 , 34.35859375, 37.0015625 , 39.64453125,\n",
|
||
|
" 42.2875 , 44.93046875, 47.5734375 , 50.21640625,\n",
|
||
|
" 52.859375 , 55.50234375, 58.1453125 , 60.78828125,\n",
|
||
|
" 63.43125 , 66.07421875, 68.7171875 , 71.36015625,\n",
|
||
|
" 74.003125 , 76.64609375, 79.2890625 , 81.93203125,\n",
|
||
|
" 84.575 , 87.21796875, 89.8609375 , 92.50390625,\n",
|
||
|
" 95.146875 , 97.78984375, 100.4328125 , 103.07578125,\n",
|
||
|
" 105.71875 , 108.36171875, 111.0046875 , 113.64765625,\n",
|
||
|
" 116.290625 , 118.93359375, 121.5765625 , 124.21953125,\n",
|
||
|
" 126.8625 , 129.50546875, 132.1484375 , 134.79140625,\n",
|
||
|
" 137.434375 , 140.07734375, 142.7203125 , 145.36328125,\n",
|
||
|
" 148.00625 , 150.64921875, 153.2921875 , 155.93515625,\n",
|
||
|
" 158.578125 , 161.22109375, 163.8640625 , 166.50703125,\n",
|
||
|
" 169.15 , 171.79296875, 174.4359375 , 177.07890625,\n",
|
||
|
" 179.721875 , 182.36484375, 185.0078125 , 187.65078125,\n",
|
||
|
" 190.29375 , 192.93671875, 195.5796875 , 198.22265625,\n",
|
||
|
" 200.865625 , 203.50859375, 206.1515625 , 208.79453125,\n",
|
||
|
" 211.4375 , 214.08046875, 216.7234375 , 219.36640625,\n",
|
||
|
" 222.009375 , 224.65234375, 227.2953125 , 229.93828125,\n",
|
||
|
" 232.58125 , 235.22421875, 237.8671875 , 240.51015625,\n",
|
||
|
" 243.153125 , 245.79609375, 248.4390625 , 251.08203125,\n",
|
||
|
" 253.725 , 256.36796875, 259.0109375 , 261.65390625,\n",
|
||
|
" 264.296875 , 266.93984375, 269.5828125 , 272.22578125,\n",
|
||
|
" 274.86875 , 277.51171875, 280.1546875 , 282.79765625,\n",
|
||
|
" 285.440625 , 288.08359375, 290.7265625 , 293.36953125,\n",
|
||
|
" 296.0125 , 298.65546875, 301.2984375 , 303.94140625,\n",
|
||
|
" 306.584375 , 309.22734375, 311.8703125 , 314.51328125,\n",
|
||
|
" 317.15625 , 319.79921875, 322.4421875 , 325.08515625,\n",
|
||
|
" 327.728125 , 330.37109375, 333.0140625 , 335.65703125,\n",
|
||
|
" 338.3 ])"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 29,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 213,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAa4AAAGdCAYAAABKG5eZAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9W8xtWXYWCH5jzLnWvvyXc07cM50Xu5MS1Zbtguq2kEFtuYXaqLCQUPulhARGLQFtJbQACVkgI3ERpOCJN3gDtcCPppHcCIElMKJARcsUdmOXs8BunE5nXDIizjn/Ze+9LnOOfhiXOfcfYXCEpaKOfJZ0MiNO/P/ea80157h84xvfIBERvLxeXi+vl9fL6+X1glz8X/oGXl4vr5fXy+vl9fL6JNdLx/Xyenm9vF5eL68X6nrpuF5eL6+X18vr5fVCXS8d18vr5fXyenm9vF6o66Xjenm9vF5eL6+X1wt1vXRcL6+X18vr5fXyeqGul47r5fXyenm9vF5eL9T10nG9vF5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0apvBTQmuJAhkF2W2HvkaS9Flo1g5GkGaMbJXKn6MYC+p5rBpZL3zjNuYKAMgBJCMJtz/i+4lXfXdkC81urriUJkEWd1pRAx4ThnsCTGZ7F4DOHnUvbh3yQZrizptJxnxbI+D2ikr538ajCnEwRVM/GDcauYDBq7Kl1rwHYuiHcf06NKS/A5kMNBtxRkTkuWv09a6aQFkFdSIOo1PaFvmPCMiVUsUBg0OcTApYLoOwE9Z6Qj+o0yk4doGe1wmzvDViu9L6o6PPVrUCGirIQypaQZg802llyBKBmywg3fg+E4V4MrhSF/diQmmT2Vii+y/dXqQ0yLkML/Hg
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAa4AAAGdCAYAAABKG5eZAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9Waxta5bfBf6+bnZrrd2d7t4bceNGkw1OZyZpVRljW5WyCsqoQLwULyUk27wASiVINi8WlpFoBCl44g3e4AH8aAopZSFsCdJl2VSiBBPlyIzMjMiIuO3p9tnNWmt2X1cP45tz7ZtOICOQSG7lmdJVxDln79XM+X3fGOM//v//UDnnzNvr7fX2enu9vd5eX5BL/0F/gLfX2+vt9fZ6e729fpjrbeB6e7293l5vr7fXF+p6G7jeXm+vt9fb6+31hbreBq6319vr7fX2ent9oa63gevt9fZ6e7293l5fqOtt4Hp7vb3eXm+vt9cX6nobuN5eb6+319vr7fWFut4GrrfX2+vt9fZ6e32hLvsH/QF+lCulxKeffsput0Mp9Qf9cd5eb6+319vr7fVDXjln9vs97733Hlr/cDXUFzJwffrpp7z//vt/0B/j7fX2enu9v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rsZ53JqpwtOhNHQ8xGzjOb0OX7aZtJTSTbcm75so9MRuuMs/Js9puKPGvULMFTwVoxqSCBS0U5RLKFZCBupaIllr8r6zCXzRa7hN563n96y596/Dv8VPMJL8OOb959iY9uL5i9ZeodKKgaj9aZyVtuw4/u7/5DRYpf+ZVf4Rd/8Rf543/8jxNC4K/8lb/Cn/2zf5Zf//VfZ7PZrD/3L/6L/yL/9r/
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plt.figure()\n",
|
||
|
"plt.imshow(numpy.log10(csiborg_density_downsample[:, :, 128]), origin=\"lower\")\n",
|
||
|
"plt.show()\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.figure()\n",
|
||
|
"plt.imshow(numpy.log10(borg_overdensity[:, :, 128] + 1), origin=\"lower\")\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "venv_csiborg",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.11.4"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2
|
||
|
}
|