Simulations (pyobs.utils.simulation)
TODO: write docs
SimCamera
- class SimCamera(world: SimWorld, image_size: Optional[Tuple[int, int]] = None, pixel_size: float = 0.015, images: Optional[str] = None, max_mag: float = 20.0, seeing: float = 3.0, **kwargs: Any)
A simulated camera.
Inits a new camera.
- Parameters:
world – World to use.
image_size – Size of image.
pixel_size – Square pixel size in mm.
images – Filename pattern (e.g. /path/to/*.fits) for files to return instead of simulated images.
max_mag – Maximum magnitude for sim.
seeing – Seeing in arcsec.
SimTelescope
- class SimTelescope(world: SimWorld, position: Optional[Tuple[float, float]] = None, offsets: Optional[Tuple[float, float]] = None, pointing_offset: Optional[Tuple[float, float]] = None, move_accuracy: float = 2.0, speed: float = 20.0, focus: float = 50, filters: Optional[List[str]] = None, filter_name: str = 'clear', drift: Optional[Tuple[float, float]] = None, focal_length: float = 5000.0, **kwargs: Any)
A simulated telescope on an equitorial mount.
Initializes new telescope.
- Parameters:
world – World object.
position – RA/Dec tuple with position of telescope in degrees.
offsets – RA/Dec offsets of telescope in arcsecs.
pointing_offset – Pointing offset in RA/Dec in arcsecs.
move_accuracy – Accuracy of movements in RA/Dec, i.e. random error after any movement [arcsec].
speed – Speed of telescope in deg/sec.
focus – Telescope focus.
filters – List of filters.
filter_name – Current filter.
drift – RA/Dec drift of telescope in arcsec/sec.
focal_length – Focal length of telescope in mm.
SimWorld
- class SimWorld(time: Optional[Union[Time, str]] = None, telescope: Optional[Union['SimTelescope', Dict[str, Any]]] = None, camera: Optional[Union['SimCamera', Dict[str, Any]]] = None, **kwargs: Any)
A simulated world.
Initializes a new simulated world.
- Parameters:
time – Time at start of simulation.
telescope – Telescope to use.
camera – Camera to use.
observer – Observer to use.
*args
**kwargs