diff --git a/csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc b/csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7382b370ef4b987275a79ee6259f3541527d96fc Binary files /dev/null and b/csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc differ diff --git a/csst_ifs_sim/csst_ifs_sim.py b/csst_ifs_sim/csst_ifs_sim.py index a4ea8f9d9b6202b14d709fcfe0536803971c5997..4d814fca166e748355028cea0c3fb42951cc45f8 100644 --- a/csst_ifs_sim/csst_ifs_sim.py +++ b/csst_ifs_sim/csst_ifs_sim.py @@ -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