Created
June 27, 2023 11:14
-
-
Save zonca/881c773ff479146e908378091615e175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"papermill": { | |
"duration": 0.239907, | |
"end_time": "2023-02-13T04:22:37.550932", | |
"exception": false, | |
"start_time": "2023-02-13T04:22:37.311025", | |
"status": "completed" | |
}, | |
"tags": [] | |
}, | |
"outputs": [], | |
"source": [ | |
"import os\n", | |
"\n", | |
"os.environ[\n", | |
" \"OMP_NUM_THREADS\"\n", | |
"] = \"200\" # for jupyter.nersc.gov otherwise the notebook only uses 2 cores" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import numpy as np\n", | |
"import healpy as hp\n", | |
"from pathlib import Path" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_dir = Path(\"production-data\") / \"dust_gnilc\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"datadir = output_dir / \"raw\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"tags": [ | |
"parameters" | |
] | |
}, | |
"outputs": [], | |
"source": [ | |
"output_nside = 8192" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_lmax = int(min(2.5 * output_nside, 8192 * 2))" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Large scales" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"/global/homes/z/zonca/condanamaster2/lib/python3.8/site-packages/healpy/fitsfunc.py:643: ComplexWarning: Casting complex values to real discards the imaginary part\n", | |
" alm.real[i] = almr\n", | |
"/global/homes/z/zonca/condanamaster2/lib/python3.8/site-packages/healpy/fitsfunc.py:644: ComplexWarning: Casting complex values to real discards the imaginary part\n", | |
" alm.imag[i] = almi\n" | |
] | |
} | |
], | |
"source": [ | |
"alm_log_pol_tens_large_scale = hp.read_alm(\n", | |
" datadir\n", | |
" / \"gnilc_dust_largescale_template_logpoltens_alm_nside2048_lmax1024_complex64.fits.gz\",\n", | |
" hdu=(1, 2, 3),\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"map_log_pol_tens_large_scale = hp.alm2map(\n", | |
" alm_log_pol_tens_large_scale.astype(np.complex128), nside=output_nside\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"array([[ 3.73506452, 3.735317 , 3.73569709, ..., 3.75179248,\n", | |
" 3.75241809, 3.75209597],\n", | |
" [ 0.01206824, -0.01207586, 0.01203825, ..., 0.02188258,\n", | |
" -0.0218166 , 0.02191317],\n", | |
" [-0.01173623, 0.01173273, -0.01174043, ..., -0.02359359,\n", | |
" 0.02363389, -0.02364048]])" | |
] | |
}, | |
"execution_count": 9, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"map_log_pol_tens_large_scale" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Small scales modulation" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"modulate_alm = {\n", | |
" k: hp.read_alm(datadir / f\"gnilc_dust_{k}_modulation_alms_lmax768.fits.gz\").astype(\n", | |
" np.complex128\n", | |
" )\n", | |
" for k in [\"temperature\", \"polarization\"]\n", | |
"}" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Small scales" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cl_small_scale = hp.read_cl(\n", | |
" datadir / \"gnilc_dust_small_scales_logpoltens_cl_lmax16384.fits.gz\"\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"/global/homes/z/zonca/condanamaster2/lib/python3.8/site-packages/numpy/core/_asarray.py:102: ComplexWarning: Casting complex values to real discards the imaginary part\n", | |
" return array(a, dtype, copy=False, order=order)\n" | |
] | |
} | |
], | |
"source": [ | |
"synalm_lmax = 8192 * 2 # it needs to be the same for all output nside\n", | |
"# synalm_lmax = 1024\n", | |
"np.random.seed(8192)\n", | |
"\n", | |
"alm_log_pol_tens_small_scale = hp.synalm(\n", | |
" list(cl_small_scale),\n", | |
" lmax=synalm_lmax,\n", | |
" new=True,\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 13, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"alm_log_pol_tens_small_scale = [\n", | |
" hp.almxfl(each, np.ones(output_lmax))\n", | |
" for each in alm_log_pol_tens_small_scale\n", | |
"]\n", | |
"map_log_pol_tens_small_scale = hp.alm2map(\n", | |
" alm_log_pol_tens_small_scale, nside=output_nside\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"16385" | |
] | |
}, | |
"execution_count": 14, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { |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QWAqMNbNRZpYMzARe8LinSKLxOTaNUec0Pp2L6PGJqRAws6eBxUCumVWY2WznXD1wO7AQWAs865xb42WfXtH4HJvGqHMan85F4/hoAjkRkTgWU1sCIiLSNQoBEZE4phAQEYljCgERkTimEBARiWMKARGROKYQEBGJYwoBEZE4phAQEYlj/x/7VaK7ndKiMgAAAABJRU5ErkJggg==\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"needs_background": "light" | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"import matplotlib.pyplot as plt\n", | |
"plt.loglog(hp.alm2cl(alm_log_pol_tens_small_scale[0].astype(complex)))\n", | |
"len(hp.alm2cl(alm_log_pol_tens_small_scale[0].astype(complex)))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 15, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"map_log_pol_tens_small_scale[0] *= hp.alm2map(\n", | |
" modulate_alm[\"temperature\"], output_nside\n", | |
")\n", | |
"map_log_pol_tens_small_scale[1:] *= hp.alm2map(\n", | |
" modulate_alm[\"polarization\"], output_nside\n", | |
")\n", | |
"assert np.isnan(map_log_pol_tens_small_scale).sum() == 0" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 16, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"array([[-0.11883597, -0.13409836, -0.13284604, ..., -0.03759012,\n", | |
" -0.04488804, -0.03506894],\n", | |
" [ 0.00683536, -0.00612315, 0.00449982, ..., -0.00329152,\n", | |
" 0.00467237, -0.00257872],\n", | |
" [ 0.00955996, -0.00842392, 0.01196066, ..., 0.00195204,\n", | |
" -0.00244644, 0.00073119]])" | |
] | |
}, | |
"execution_count": 16, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"map_log_pol_tens_small_scale" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 17, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[<matplotlib.lines.Line2D at 0x7fac6975ebb0>]" | |
] | |
}, | |
"execution_count": 17, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYEAAAD8CAYAAACRkhiPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAn3UlEQVR4nO3de3hU1b3/8fc3gRDuCAQQCIRrEPCCpmC9ay0CoWqtbb3UY5VK1aJtbe0J6jm19UJ6fm3P0WqLWC3aU1HKsRYbVFRUUKkSQOUOIUQSAiSQcA0ht/X7IwlNxkmYZCazZzKf1/PkeTJrz575sJ4h39lr772WOecQEZHYFOd1ABER8Y6KgIhIDFMREBGJYSoCIiIxTEVARCSGqQiIiMSwDl4HaIm+ffu6lJQUr2OIiESV1atX73POJfnbFlVFICUlhezsbK9jiIhEFTP7vKltGg4SEYlhKgIiIjFMRUBEJIapCIiIxDAVARGRGKYiICISw1QERFpoz8Fydh885nUMkZBQERBpgT0Hyzl3ztt8ec4y9h85zp9X5lFRVeN1LJFWs2haVCYtLc3pZjHxUkpG1hfaunXqwJxrTqd/j0QmDuvtQSqR5pnZaudcmr9tOhIQCVDDL0yXn9bvxO9Hjldx14K1fOupldz/t3VU10TPFysRFQGRAG0oPATAzV8eyh9v/hIrfnYp900b0+g5f/loJyPuW8KfV+ZxrKLai5giLaLhIJEA/c9bW3ns7W2suv9y+nbrdKJ976Fyjh6v4ujxar72xPuN9pl16Uh+/NXRxMdZuOOKnKDhIJEQeHdLMROSezUqAAD9eyQyPKkbpw/uyboHJzfa9sQ7OYy4bwlTH1uhYSKJSCoCIgGornFs2n2ICUNOafZ53RM7kpeZTu6j0/j+RcNPtG/afYgR9y0h87XNKgYSUVQERALw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igpeZ5HSDCqX+ap/5pnvqneRHZPzF1JCAiIo3F2pGAiIg0oCIgIhLDVARERGJYzBYBM+tqZs+Z2dNmdqPXeSKNmQ03s2fMbJHXWSKVmV1d9/n5u5lN9jpPpDGz08xsrpktMrM7vM4Tier+Dq02s+leZWhXRcDMnjWzIjNb79M+xcy2mFmOmWXUNV8DLHLO3QZcGfawHmhJ/zjncp1zM7xJ6p0W9tErdZ+f7wLf9iBu2LWwfzY5524HvgVE3KWRbaGFf4MA/h1YGN6UjbWrIgDMB6Y0bDCzeOBJYCowFrjezMYCg4H8uqdVhzGjl+YTeP/Eqvm0vI8eqNseC+bTgv4xsyuB94G3wxvTM/MJsH/M7HJgI7A33CEbaldFwDm3HCjxaZ4I5NR9s60AXgSuAgqoLQTQzvqhKS3sn5jUkj6yWr8CXnPOrQl3Vi+09DPknFvsnDsPiIkh1xb2z6XAucANwG1m5snfoQ5evGmYDeJf3/ih9o//JOBx4AkzSyd80ydEIr/9Y2Z9gEeACWY22zk3x5N0kaGpz9BdwOVATzMb6Zyb60W4CNDUZ+gSaoddOwFLwh8rYvjtH+fcLAAz+y6wzzlX40G2mCgC5qfNOeeOAreEO0wEaqp/9gO3hztMhGqqjx6n9stErGuqf94F3g1vlIjkt39O/OLc/PBF+aJYGAYpAJIbPB4MFHqUJRKpf05OfdQ89U/zIrp/YqEIrAJGmdkwM0sArgMWe5wpkqh/Tk591Dz1T/Miun/aVREwswXASiDVzArMbIZzrgqYBbwBbAIWOuc2eJnTK+qfk1MfNU/907xo7B9NICciEsPa1ZGAiIi0jIqAiEgMUxEQEYlhKgIiIjFMRUBEJIapCIiIxDAVARGRGKYiICISw1QERERi2P8HXhypYODDoDIAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"needs_background": "light" | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"plt.loglog(hp.anafast(map_log_pol_tens_small_scale[0], lmax=16384))" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Combine scales\n", | |
"\n", | |
"* Combine small and large scale maps\n", | |
"* Transform from logpoltens to IQU\n", | |
"* Write output map" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 18, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"map_log_pol_tens = map_log_pol_tens_large_scale\n", | |
"map_log_pol_tens += map_log_pol_tens_small_scale" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 19, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"del map_log_pol_tens_small_scale" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 20, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"from pysm3.utils import log_pol_tens_to_map" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 21, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_map = log_pol_tens_to_map(map_log_pol_tens)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 22, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"array([[ 3.72037508e+01, 3.66491306e+01, 3.67077472e+01, ...,\n", | |
" 4.10425484e+01, 4.07681616e+01, 4.11603859e+01],\n", | |
" [ 7.03200141e-01, -6.66901679e-01, 6.07019814e-01, ...,\n", | |
" 7.62817241e-01, -6.98765800e-01, 7.95575034e-01],\n", | |
" [-8.09556476e-02, 1.21250909e-01, 8.08351243e-03, ...,\n", | |
" -8.87983650e-01, 8.63559839e-01, -9.42672655e-01]])" | |
] | |
}, | |
"execution_count": 22, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"output_map" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 23, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[<matplotlib.lines.Line2D at 0x7faae20f1460>]" | |
] | |
}, | |
"execution_count": 23, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD8CAYAAAB0IB+mAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAl3ElEQVR4nO3deXhV1bnH8e+bGcIMYQpDwiCjoBIRUREUNRgc6lBFW6+WSrVqW3tvNShaWkVT7YBWq0WrqG1BqtYJUARBBkEIggwyRQgQpgQiMwSSrPtHYsxMQnLOPsn5fZ6HR/Z7hv2e9cRfNuvsvbY55xARkfovxOsGRETEPxT4IiJBQoEvIhIkFPgiIkFCgS8iEiQU+CIiQSLM6wYq06pVKxcXF+d1GyIidcry5cv3OudiStcDOvDj4uJITU31ug0RkTrFzLaWV9eUjohIkFDgi4gECQW+iEiQUOCLiAQJBb6ISJDw21k6ZhYCPAY0AVKdc6/5a98iIlLDI3wze8XMMs1sTal6opltMLM0M0suLF8DxAIngYya7FdERKqvplM6k4HE4gUzCwWeB0YAvYFRZtYb6AEsds79Gri7hvsVEZFqqlHgO+fmA9mlygOBNOfcZufcCWAqBUf3GcC3hc/Jq+g9zWyMmaWaWWpWVlZN2hMRkWJ88aVtLLC92HZGYe0d4Aoz+yswv6IXO+cmOecSnHMJMTFlrgwWEZHT5Isvba2cmnPOHQVG+2B/IiJSBb44ws8AOhbb7gDs9MF+RESkGnwR+MuA7mYWb2YRwM3A+z7Yj4iIVENNT8ucAiwGephZhpmNds7lAvcCHwPrgGnOubU1b1VERGqiRnP4zrlRFdRnADNq8t4iIlK7tLSCiEiQUOCLiAQJBb6ISJBQ4IuIBAkFvohIkFDgi4gECQV+NaRlHubA0ZNetyEiclr8dgOUuuyr7ft5Zs4mPl2fyZmxTXnn54MJD9XvShGpW5RalVix7Vtuf3Up1zy/iC+3fcu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g0vhUTuNTOY3PqQXsGNXHwF8GdDezeDOLAG4G3ve4p0Ci8amcxqdyGp9TC9gxqtOBb2ZTgMVADzPLMLPRzrlc4F7gY2AdMM05t9bLPr2i8amcxqdyGp9Tq2tjpMXTRESCRJ0+whcRkapT4IuIBAkFvohIkFDgi4gECQW+iEiQUOCLiAQJBb6ISJBQ4IuIBAkFvohIkPh/DOg6wnH96ZMAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"needs_background": "light" | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"cl_output_map = hp.anafast(output_map[0], lmax=16384)\n", | |
"plt.loglog(cl_output_map)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 24, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"del map_log_pol_tens" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Galactic plane fix" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 25, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"galplane_fix = hp.read_map(datadir / \"gnilc_dust_galplane.fits.gz\", (0, 1, 2, 3))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 26, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_map *= hp.ud_grade(galplane_fix[3], output_nside)\n", | |
"output_map += hp.ud_grade(galplane_fix[:3] * (1 - galplane_fix[3]), output_nside)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 27, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"array([[ 3.72037508e+01, 3.66491306e+01, 3.67077472e+01, ...,\n", | |
" 4.10425484e+01, 4.07681616e+01, 4.11603859e+01],\n", | |
" [ 7.03200141e-01, -6.66901679e-01, 6.07019814e-01, ...,\n", | |
" 7.62817241e-01, -6.98765800e-01, 7.95575034e-01],\n", | |
" [-8.09556476e-02, 1.21250909e-01, 8.08351243e-03, ...,\n", | |
" -8.87983650e-01, 8.63559839e-01, -9.42672655e-01]])" | |
] | |
}, | |
"execution_count": 27, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"output_map" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Color correction" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Planck 353 GHz color correction https://github.com/galsci/pysm/issues/99" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 28, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_map *= 0.911" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 29, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_map_sm = hp.smoothing(output_map, fwhm = np.radians(0.9/60))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 30, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[<matplotlib.lines.Line2D at 0x7faae1fdf310>]" | |
] | |
}, | |
"execution_count": 30, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD8CAYAAAB0IB+mAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAlcElEQVR4nO3deXxU1f3/8dcnu+xCWBSCCRg2sYgEZBFBBUGx0tp+FfRnXVDA1lZr1Qb3pQptv639Wm2FVoq1FYq41EoUFRWssgWUfYssJoAkCIQ1hJDz+yNxzE7CZObOZN7PxyOPx9wzd+Z+5hjf3Jw591xzziEiIg1flNcFiIhIcCjwRUQihAJfRCRCKPBFRCKEAl9EJEI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ErgFCaipioNQxfwB+CcwObpXlhXXgAzOAkWUbzCwaeA64HOgBjDWzHkAHILt0t/q/HXxomkHt+ycSzaDu/fNg6fORYAZ16B8zuwr4LzA/uGV6Zga17B8zGwasA3YHu8iywjrwnXMLgb0VmvsBWaVnrIXALGA0kENJ6EOYf+7aqmP/RJy69I+V+DXwtnNuRbBr9UJdf3+cc2865wYCETFkWsf+uRjoD1wH3GZmnmRQjBcHDbD2fHsmDyVBfwHwDPCsmY0iOJc/h6oq+8fMWgFPAr3NbJJzbrIn1Xmvut+fnwLDgOZmdrZz7nkvigsB1f3+DKVk2DQeyAh+WSGjyv5xzt0BYGY3AXucc8Ue1NYgA9+qaHPOucPAzcEuJgRV1z9fAxODXUwIqq5/nqHkpCHSVdc/HwEfBbeUkFRl//geODcjeKVU1hCHNnKApDLbHYCdHtUSitQ/NVP/1Ez9U7OQ7p+GGPjLgFQzSzGzOGAM8KbHNYUS9U/N1D81U//ULKT7J6wD38xmAouArmaWY2bjnHNFwB3APGA9MNs5t9bLOr2i/qmZ+qdm6p+ahWP/aPE0EZEIEdZn+CIiUnsKfBGRCKHAFxGJEAp8EZEIocAXEYkQCnwRkQihwBcRiRAKfBGRCKHAFxGJEP8fZPW2XinZ048AAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"needs_background": "light" | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"cl_output_map_sm = hp.anafast(output_map_sm[0], lmax=16384)\n", | |
"plt.loglog(cl_output_map_sm)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cl_output_map_postfix = hp.anafast(output_map[0], lmax=16384)\n", | |
"plt.loglog(cl_output_map_postfix)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"hp.mollview(galplane_fix[3])" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"output_map[0][hp.ud_grade(galplane_fix[3], 8192)<1] = 0" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"hp.mollview(output_map[0])" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cl_output_map_postfix_masked = hp.anafast(output_map[0], lmax=16384)\n", | |
"plt.loglog(cl_output_map_postfix_masked)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"hp.write_map(\n", | |
" output_dir / f\"gnilc_dust_template_nside{output_nside}.fits\",\n", | |
" output_map,\n", | |
" dtype=np.float32,\n", | |
" overwrite=True,\n", | |
" column_units = \"uK_RJ\",\n", | |
" extra_header = [(\"lmax\", output_lmax), (\"ref_freq\", \"353 GHz\")]\n", | |
")" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "condanamaster2", | |
"language": "python", | |
"name": "condanamaster2" | |
}, | |
"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.8.0" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment