Skip to content

Commit dba9195

Browse files
Fix not necessary conversion anymore (#199)
1 parent f7b623b commit dba9195

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fink_utils/sso/ephem.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
import pandas as pd
1818

19-
from astropy.coordinates import SkyCoord
20-
import astropy.units as u
2119

2220
from pyspark.sql.functions import pandas_udf, PandasUDFType
2321
from pyspark.sql.types import MapType, StringType, FloatType, ArrayType
@@ -233,11 +231,6 @@ def extract_ztf_ephemerides_from_miriade(ssnamenr, cjd, observer, shift, uid, me
233231
for k in COLUMNS
234232
}
235233

236-
# In-place transformation of RA/DEC coordinates
237-
sc = SkyCoord(ephems_corr["RA"], ephems_corr["DEC"], unit=(u.deg, u.deg))
238-
ephems_corr["RA"] = sc.ra.value * 15
239-
ephems_corr["DEC"] = sc.dec.value
240-
241234
out.append(ephems_corr)
242235
else:
243236
# Not sure about that

0 commit comments

Comments
 (0)