Skip to content

Commit 4ee2229

Browse files
authored
Fix and cleanup WFC3 package 2/2 (#299)
2 parents 481ed45 + 03f90be commit 4ee2229

35 files changed

+150
-497
lines changed

HST/HST.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### HST TELESCOPE
2-
object : telescope
3-
alias : TEL
4-
name : HST
5-
description : The Hubble Space Telescope common optics
1+
object: telescope
2+
alias: TEL
3+
name: HST
4+
description: The Hubble Space Telescope common optics
65

7-
properties :
8-
temperature : 15
6+
properties:
7+
temperature: 15
8+
telescope: HST
99

10-
effects :
11-
- name : scope_surface_list
12-
description : list of HST surfaces
13-
class : SurfaceList
14-
kwargs :
15-
filename : LIST_mirrors_HST.tbl
10+
effects:
11+
- name: scope_surface_list
12+
description: list of HST surfaces
13+
class: SurfaceList
14+
kwargs:
15+
filename: LIST_mirrors_HST.tbl
1616

1717
---
1818
alias: ATMO

WFC3/WFC3_IR.yaml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
1-
###
2-
object : instrument
3-
alias : INST
4-
name : WFC3
5-
description : base configuration for WFC3
1+
object: instrument
2+
alias: INST
3+
name: WFC3
4+
description: base configuration for WFC3
65

7-
properties :
8-
temperature : -49
9-
pixel_scale: 0.13 # arcsec / pixel
10-
plate_scale: 13 # arcsec / mm
6+
properties:
7+
temperature: -49
8+
pixel_scale: 0.13 # arcsec / pixel
9+
plate_scale: 13 # arcsec / mm
1110

12-
effects :
13-
- name: wfc3_ir_channel_surfaces
14-
description : surfaces list for the IR channel
11+
effects:
12+
- name: wfc3_ir_channel_surfaces
13+
description: surfaces list for the IR channel
1514
class: SurfaceList
1615
kwargs:
17-
filename: LIST_WFC3_mirrors_IR.dat
16+
filename: LIST_WFC3_mirrors_IR.dat
1817

19-
- name: wfc3_ir_filter
20-
description : transmission curve for filter
18+
- name: wfc3_ir_filter
19+
description: transmission curve for filter
20+
# TODO: Replace with proper FilterWheel effect
2121
class: FilterCurve
2222
kwargs:
23-
filter_name: "!OBS.filter_name"
24-
filename_format: "TER_filter_{}.dat"
25-
minimum_throughput: 1.e-4
26-
outer: 0.1
27-
outer_unit: "m"
23+
filter_name: "!OBS.filter_name"
24+
filename_format: "filters/TER_filter_{}.dat"
25+
minimum_throughput: 1.e-4
26+
outer: 0.1
27+
outer_unit: "m"
28+
29+
- name: psf
30+
class: FieldVaryingPSF
31+
kwargs:
32+
filename: "PSF_WFC3_IR_FV.fits"
33+
wave_key: "WAVELENG"

WFC3/WFC3_IR_DET.yaml

Lines changed: 60 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,72 @@
1-
### WFC3 IR DETECTOR
2-
object : detector
3-
alias : DET
4-
name : wfc3_ir_detector_array
5-
description : A single 1014x1014 HgCdTe detector
1+
object: detector
2+
alias: DET
3+
name: wfc3_ir_detector_array
4+
description: A single 1014x1014 HgCdTe detector
65
source: "https://hst-docs.stsci.edu/display/WFC3IHB/5.7+IR+Detector+Characteristics+and+Performance"
76

87
properties:
9-
image_plane_id: 0
10-
temperature: -85
11-
dit: "!OBS.dit"
12-
ndit: "!OBS.ndit"
8+
image_plane_id: 0
9+
temperature: -85
10+
dit: "!OBS.dit"
11+
ndit: "!OBS.ndit"
1312

1413
effects:
15-
- name: WFC3_IR_Detector
16-
class: DetectorList
17-
include: True
18-
kwargs:
19-
array_dict: {id: [1], pixsize: [0.01], angle: [0.], gain: [1.0],
20-
x_cen: [0], y_cen: [0], xhw: [5.12], yhw: [5.12]}
21-
x_cen_unit: mm
22-
y_cen_unit: mm
23-
xhw_unit: mm
24-
yhw_unit: mm
25-
pixsize_unit: mm
26-
angle_unit: deg
27-
gain_unit: electron/adu
14+
- name: WFC3_IR_Detector
15+
class: DetectorList
16+
include: True
17+
kwargs:
18+
array_dict:
19+
id: [1]
20+
pixsize: [0.01]
21+
angle: [0.]
22+
gain: [1.0]
23+
x_cen: [0]
24+
y_cen: [0]
25+
xhw: [5.12]
26+
yhw: [5.12]
27+
x_cen_unit: mm
28+
y_cen_unit: mm
29+
xhw_unit: mm
30+
yhw_unit: mm
31+
pixsize_unit: mm
32+
angle_unit: deg
33+
gain_unit: electron/adu
2834

29-
- name: qe_curve
30-
description: Quantum efficiency curve
31-
class: QuantumEfficiencyCurve
32-
kwargs:
33-
filename: wfc3_ir_qe_003_syn.dat
35+
- name: qe_curve
36+
description: Quantum efficiency curve
37+
class: QuantumEfficiencyCurve
38+
kwargs:
39+
filename: wfc3_ir_qe_003_syn.dat
3440

35-
- name: exposure_integration
36-
description: Summing up sky signal for all DITs and NDITs
37-
class: ExposureIntegration
41+
- name: exposure_integration
42+
description: Summing up sky signal for all DITs and NDITs
43+
class: ExposureIntegration
3844

39-
- name: detector_border
40-
decription: blacks out the pixels at the edge of the detector
41-
class: ReferencePixelBorder
42-
kwargs:
43-
width: 5
44-
edges: ["all"]
45+
- name: detector_border
46+
decription: blacks out the pixels at the edge of the detector
47+
class: ReferencePixelBorder
48+
kwargs:
49+
border: [5, 5, 5, 5]
4550

46-
- name: dark_current
47-
description: WFC3-IR dark current
48-
class: DarkCurrent
49-
# [e-/s] level of dark current for each detector
50-
kwargs:
51-
value: 0.048
51+
- name: dark_current
52+
description: WFC3-IR dark current
53+
class: DarkCurrent
54+
# [e-/s] level of dark current for each detector
55+
kwargs:
56+
value: 0.048
5257

53-
- name: detector_linearity
54-
description : Linearity characteristics of H4RG chips
55-
class: LinearityCurve
56-
kwargs:
57-
filename : FPA_linearity.dat
58+
- name: detector_linearity
59+
description: Linearity characteristics of H4RG chips
60+
class: LinearityCurve
61+
kwargs:
62+
filename: FPA_linearity.dat
5863

59-
- name: shot_noise
60-
description : apply poisson shot noise to images
61-
class: ShotNoise
64+
- name: shot_noise
65+
description: apply poisson shot noise to images
66+
class: ShotNoise
6267

63-
- name : readout_noise
64-
description : Readout noise frames
65-
class : BasicReadoutNoise
66-
kwargs :
67-
noise_std : 12 # as high as 20 for a single read cycle
68+
- name: readout_noise
69+
description: Readout noise frames
70+
class: BasicReadoutNoise
71+
kwargs:
72+
noise_std: 12 # as high as 20 for a single read cycle

WFC3/default.yaml

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,64 @@
33
# all spectral curves found on the stsynphot site
44
# https://stsynphot.readthedocs.io/en/latest/stsynphot/data_hst.html
55

6-
object : configuration
7-
alias : OBS
8-
name : HST_WFC3_default_config
9-
description : defatult configuration for HST WFC3 UVIS and NIR imaging
6+
object: configuration
7+
alias: OBS
8+
name: HST_WFC3_default_config
9+
description: defatult configuration for HST WFC3 UVIS and NIR imaging
1010
status: experimental
11+
needs_scopesim: "v0.11.2a2"
12+
date_modified: 2025-12-05
13+
changes:
14+
- 2019-11-20 (KL) initial version
15+
- 2020-04-22 (KL) harmonize modes format
16+
- 2024-11-19 (FH) add package status keyword
17+
- 2025-12-05 (FH) clean up yaml
1118

1219
packages:
13-
- HST
14-
- WFC3
20+
- HST
21+
- WFC3
1522

1623
yamls:
17-
- HST.yaml
18-
- WFC3.yaml
19-
20-
mode_yamls:
21-
- name: IR_channel
22-
description: The NIR imaging channel
23-
yamls:
24-
- WFC3_IR.yaml
25-
- WFC3_IR_DET.yaml
26-
27-
- name: UVIS_channel
28-
description: The UV and Visual imaging channel
29-
yamls:
30-
- WFC3_UVIS.yaml
31-
- WFC3_UVIS_DET.yaml
24+
- HST.yaml
25+
- WFC3.yaml
3226

3327
properties:
3428
instrument: WFC3
3529
modes: [IR_channel]
36-
filter_name: F160W
30+
filter_name: F160W # default needed by effect
3731
dit: 60
3832
ndit: 1
3933

34+
mode_yamls:
35+
- object: observation
36+
alias: OBS
37+
name: IR_channel
38+
description: The NIR imaging channel
39+
status: experimental
40+
yamls:
41+
- WFC3_IR.yaml
42+
- WFC3_IR_DET.yaml
4043

41-
---
44+
- object: observation
45+
alias: OBS
46+
name: UVIS_channel
47+
description: The UV and Visual imaging channel
48+
status: concept
49+
yamls:
50+
- WFC3_UVIS.yaml
51+
- WFC3_UVIS_DET.yaml
4252

43-
# default simulation parameters
44-
object : simulation
45-
alias : SIM
46-
name : WFC3_simulation_paramters
47-
description : RC simulation paramters which need to change for a WFC3
53+
---
54+
object: simulation
55+
alias: SIM
56+
name: WFC3_simulation_paramters
57+
description: RC simulation paramters which need to change for a WFC3
4858

49-
properties :
50-
random :
51-
seed : 9001
59+
properties:
60+
random:
61+
seed: 9001
5262

53-
spectral :
54-
wave_min : 0.8
55-
wave_mid : 1.3
56-
wave_max : 1.8
63+
spectral:
64+
wave_min: 0.8
65+
wave_mid: 1.3
66+
wave_max: 1.8

0 commit comments

Comments
 (0)