Loading csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc 0 → 100644 +210 KiB File added.No diff preview for this file type. View file csst_ifs_sim/csst_ifs_sim.py +5 −5 Original line number Diff line number Diff line Loading @@ -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) ############################################################################### Loading Loading @@ -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 Loading Loading
csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc 0 → 100644 +210 KiB File added.No diff preview for this file type. View file
csst_ifs_sim/csst_ifs_sim.py +5 −5 Original line number Diff line number Diff line Loading @@ -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) ############################################################################### Loading Loading @@ -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 Loading