From abf12651ff9175c2e7a2c483a8848df762b54bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C3=ABl=20M?= <154762804+Yael-II@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:21:57 +0200 Subject: [PATCH] Delete COSMIC/COSMIC_v3_coordinates.py --- COSMIC/COSMIC_v3_coordinates.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 COSMIC/COSMIC_v3_coordinates.py diff --git a/COSMIC/COSMIC_v3_coordinates.py b/COSMIC/COSMIC_v3_coordinates.py deleted file mode 100644 index 9996883..0000000 --- a/COSMIC/COSMIC_v3_coordinates.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -* COSMIC - COORDINATES -* Version 3 -@ Yaƫl Moussouni -@ Unistra, P&E, MSc1-MoFP -@ Observatory of Strasbourg (intern) -""" - -import numpy as np -import amuse.units.units as u_amuse -import astropy.units as u_astropy - -import astropy.coordinates as c - -def xyz2radecdist(stars): - X = stars.x.value_in(u_amuse.pc) - Y = stars.y.value_in(u_amuse.pc) - Z = stars.z.value_in(u_amuse.pc) - Galactocentric = c.SkyCoord(x = X * u_astropy.pc, y = Y * u_astropy.pc, z = Z * u_astropy.pc, frame=c.Galactocentric) - ICRS = Galactocentric.transform_to(c.ICRS) - RA = ICRS.ra.deg - DEC = ICRS.dec.deg - DIST = ICRS.distance.pc - stars.ra = RA | u_amuse.deg - stars.dec = DEC | u_amuse.deg - stars.dist = DIST | u_amuse.pc - return stars -