Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
7ade3ecd
Commit
7ade3ecd
authored
Jul 25, 2015
by
Daniel Brown
Browse files
fixing read_map
parent
a13f570e
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/maps.py
View file @
7ade3ecd
...
...
@@ -912,6 +912,8 @@ def read_map(filename, mapFormat='finesse', scaling=1.0e-9):
data
=
np
.
loadtxt
(
filename
,
dtype
=
np
.
float64
,
ndmin
=
2
,
comments
=
'%'
)
return
surfacemap
(
name
,
maptype
,
size
,
center
,
step
,
scaling
,
data
)
# Converts raw zygo and ligo mirror maps to the finesse
# format. Based on the matlab scripts 'FT_read_zygo_map.m' and
# 'FT_read_ligo_map.m'.
...
...
@@ -1124,15 +1126,15 @@ def read_map(filename, mapFormat='finesse', scaling=1.0e-9):
# Changing NaN to zeros. Just to be able to plot the
# map with surfacemap.plot().
data
[
isNan
]
=
0
return
surfacemap
(
name
,
maptype
,
size
,
center
,
step
,
scaling
,
data
,
notNan
)
# TODO: Add options for reading virgo maps, and .xyz zygo
# maps (need .xys file for this). Binary ligo-maps?
# The intensity data is not used to anything here. Remove
# or add to pykat?
return
surfacemap
(
name
,
maptype
,
size
,
center
,
step
,
scaling
,
data
,
notNan
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment