Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92693197
gread_header
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 20:20
Size
506 B
Mime Type
text/x-python
Expires
Sun, Nov 24, 20:20 (2 d)
Engine
blob
Format
Raw Data
Handle
22488843
Attached To
rGTOOLS Gtools
gread_header
View Options
#!/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
Log In to Comment