Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82389551
in_data.py
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
Wed, Sep 11, 03:21
Size
647 B
Mime Type
text/x-python
Expires
Fri, Sep 13, 03:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20452625
Attached To
rCTRACKER ctracker3
in_data.py
View Options
import
numpy
as
np
from
collections
import
namedtuple
npts
=
5
p0x
=
553319.0
p0y
=
137896.0
p1x
=
555803.0
p1y
=
139517.0
z0
=
2.5
z1
=
100.0
dz
=
5.0
zs
=
np
.
arange
(
z0
,
z1
,
dz
)
xs
=
np
.
linspace
(
p0x
,
p1x
,
npts
)
ys
=
np
.
linspace
(
p0y
,
p1y
,
npts
)
X
,
Z
=
np
.
meshgrid
(
xs
,
zs
)
Y
,
Z
=
np
.
meshgrid
(
ys
,
zs
)
x_seed
=
X
.
ravel
()
y_seed
=
Y
.
ravel
()
z_seed
=
Z
.
ravel
()
data
=
namedtuple
(
"Data"
,
(
'x_seed'
,
'y_seed'
,
'z_seed'
))
# The name of the exported data must be the same as the file's name to work out correctly
in_data
=
data
(
x_seed
,
y_seed
,
z_seed
)
Event Timeline
Log In to Comment