Documentation for Sim
Sim
is a a base class that other simulator objects can use. Sim
is an abstract base class that implements some of the methods necessary to be a simulator.
Bases: ABC
pixel_to_world(row, column, distortion=True)
Helper function. This function ensures we keep the row-major convention in pandora-sim.
Parameters:
row : float Pixel row position to be converted to sky coordinates. column : float Pixel column position to be converted to sky coordinates. distortion : bool Flag whether to account for the distortion in the WCS when converting from pixel position to sky coordinates. Default is True.
Returns
np.ndarray RA and Dec of input pixel positions.
world_to_pixel(ra, dec, distortion=True)
Helper function. This function ensures we keep the row-major convention in pandora-sim.
Parameters:
ra : float Right Ascension to be converted to pixel position. dec : float Declination to be converted to pixel position. distortion : bool Flag whether to account for the distortion in the WCS when converting from RA/Dec to pixel position. Default is True.
Returns
np.ndarray Row and column positions of each provided RA and Dec.