Commit 1728b12e authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update

parent 2e4d01ad
Pipeline #7148 failed with stage
in 0 seconds
......@@ -1211,17 +1211,17 @@ def LSR_velocity(ra, dec, velocity, Obstime):
# convert ra and dec to
source = SkyCoord(ra*u.deg, dec*u.deg, frame='icrs',
unit=(u.hourangle, u.deg))
ll = source.galactic.l.deg
al = source.galactic.l.deg
b = source.galactic.b.deg
c = SkyCoord(ll=ll*u.degree, b=b*u.degree, frame='galactic')
c = SkyCoord(l=al*u.degree, b=b*u.degree, frame='galactic')
c_icrs = c.transform_to('icrs')
barycorr = c_icrs.radial_velocity_correction(
obstime=Time(Obstime), location=local)
velocity = velocity + barycorr.value/1000
# print(barycorr.value/1000)
ll = ll * np.pi / 180
cl = al * np.pi / 180
b = b * np.pi / 180
return velocity + 9 * np.cos(ll) * np.cos(b) + 12 * np.sin(ll) * np.cos(b) + 7 * np.sin(b)
return velocity + 9 * np.cos(cl) * np.cos(b) + 12 * np.sin(cl) * np.cos(b) + 7 * np.sin(b)
###############################################################################
......@@ -3477,7 +3477,7 @@ class IFSsimulator():
# add random pointing error to telescope, the telescope poingt parameter in
# fits header have random pointing error
ud_ra = np.random.random() # Choose a random shift in arcsec
self.information['ra_pnt0'] = self.information['dec_pnt0']+0.01*ud_ra
self.information['ra_pnt0'] = self.information['ra_pnt0']+0.01*ud_ra
ud_dec = np.random.random()
self.information['dec_pnt0'] = self.information['dec_pnt0']+0.01*ud_dec
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment