Read boxsize
This commit is contained in:
@@ -52,7 +52,9 @@ def load_fields(path):
|
||||
|
||||
# Create dataset
|
||||
data = {
|
||||
"header": {"time": time * UnitTime_in_Myr, "fluids": ["gas", "stars"]},
|
||||
"header": {"time": time * UnitTime_in_Myr,
|
||||
"fluids": ["gas", "stars"],
|
||||
"box_size": box_size * UnitLength_in_kpc },
|
||||
"gas": {
|
||||
"position": (
|
||||
np.asarray(gas["CenterOfMass"]) - np.array([0.5, 0.5, 0.5]) * box_size
|
||||
|
||||
Reference in New Issue
Block a user