simsit.tools

Utility functions for observation simulation and image generation.

Functions

draw_stars(stars, *, t0, exptime, wcs0, ...)

Draw stars into an image while accounting for tracker motion during exposure.

draw_sat(orbit, *, t0, exptime, wcs0, ...[, ...])

Draw one or more tracked objects into an image.

random_dark_time(*, t_day, site, rng)

Draw a random time between the next sunset and next sunrise.

random_boresight(*, observer, t0, horizon, rng)

Draw a random boresight uniformly from the spherical cap above a horizon cut.

random_disk(center, radius, rng)

Draw an approximately uniform random point within a small spherical cap.

generate_orbit(height, coord, heading, ...)

Construct an orbit from line-of-sight geometry and assumed velocity components.

get_line_gsobject(p0, p1)

Construct a narrow line-shaped GalSim object between two sky positions.

getLineGSObject(p0, p1)

Construct a narrow line-shaped GalSim object between two sky positions.

nostdout()

Redirect stdout through a tqdm-compatible file wrapper.

Classes

DummyFile(file)

File-like wrapper that routes writes through tqdm.write.

Class Inheritance Diagram

Inheritance diagram of simsit.tools.DummyFile