spherical_project_array

sofia_redux.scan.coordinate_systems.projection.projection_numba_functions.spherical_project_array(x, y, cos_lat, sin_lat, celestial_pole_x, celestial_pole_y, celestial_cos_lat, celestial_sin_lat, native_pole_x)[source]

Project multiple coordinates from a native pole onto a celestial pole.

This function is a wrapper around spherical_project() to process projections when at least one of either the native coordinates, celestial pole, or native pole consists of array values.

Parameters:
xfloat or numpy.ndarray

The native longitude coordinates in radians. If an array is passed in, it should be of shape (1,) or (n,).

yfloat or numpy.ndarray

The native latitude coordinates in radians. If an array is passed in, it should be of shape (1,) or (n,)

cos_latfloat or numpy.ndarray

The cosine of y.

sin_latfloat or numpy.ndarray

The sine of y.

celestial_pole_xfloat or numpy.ndarray

The native longitude of the celestial pole. If an array is passed in, it should be of shape (1,) or (n,).

celestial_pole_yfloat or numpy.ndarray

The native latitude of the celestial pole. If an array is passed in, it should be of shape (1,) or (n,).

celestial_cos_latfloat or numpy.ndarray

The cosine of celestial_pole_y.

celestial_sin_latfloat or numpy.ndarray

The sine of celestial_pole_y.

native_pole_xfloat or numpy.ndarray

The spherical projection’s native pole longitude. If an array is passed in, it should be of shape (1,) or (n,).

Returns:
theta, phinumpy.ndarray, numpy.ndarray

The projection of (x, y) about the native pole on the celestial pole, with theta equivalent to y_p and phi equivalent to x_p where _p denotes a projection about the celestial pole.