CONFIGΒΆ

class config.Config(mode='etc', wave_min=None, wave_max=None, dlam=None, nx=None, ny=None, dpix=None)ΒΆ

Configuration class for GEHONG spectral modeling and IFS datacube simulation.

This class defines the core parameters that control the spectral and spatial structure of all simulation outputs, including spectra, maps, and data cubes. It determines the wavelength grid, spatial sampling, and pixel scale of the simulated scene, and serves as the global configuration object across all GEHONG modules.

Three usage modes are supported: - mode=’sim’: Preset configuration for use with csst-ifs-sim (CCD image simulation). - mode=’etc’: Preset configuration for use with csst-ifs-etc (exposure time calculator). [default] - mode=None : Fully custom configuration. All parameters must be explicitly provided.

Parameters
  • mode (str or None, optional) – Configuration mode. One of [β€˜sim’, β€˜etc’, None]. Default is β€˜etc’.

  • wave_min (float, optional) – Minimum wavelength in Angstroms.

  • wave_max (float, optional) – Maximum wavelength in Angstroms.

  • dlam (float, optional) – Wavelength sampling step in Angstroms.

  • nx (int, optional) – Number of spaxels along the X axis (image width).

  • ny (int, optional) – Number of spaxels along the Y axis (image height).

  • dpix (float, optional) – Spatial pixel size (spaxel scale) in arcseconds.