convert_xyz_to_spherical¶
- pywwt.windows.convert_xyz_to_spherical(x, y, z, is_astro=True, ra_units='degrees')[source]¶
Convert rectangular coordinates (x,y,z) to spherical coordinates (Lat, Lon, Alt) or (RA, Dec, Alt).
- Parameters:
- x
numpy.ndarray The x-coordinates of the data.
- y
numpy.ndarray The y-coordinates of the data.
- z
numpy.ndarray The z-coordinates of the data.
- is_astro
bool, optional Whether the coordinate system is astronomical (RA, Dec) or geographical (Lat, Lon)?
- ra_units{‘degrees’, ‘hours’}, optional
The unit of the RA/Lon coordinate.
- x
- Returns:
- spherical
dict A dict of NumPy arrays corresponding to the positions in spherical coordinates.
- spherical