mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-05-14 06:31:11 +00:00
Environmental properties (#20)
* rm get_positions * Add comment * add halfwidth func * Update docs * Add imprt * Evaluate multiple fields simulatenously * add halfwidth selection * Change order of grav field and tensor field * Add gravitational field norm * Add eigenvalue calculation * Sorted eigenvalues * add init script * add progress * Add surveys * Add more survey flexibility * Minor changes * add survey names * rm name * Fix list bug * Fig bugs when running the script * add phi to dtype * fix dump bug * Add comment * Add smoothing options * Add further comment * Update TODO
This commit is contained in:
parent
65059f3798
commit
2e99b901ac
8 changed files with 302 additions and 109 deletions
|
@ -18,11 +18,11 @@ Notebook utility functions.
|
|||
|
||||
# from os.path import join
|
||||
|
||||
# try:
|
||||
# import csiborgtools
|
||||
# except ModuleNotFoundError:
|
||||
# import sys
|
||||
# sys.path.append("../")
|
||||
try:
|
||||
import csiborgtools
|
||||
except ModuleNotFoundError:
|
||||
import sys
|
||||
sys.path.append("../")
|
||||
|
||||
|
||||
Nsplits = 200
|
||||
|
@ -39,3 +39,23 @@ _virgo = {"RA": (12 + 27 / 60) * 15,
|
|||
"COMDIST": 16.5}
|
||||
|
||||
specific_clusters = {"Coma": _coma, "Virgo": _virgo}
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Surveys #
|
||||
###############################################################################
|
||||
|
||||
|
||||
class SDSS:
|
||||
@staticmethod
|
||||
def steps(cls):
|
||||
return [(lambda x: cls[x], ("IN_DR7_LSS",)),
|
||||
(lambda x: cls[x] < 17.6, ("ELPETRO_APPMAG_r", )),
|
||||
(lambda x: cls[x] < 155, ("DIST", ))
|
||||
]
|
||||
|
||||
def __call__(self):
|
||||
return csiborgtools.read.SDSS(h=1, sel_steps=self.steps)
|
||||
|
||||
|
||||
surveys = {"SDSS": SDSS}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue