Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
artiq_experiments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Nunez Barreto
artiq_experiments
Commits
2ba5fa0e
Commit
2ba5fa0e
authored
Mar 25, 2024
by
Nicolas Nunez Barreto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xd
parent
058680d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
RDS_piezobeamsizes_2024_invariance.py
...alDopplerShift_news/RDS_piezobeamsizes_2024_invariance.py
+40
-1
No files found.
analisis/plots/20240312_RotationalDopplerShift_news/RDS_piezobeamsizes_2024_invariance.py
View file @
2ba5fa0e
...
...
@@ -12,7 +12,7 @@ from scipy import interpolate
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20220106_CPT_DosLaseres_v08_TISA_DR\Data
os
.
chdir
(
'/home/nico/Documents/artiq_experiments/analisis/plots/20240312_RotationalDopplerShift_news/Data'
)
#
os.chdir('/home/nico/Documents/artiq_experiments/analisis/plots/20240312_RotationalDopplerShift_news/Data')
"""
...
...
@@ -468,6 +468,45 @@ plt.grid()
#%%
"""
Va otro modelo con funciones de bessel
F(r) = A*(J_0 (b/r))²
"""
from
scipy.special
import
jv
def
modelo3
(
r
,
a
,
b
,
c
,
d
):
return
a
*
((
jv
(
0
,
b
*
(
1
/
r
)))
**
2
)
+
c
*
((
jv
(
0
,
d
*
(
1
/
r
)))
**
2
)
rfit
=
np
.
arange
(
x1
,
len
(
Intensityver1
)
*
20
+
x1
,
20
)
yfit
=
[
p
for
p
in
pmdepthsdrver1
]
rlong
=
np
.
arange
(
0
,
1000
,
1
)
popt
,
pcov
=
curve_fit
(
modelo3
,
rfit
,
yfit
,
p0
=
(
0.7
,
1
))
print
(
popt
)
plt
.
figure
()
plt
.
errorbar
(
np
.
arange
(
x1
,
len
(
Intensityver1
)
*
20
+
x1
,
20
),
[
p
for
p
in
pmdepthsdrver1
],
yerr
=
errorpmdepthsdrver1
,
fmt
=
'o'
,
color
=
'red'
,
capsize
=
3
,
markersize
=
8
,
zorder
=
1
)
plt
.
plot
([
x
*
20
for
x
in
xchicofinal
],[
i
/
np
.
max
(
IntensityChico
)
for
i
in
IntensityChico
],
'o'
,
color
=
'red'
,
alpha
=
0.3
)
plt
.
errorbar
(
np
.
arange
(
x2
,
len
(
Intensityver2
)
*
20
+
x2
,
20
),
[
p
for
p
in
pmdepthsdrver2
],
yerr
=
errorpmdepthsdrver2
,
fmt
=
'o'
,
color
=
'blue'
,
capsize
=
3
,
markersize
=
8
,
zorder
=
1
)
plt
.
plot
([
x
*
20
for
x
in
xgrandefinal
],[
i
/
np
.
max
(
IntensityGrande
)
for
i
in
IntensityGrande
],
'o'
,
color
=
'blue'
,
alpha
=
0.3
)
plt
.
plot
(
rlong
,
modelo3
(
rlong
,
*
popt
),
zorder
=
2
,
color
=
'black'
,
linewidth
=
3
,
linestyle
=
'dashed'
,
label
=
r'$I(r)=a\,(J_0(\frac{b}{r}))^2$'
)
plt
.
xlim
(
-
20
,
600
+
x2
+
10
)
plt
.
legend
()
plt
.
grid
()
...
...
Write
Preview
Markdown
is supported
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