Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121611687
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, Jul 12, 10:59
Size
510 B
Mime Type
text/x-python
Expires
Mon, Jul 14, 10:59 (2 d)
Engine
blob
Format
Raw Data
Handle
27358326
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