Page MenuHomec4science

gread_header
No OneTemporary

File Metadata

Created
Fri, Nov 22, 20:20

gread_header

#!/usr/bin/python
from numpy import *
from pNbody import io
import sys
files = sys.argv[1:]
for file in files:
f = open(file)
tpl = (24,48,float,float,int32,int32,24,int32,int32,float,float,float,float,int32,int32,24,int32,float,52)
header = io.ReadBlock(f,tpl)
npart,massarr,atime,redshift,flag_sfr,flag_feedback,nall,flag_cooling,num_files,boxsize,omega0,omegalambda,hubbleparam,flag_age,flag_metals,nallhw,flag_entr_ic,critical_energy_spec,empty = header
f.close()
print file,atime

Event Timeline