Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100642816
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
Sat, Feb 1, 10:44
Size
510 B
Mime Type
text/x-python
Expires
Mon, Feb 3, 10:44 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24004899
Attached To
rGTOOLS Gtools
gread_header
View Options
#!/usr/bin/env 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