SatelliteCameraViewer.misc module
misc
- SatelliteCameraViewer.misc.arcseconds_to_radians(arcsec)[source]
arcseconds_to_radians - convert arcseconds to radians
- Parameters:
arcsec (float) – An arcsecond - which is a tiny unit of angular measurement. I.e. 1/60’th of 1/60’th of a degree.
- Returns:
The angular value in radians.
- Return type:
float
- SatelliteCameraViewer.misc.mag_map(mag, multiplier=1.0)[source]
mag_map - convert star magnitude to pixel size.
- Parameters:
mag (float | list[float] | numpy.ndarray) – An array of magnitudes
multiplier (float) – Scaling factor for pixel size
- Returns:
An array of pixel sizes ready to plot
- Return type:
float | list[float] | numpy.ndarray
- SatelliteCameraViewer.misc.ra_fix(ra_rad)[source]
ra_fix - correct RA values for mollweide projection.
- Parameters:
ra_rad (list[float] | numpy.ndarray) – An array of radians describing the right ascension (RA) of a star.
- Returns:
RA corrected values for mollweide projection.
- Return type:
list[float]
- SatelliteCameraViewer.misc.split_plot_mollweide_line(ra_rad_or_deg, dec_rad_or_deg, is_radians=False)[source]
split_plot_mollweide_line - Plot a line on a Mollweide projection, splitting into multiple segments when crossing RA = +/- PI. No off-by-one errors.
- Parameters:
ra_deg (list[float]) – An array of ra values
dec_deg (list[float]) – An array of dec values
is_radians (bool) – Control radians or degrees
- Returns:
A list of segments to plot on a mollweide graph.
- Return type:
list
- SatelliteCameraViewer.misc.split_plot_mollweide_line_ra_dec_deg(ra_dec_deg: list[tuple[float, float]])[source]
split_plot_mollweide_line_ra_dec_deg - Plot a line on a Mollweide projection, splitting into multiple segments when crossing RA = +/- PI. No off-by-one errors.
- Parameters:
ra_dec_deg (list[tuple[float,float]]) – An array of (ra,dec) values
- Returns:
A list of segments to plot on a mollweide graph.
- Return type:
list