You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for your work!In the part of INSTRUMENTAL FUNCTIONS, I have a few questions.
The first question is whether the Michelson Instrumental functions do not weight the center?
Code show as below:
defSLIT_MICHELSON(x,g):
""" Instrumental (slit) function. B(x) = 2/γ*sin(2pi*x/γ)/(2pi*x/γ) if x!=0 else 1, where 1/γ is the maximum optical path difference. """y=np.zeros(len(x))
index_zero=x==0index_nonzero=~index_zerodk_=2*np.pi/gx_=dk_*x[index_nonzero]
#Michelson:B(x)=\frac{2}{\gamma}\sin^2\left(\frac{\pi}{\gamma}x\right)/\left(\frac{\pi}{\gamma}x\right)^2#Original code:y[index_zero] = 1y[index_zero]=2/gy[index_nonzero] =2/g*np.sin(x_)/x_returny
The second question is the wing width sampling point. If the center point of 0 is not sampled, will it cause wave number drift?
Code show as below:
defarange_(lower,upper,step):
npnt=floor((upper-lower)/step)+1npnt=int(npnt) # cast to integer to avoid type errorsupper_new=lower+step*(npnt-1)
ifabs((upper-upper_new)-step) <1e-10:
upper_new+=stepnpnt+=1returnlinspace(lower,upper_new,npnt)
Thanks again for your contributions!
The text was updated successfully, but these errors were encountered:
Thank you very much for your work!In the part of INSTRUMENTAL FUNCTIONS, I have a few questions.
The first question is whether the Michelson Instrumental functions do not weight the center?
Code show as below:
The second question is the wing width sampling point. If the center point of 0 is not sampled, will it cause wave number drift?
Code show as below:
Thanks again for your contributions!
The text was updated successfully, but these errors were encountered: