components:
- name: background_irf
  datasets_names: CTA-gc
  type: TemplateNPredModel
  filename: $GAMMAPY_DATA/tests/models/background_irf.fits
  parameters:
  - name: norm
    value: 1.01
    scale: 1.0
    unit: ''
    min: 0.0
    max: .nan
    frozen: false
  - name: tilt
    value: 0.0
    scale: 1.0
    unit: ''
    min: .nan
    max: .nan
    frozen: true
  - name: reference
    value: 1.0
    scale: 1.0
    unit: TeV
    min: .nan
    max: .nan
    frozen: true
- name: source0
  type: SkyModel
  spatial:
    type: PointSpatialModel
    parameters:
    - name: lon_0
      value: -0.5
      scale: 0.01
      unit: deg
      min: -180.0
      max: 180.0
      frozen: true
    - name: lat_0
      value: -0.0005
      scale: 0.01
      unit: deg
      min: -90.0
      max: 90.0
      frozen: true
  spectral:
    type: ExpCutoffPowerLawSpectralModel
    parameters:
    - name: index
      value: 2.1
      scale: 1.0
      unit: ''
      min: .nan
      max: .nan
      frozen: false
    - name: amplitude
      value: 2.3e-12
      scale: 1.0e-12
      unit: cm-2 s-1 TeV-1
      min: .nan
      max: .nan
      frozen: false
    - name: reference
      value: 1.0
      scale: 1.0
      unit: TeV
      min: .nan
      max: .nan
      frozen: true
    - name: lambda_
      value: 0.006
      scale: 0.1
      unit: TeV-1
      min: .nan
      max: .nan
      frozen: false
- name: source1
  type: SkyModel
  spatial:
    type: DiskSpatialModel
    parameters:
    - name: lon_0
      value: -50.
      unit: deg
      frozen: false
    - name: lat_0
      value: -0.05
      unit: deg
      frozen: false
    - name: r_0
      value: 0.2
      unit: deg
      frozen: false
  spectral:
    type: PowerLawSpectralModel
    parameters:
    - name: index
      value: 2.2
      scale: 1.0
      unit: ''
      min: .nan
      max: .nan
      frozen: false
    - name: amplitude
      value: 2.3e-12
      scale: 1.0e-12
      unit: cm-2 s-1 TeV-1
      min: .nan
      max: .nan
      frozen: false
    - name: reference
      value: 1.0
      scale: 1.0
      unit: TeV
      min: .nan
      max: .nan
      frozen: true
  temporal:
    type: LightCurveTemplateTemporalModel
    filename: $GAMMAPY_DATA/tests/models/light_curve/lightcrv_PKSB1222+216.fits
- name: source2
  type: SkyModel
  spatial:
    type: TemplateSpatialModel
    filename: $GAMMAPY_DATA/catalogs/fermi/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits
    normalize: false
    parameters: []
  spectral:
    type: TemplateSpectralModel
    energy:
      data:
      - 34.171
      - 44.333
      - 57.517
      unit: MeV
    values:
      data:
      - 2.52894e-06
      - 1.2486e-06
      - 6.14648e-06
      unit: 1 / (cm2 MeV s)
    parameters:
    - name: norm
      value: 2.1
      scale: 1.0
      unit: ''
      min: .nan
      max: .nan
      frozen: false
- name: cube_iem
  type: SkyModel
  spatial:
    type: TemplateSpatialModel
    filename: $GAMMAPY_DATA/fermi-3fhl-gc/gll_iem_v06_gc.fits.gz
    normalize: false
    unit:  1 / (cm2 s MeV sr)
  spectral:
    type: PowerLawNormSpectralModel
    parameters:
    - name: norm
      value: 1.09
      scale: 1.0
      unit: ''
      min: 0.0
      max: .nan
      frozen: false
    - name: tilt
      value: 0.0
      scale: 1.0
      unit: ''
      min: .nan
      max: .nan
      frozen: true
    - name: reference
      value: 1.0
      scale: 1.0
      unit: TeV
      min: .nan
      max: .nan
      frozen: true
