run_obs¶
- rubin_sim.moving_objects.run_obs(orbits, simdata, colmap, obs_file, footprint='camera', r_fov=1.75, x_tol=5, y_tol=3, eph_mode='nbody', prelim_eph_mode='nbody', obs_code='I11', eph_type='basic', t_step=1, rough_tol=10, obs_metadata=None)¶
Generate the observations.
- Parameters:
- orbits
rubin_sim.moving_objects.Orbit
Orbits for which to calculate observations
- simdata
np.ndarray
The simulated pointing history data from OpSim
- colmap
dict
Dictionary of the column mappings (from column names here to opsim columns).
- obs_file
str
Output file for the observations
- footprint
str
, opt Footprint - camera, circle or rectangle. Default camera footprint.
- r_fov
float
, opt If using a circular FOV, this is the radius of that circle. Default 1.75, but only used if footprint is ‘circle’.
- x_tol
float
, opt If using a rectangular footprint, this is the tolerance in the RA direction. Default 5.
- y_tol
float
, opt If using a rectangular footprint, this is the tolerance in the Dec direction Default 3.
- eph_mode
str
, opt Ephemeris generation mode (2body or nbody) for exact matching. Default nbody.
- prelim_eph_mode
str
, opt Preliminary (rough grid) ephemeris generation mode (2body or nbody). Default nbody.
- obs_code
str
, opt Observatory code for ephemeris generation. Default I11 = Cerro Pachon.
- eph_type
str
, opt ephemeris type (from oorb.generate_ephemeris) to return (‘full’ or ‘basic’). Default ‘basic’.
- t_step
float
, opt Time step for rough grid, in days. Default 1 day.
- rough_tol
float
, opt Tolerance in degrees between rough grid position and opsim pointings. Default 10 deg.
- obs_metadata
str
, opt Metadata to write into output file header.
- orbits