mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-23 00:48:03 +00:00
1d847cbd06
* Rename paths object * Remove redshift calculation * Explicit keywrod arg * Rename box units * Basic renaming * Little docs * Rename paths * add imports * Sort imports * Add Quijote cat * Split boxes * add Quijote path * Add origin argument * Update nbs
25 KiB
25 KiB
In [1]:
import numpy as np
%matplotlib notebook
import matplotlib.pyplot as plt
# import fortranfile as ff
from os import listdir
import sys
sys.path.append("../")
import galomatch
%load_ext autoreload
%autoreload 2
from copy import copy
In [2]:
simpath = galomatch.io.get_sim_path(9844)
In [3]:
arr = galomatch.io.read_clumps(1016, simpath)
galomatch.io.convert_mass_cols(arr, "mass_cl")
galomatch.io.convert_position_cols(arr, ["peak_x", "peak_y", "peak_z"])
In [12]:
arr["peak_x"]
Out[12]:
In [20]:
plt.figure()
# plt.scatter(arr["peak_x"], arr["peak_y"], s=0.00001)
plt.hist(np.log10(arr["mass_cl"]), bins="auto")
plt.show()
In [ ]:
In [ ]: