Skip to content
/ AnaSimba Public

a python package for processing and analyzing the cosmological simulation Simba

License

Notifications You must be signed in to change notification settings

wx-ys/AnaSimba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

AnaSimba is a python package for processing and analyzing the cosmological simulation Simba.

Installation

git clone https://github.com/wx-ys/AnaSimba.git

Install this in editable mode.

cd AnaSimba
pip install -e .

AnaSimba uses the following python packages:

  • numpy, scipy
  • pynbody
  • h5py
  • tqdm
  • six
  • numba

Usage

from AnaSimba import simba_simulation 
BasePath = 'filepath'       
snap=151  #snapshot

Snapshot=simba_simulation.Snapshot(BasePath,snap) # use the data of snapshot151

# load a single galaxy
sub = snapshot.load_particle(galaxyID=30,decorate=True)
sub.physical_units() #in physical unit
sub.face_on(alignwith='star',rmax=8) # face on, based on stellar angular momentum.

See example for more details,

License

MIT © Shuai Lu

Acknowledgments

About

a python package for processing and analyzing the cosmological simulation Simba

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published