make_2d_trace_image#
- specreduce.utils.synth_data.make_2d_trace_image(nx: int = 3000, ny: int = 1000, background: int | float = 5, trace_center: int | float | None = None, trace_order: int = 3, trace_coeffs: dict | None = None, profile: Model = None, add_noise: bool = True) CCDData[source]#
Deprecated since version 1.10: The make_2d_trace_image function is deprecated and may be removed in a future version. Use SynthImage instead.
Deprecated. Use
SynthImageinstead.Equivalent to
SynthImage(nx, ny).add_background(background) .add_source(...)followed by.add_poisson_noise()whenadd_noise, then.to_ccddata().