mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-23 03:38:03 +00:00
c748c87e45
* simplify Planck catalogue * add MCXC and base survey * Add 2MPP classes * move match to MCXC to Planck * add halo catalogue * rm comment * rm unused imports * Move conversion to box * add min mass * Run on all simulations * rm old function * add combined catalogue * add halo positions * add knn neighbors * set to 5 sims for testing * add docstring * Switch to neighbours in a catalogue * rename io to read * fix indentation * rename to read * io -> read * add import * add RealisationMatcher * io -> read * add docstrings * add search_sim_indiices * update todo * keep make_cat at 10 for now * update nb
42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
# Copyright (C) 2022 Richard Stiskalek
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by the
|
|
# Free Software Foundation; either version 3 of the License, or (at your
|
|
# option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
# Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
"""
|
|
Notebook utility functions.
|
|
"""
|
|
|
|
# import numpy
|
|
# from os.path import join
|
|
|
|
# try:
|
|
# import csiborgtools
|
|
# except ModuleNotFoundError:
|
|
# import sys
|
|
# sys.path.append("../")
|
|
|
|
|
|
Nsplits = 200
|
|
dumpdir = "/mnt/extraspace/rstiskalek/csiborg/"
|
|
|
|
|
|
# Some chosen clusters
|
|
_coma = {"RA": (12 + 59/60 + 48.7 / 60**2) * 15,
|
|
"DEC": 27 + 58 / 60 + 50 / 60**2,
|
|
"COMDIST": 102.975}
|
|
|
|
_virgo = {"RA": (12 + 27 / 60) * 15,
|
|
"DEC": 12 + 43/60,
|
|
"COMDIST": 16.5}
|
|
|
|
specific_clusters = {"Coma": _coma, "Virgo": _virgo}
|