config_example.yaml 7.35 KB
Newer Older
Fang Yuedong's avatar
Fang Yuedong committed
1
2
3
4
---
###############################################
#
#  Configuration file for CSST simulation
Fang Yuedong's avatar
Fang Yuedong committed
5
#  CSST-Sim Group, 2023/04/25
Fang Yuedong's avatar
Fang Yuedong committed
6
7
8
#
###############################################

Fang Yuedong's avatar
Fang Yuedong committed
9

Fang Yuedong's avatar
Fang Yuedong committed
10
11
12
# Base diretories and naming setup
# Can add some of the command-line arguments here as well;
# OK to pass either way or both, as long as they are consistent
13
work_dir: "/public/home/fangyuedong/20211203/CSST/workplace/"
Fang Yuedong's avatar
Fang Yuedong committed
14
data_dir: "/data/simudata/CSSOSDataProductsSims/data/"
Fang Yuedong's avatar
Fang Yuedong committed
15
run_name: "example"
Fang Yuedong's avatar
Fang Yuedong committed
16
17
18
19

# Whether to use MPI
run_option:
  use_mpi: YES
20
21
22
  # NOTE: "n_threads" paramters is currently not used in the backend
  # simulation codes. It should be implemented later in the web frontend
  # in order to config the number of threads to request from NAOC cluster
Fang Yuedong's avatar
Fang Yuedong committed
23
24
  n_threads: 80

Fang Yuedong's avatar
Fang Yuedong committed
25
26
27
  # Output catalog only?
  # If yes, no imaging simulation will run
  out_cat_only: NO
Fang Yuedong's avatar
Fang Yuedong committed
28

Fang Yuedong's avatar
Fang Yuedong committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
###############################################
# Catalog setting
###############################################
# Configure your catalog: options to be implemented 
# in the corresponding (user defined) 'Catalog' class
catalog_options:
  input_path:
    cat_dir: "catalog_points_7degree2/point_RA60.9624_DE-41.5032/"
    star_cat: "stars_ccd13_p_RA60.9624_DE-41.5032.hdf5"
    galaxy_cat: null

  SED_templates_path:
    star_SED: "SED_MMW_Gaia_Cluster_D20_SS.hdf5"
    galaxy_SED: null
  
Fang Yuedong's avatar
Fang Yuedong committed
44
  # Only simulate stars?
Fang Yuedong's avatar
Fang Yuedong committed
45
  star_only: YES
Fang Yuedong's avatar
Fang Yuedong committed
46
47
48
49
50
51
52
53

###############################################
# Observation setting
###############################################
obs_setting:

  # Options for survey types:
  # "Photometric": simulate photometric chips only
Fang Yuedong's avatar
Fang Yuedong committed
54
  # "Spectroscopic": simulate slitless spectroscopic chips only
Fang Yuedong's avatar
Fang Yuedong committed
55
  # "FGS": simulate FGS chips only (31-42)
Fang Yuedong's avatar
Fang Yuedong committed
56
  # "All": simulate full focal plane
Fang Yuedong's avatar
Fang Yuedong committed
57
  survey_type: "Photometric"
Fang Yuedong's avatar
Fang Yuedong committed
58
59
60
61
62
63
64
65
66
67
  
  # Exposure time [seconds]
  exp_time: 150.

  # Observation starting date & time
  date_obs: "210525" # [yymmdd]
  time_obs: "120000" # [hhmmss]

  # Default Pointing [degrees]
  # Note: NOT valid when a pointing list file is specified
68
69
  ra_center: 60.9624
  dec_center:  -41.5032
Fang Yuedong's avatar
Fang Yuedong committed
70
71
72
  # Image rotation [degree]
  image_rot: -113.4333

Fang Yuedong's avatar
Fang Yuedong committed
73
74
75
76
77
78
79
  # (Optional) a file of point list 
  # if you just want to run default pointing:
  # - pointing_dir: null
  # - pointing_file: null
  pointing_dir: null
  pointing_file: null

Fang Yuedong's avatar
Fang Yuedong committed
80
  # Number of calibration pointings
81
  np_cal: 2
Fang Yuedong's avatar
Fang Yuedong committed
82

83
84
85
  # Run specific pointing(s):
  # - give a list of indexes of pointings: [ip_1, ip_2...]
  # - run all pointings: null
Fang Yuedong's avatar
Fang Yuedong committed
86
  # Note: only valid when a pointing list is specified
87
  run_pointings: null
Fang Yuedong's avatar
Fang Yuedong committed
88
  
89
90
91
  # Run specific chip(s):
  # - give a list of indexes of chips: [ip_1, ip_2...]
  # - run all chips: null
Fang Yuedong's avatar
Fang Yuedong committed
92
  # Note: for all pointings
93
  run_chips: [18]
Fang Yuedong's avatar
Fang Yuedong committed
94

Fang Yuedong's avatar
Fang Yuedong committed
95
96
  # Whether to enable astrometric modeling
  enable_astrometric_model: True
97

Fang Yuedong's avatar
Fang Yuedong committed
98
99
  # Cut by saturation magnitude in which band?
  cut_in_band: "z"
Fang Yuedong's avatar
Fang Yuedong committed
100

Fang Yuedong's avatar
Fang Yuedong committed
101
102
  # saturation magnitude margin
  mag_sat_margin: -2.5
Fang Yuedong's avatar
Fang Yuedong committed
103

Fang Yuedong's avatar
Fang Yuedong committed
104
105
  # limiting magnitude margin
  mag_lim_margin: +1.0
Fang Yuedong's avatar
Fang Yuedong committed
106

