{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Matching of haloes to clusters" ] }, { "cell_type": "code", "execution_count": 144, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The autoreload extension is already loaded. To reload it, use:\n", " %reload_ext autoreload\n" ] } ], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from astropy.cosmology import FlatLambdaCDM\n", "\n", "import pandas as pd\n", "\n", "%load_ext autoreload\n", "%autoreload 2\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Load in the data\n", "Harry: the exact routine may not work, I had to edit the raw .txt file a little" ] }, { "cell_type": "code", "execution_count": 124, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[34.14606699 9.28692846 11.11279198 16.85641068 3.71636485 33.43032196\n", " 24.65595192 29.91007806 40.31604335 9.346801 ]\n" ] }, { "data": { "text/html": [ "
\n", " | halo_ID | \n", "KIND | \n", "l[deg] | \n", "b[deg] | \n", "d[kpc] | \n", "z | \n", "Rdelta[kpc] | \n", "rhos[Msol/kpc^3] | \n", "rs[kpc] | \n", "prof[keywrd] | \n", "#1 | \n", "#2 | \n", "#3 | \n", "FOVDiam[deg] | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "halo_647110 | \n", "CLUSTER | \n", "-47.66 | \n", "29.96 | \n", "-1 | \n", "0.01142 | \n", "4523.71 | \n", "643822.01573 | \n", "663.92743 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "37.74875 | \n", "
1 | \n", "halo_10128802 | \n", "CLUSTER | \n", "-90.76 | \n", "25.97 | \n", "-1 | \n", "0.00310 | \n", "1975.98 | \n", "611499.11522 | \n", "294.56973 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "60.00762 | \n", "
2 | \n", "halo_1338057 | \n", "CLUSTER | \n", "-35.42 | \n", "-6.15 | \n", "-1 | \n", "0.00371 | \n", "2738.50 | \n", "593219.40743 | \n", "413.73423 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "69.19885 | \n", "
3 | \n", "halo_20419495 | \n", "CLUSTER | \n", "87.42 | \n", "88.09 | \n", "-1 | \n", "0.00563 | \n", "3082.73 | \n", "596355.51967 | \n", "465.36921 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "51.83070 | \n", "
4 | \n", "halo_20355327 | \n", "CLUSTER | \n", "-94.48 | \n", "75.29 | \n", "-1 | \n", "0.00124 | \n", "1644.94 | \n", "635981.23866 | \n", "240.83028 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "119.66328 | \n", "
5 | \n", "halo_2503990 | \n", "CLUSTER | \n", "-35.24 | \n", "-12.06 | \n", "-1 | \n", "0.01118 | \n", "3164.45 | \n", "600754.77263 | \n", "478.21044 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "27.04669 | \n", "
6 | \n", "halo_21251859 | \n", "CLUSTER | \n", "31.15 | \n", "44.45 | \n", "-1 | \n", "0.00824 | \n", "2731.34 | \n", "595715.63380 | \n", "413.32640 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "31.59913 | \n", "
7 | \n", "halo_745775 | \n", "CLUSTER | \n", "-47.49 | \n", "36.08 | \n", "-1 | \n", "0.01000 | \n", "2878.14 | \n", "597011.32933 | \n", "435.71418 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "27.49495 | \n", "
8 | \n", "halo_3003328 | \n", "CLUSTER | \n", "39.76 | \n", "-46.41 | \n", "-1 | \n", "0.01349 | \n", "3172.97 | \n", "602266.09230 | \n", "479.82208 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "22.50342 | \n", "
9 | \n", "halo_4200359 | \n", "CLUSTER | \n", "-28.67 | \n", "-22.77 | \n", "-1 | \n", "0.00312 | \n", "1826.88 | \n", "621061.51007 | \n", "270.55674 | \n", "kZHAO | \n", "1.0 | \n", "3.0 | \n", "1.0 | \n", "55.35257 | \n", "