Fang Yuedong's avatar
Fang Yuedong committed
107
###############################################
Fang Yuedong's avatar
Fang Yuedong committed
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# PSF setting
###############################################
psf_setting:
  
  # Which PSF model to use:
  # "Gauss": simple gaussian profile
  # "Interp": Interpolated PSF from sampled ray-tracing data
  psf_model: "Interp"

  # PSF size [arcseconds]
  # radius of 80% energy encircled
  # NOTE: only valid for "Gauss" PSF
  psf_rcont: 0.15

  # path to PSF data
  # NOTE: only valid for "Interp" PSF
Fang Yuedong's avatar
Fang Yuedong committed
124
  psf_dir: "/data/simudata/CSSOSDataProductsSims/data/csstPSFdata/psfCube"
Fang Yuedong's avatar
Fang Yuedong committed
125

Fang Yuedong's avatar
Fang Yuedong committed
126
127
128
129
130
131
132
###############################################
# Shear setting
###############################################

shear_setting:
  # Options to generate mock shear field:
  # "constant": all galaxies are assigned a constant reduced shear
Fang Yuedong's avatar
Fang Yuedong committed
133
  # "catalog": from catalog
Fang Yuedong's avatar
Fang Yuedong committed
134
135
136
137
138
139
140
141
142
143
144
  shear_type: "constant"

  # For constant shear filed
  reduced_g1: 0.026
  reduced_g2: 0.015

###############################################
# Instrumental effects setting
###############################################
ins_effects:
  # switches
Fang Yuedong's avatar
Fang Yuedong committed
145
146
  # Note: bias_16channel, gain_16channel, and shutter_effect
  # is currently not applicable to "FGS" observations
Fang Yuedong's avatar
Fang Yuedong committed
147
148
149
150
151
  field_dist:     ON  # Whether to add field distortions
  add_back:       ON  # Whether to add sky background
  add_dark:       ON  # Whether to add dark noise
  add_readout:    ON  # Whether to add read-out (Gaussian) noise
  add_bias:       ON  # Whether to add bias-level to images
Fang Yuedong's avatar
Fang Yuedong committed
152
153
  bias_16channel: ON  # Whether to add different biases for 16 channels
  gain_16channel: ON  # Whether to make different gains for 16 channels
Fang Yuedong's avatar
Fang Yuedong committed
154
155
156
157
158
159
160
161
162
163
164
165
166
  shutter_effect: ON  # Whether to add shutter effect
  flat_fielding:  ON  # Whether to add flat-fielding effect
  prnu_effect:    ON  # Whether to add PRNU effect
  non_linear:     OFF # Whether to add non-linearity
  cosmic_ray:     ON  # Whether to add cosmic-ray
  cray_differ:    ON  # Whether to generate different cosmic ray maps CAL and MS output
  cte_trail:      ON  # Whether to simulate CTE trails
  saturbloom:     ON  # Whether to simulate Saturation & Blooming
  add_badcolumns: ON  # Whether to add bad columns
  add_hotpixels:  ON  # Whether to add hot pixels
  add_deadpixels: ON  # Whether to add dead(dark) pixels
  bright_fatter:  ON  # Whether to simulate Brighter-Fatter (also diffusion) effect

Fang Yuedong's avatar
Fang Yuedong committed
167
168
169
170
171
172
173
174
175
176
177
  # Values: 
  # default values have been defined individually for each chip in:
  # ObservationSim/Instrument/data/ccd/chip_definition.json
  # Set them here will override the default values
  # dark_exptime:   300   # Exposure time for dark current frames [seconds]
  # flat_exptime:   150   # Exposure time for flat-fielding frames [seconds]
  # readout_time:   40    # The read-out time for each channel [seconds]
  # df_strength:    2.3   # Sillicon sensor diffusion strength
  # bias_level:     500   # bias level [e-/pixel]
  # gain:           1.1   # Gain
  # full_well:      90000 # Full well depth [e-]
Fang Yuedong's avatar
Fang Yuedong committed
178
179

###############################################
Fang Yuedong's avatar
Fang Yuedong committed
180
# Output options (for calibration pointings only)
Fang Yuedong's avatar
Fang Yuedong committed
181
182
183
184
185
186
187
188
###############################################
output_setting:
  readout16:      OFF # Whether to export as 16 channels (subimages) with pre- and over-scan
  shutter_output: OFF # Whether to export shutter effect 16-bit image
  bias_output:    ON  # Whether to export bias frames
  dark_output:    ON  # Whether to export the combined dark current files
  flat_output:    ON  # Whether to export the combined flat-fielding files
  prnu_output:    OFF # Whether to export the PRNU (pixel-to-pixel flat-fielding) files
Fang Yuedong's avatar
Fang Yuedong committed
189
190
191
  NBias:          1     # Number of bias frames to be exported for each exposure
  NDark:          1     # Number of dark frames to be exported for each exposure
  NFlat:          1     # Number of flat frames to be exported for each exposure
Fang Yuedong's avatar
Fang Yuedong committed
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207

###############################################
# Random seeds
###############################################
random_seeds:
  seed_poisson:         20210601  # Seed for Poisson noise
  seed_CR:              20210317  # Seed for generating random cosmic ray maps
  seed_flat:            20210101  # Seed for generating random flat fields
  seed_prnu:            20210102  # Seed for photo-response non-uniformity
  seed_gainNonUniform:  20210202  # Seed for gain nonuniformity
  seed_biasNonUniform:  20210203  # Seed for bias nonuniformity
  seed_rnNonUniform:    20210204  # Seed for readout-noise nonuniformity
  seed_badcolumns:      20240309  # Seed for bad columns
  seed_defective:       20210304  # Seed for defective (bad) pixels
  seed_readout:         20210601  # Seed for read-out gaussian noise
...