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

# 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
Wei Chengliang's avatar
Wei Chengliang committed
12
work_dir: "/share/simudata/CSSOSDataProductsSims/data/CSSTSimImage_C8/"
13
data_dir: "/share/simudata/CSSOSDataProductsSims/data/"
Wei Chengliang's avatar
Wei Chengliang committed
14
run_name: "testRun_FGS"
Wei Chengliang's avatar
Wei Chengliang committed
15
16
project_cycle: 6
run_counter: 1
17
18
19
20
21
22
23
24
25
26
27
28
29

# Whether to use MPI
run_option:
  use_mpi: YES
  # 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
  n_threads: 80

  # Output catalog only?
  # If yes, no imaging simulation will run
  out_cat_only: NO

Wei Chengliang's avatar
Wei Chengliang committed
30
31
32
  #output PSF
  out_psf: YES

Fang Yuedong's avatar
Fang Yuedong committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
###############################################
# Catalog setting
###############################################
# Configure your catalog: options to be implemented 
# in the corresponding (user defined) 'Catalog' class
catalog_options:
  input_path:
    cat_dir: "Catalog_C6_20221212"
    star_cat: "C6_MMW_GGC_Astrometry_healpix.hdf5"
    galaxy_cat: "cat2CSSTSim_bundle/"
    AGN_cat: "AGN_C6_ross13_rand_pos_rmax-1.3.fits"
    stamp_cat: "stampCatsIndex.hdf5"

  SED_templates_path:
    star_SED: "Catalog_20210126/SpecLib.hdf5"
    galaxy_SED: "Catalog_C6_20221212/sedlibs/"
    AGN_SED: "quickspeclib_ross13.fits"
    AGN_SED_WAVE: "wave_ross13.npy"
    #stamp_SED:

53
  # Only simulate stars?
Wei Chengliang's avatar
Wei Chengliang committed
54
  star_only: YES
55
56
57
58

  # Only simulate galaxies?
  galaxy_only: NO

Fang Yuedong's avatar
Fang Yuedong committed
59
  # With stamp?
Wei Chengliang's avatar
Wei Chengliang committed
60
  stamp_yes: NO
Fang Yuedong's avatar
Fang Yuedong committed
61
62
63
64
65
66

  # rotate galaxy ellipticity
  rotateEll: 0. # [degree]

  seed_Av: 121212    # Seed for generating random intrinsic extinction

67
68
69
70
###############################################
# Observation setting
###############################################
obs_setting:
Wei Chengliang's avatar
Wei Chengliang committed
71

72
73
74
  # Options for survey types:
  # "Photometric": simulate photometric chips only
  # "Spectroscopic": simulate slitless spectroscopic chips only
Fang Yuedong's avatar
Fang Yuedong committed
75
  # "FGS": simulate FGS chips only (31-42)
76
  # "All": simulate full focal plane
Wei Chengliang's avatar
Wei Chengliang committed
77
78
79
80
81
82
83
84
85
86
87
  # "CALIBRATION": falt, bias, dark with or without postflash
  survey_type: "All"
  # "LED": ['LED1','LED2','LED3','LED4','LED5','LED6','LED7','LED8','LED9','LED10','LED11','LED12','LED13','LED14'] or null
  # 'LED1': '275', 'LED2': '310', 'LED3': '430', 'LED4': '505', 'LED5': '545', 'LED6': '590', 'LED7': '670',
  # 'LED8': '760', 'LED9': '940', 'LED10': '940', 'LED11': '1050', 'LED12': '1050','LED13': '340', 'LED14': '365'
  # LED_TYPE: ['LED5']
  # LED_TIME: [1.]
  # # unit e- ,flat level
  # FLAT_LEVEL: 20000
  # FLAT_LEVEL_FIL: 'g'

88
89
90
91
92
93
94
95
96
  # 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
Wei Chengliang's avatar
Wei Chengliang committed
97
98
  ra_center: 192.8595
  dec_center:  27.1283
99
  # Image rotation [degree]
Wei Chengliang's avatar
Wei Chengliang committed
100
  image_rot: -113.4333
Fang Yuedong's avatar
Fang Yuedong committed
101

Wei Chengliang's avatar
Wei Chengliang committed
102
  # (Optional) a file of point list
Fang Yuedong's avatar
Fang Yuedong committed
103
104
105
106
107
  # if you just want to run default pointing:
  # - pointing_dir: null
  # - pointing_file: null
  pointing_dir: "/share/simudata/CSSOSDataProductsSims/data/"
  pointing_file: "pointing_radec_246.5_40.dat"
108
109
110
111
112
113
114
115
116

  # Number of calibration pointings
  np_cal: 0

  # Run specific pointing(s):
  # - give a list of indexes of pointings: [ip_1, ip_2...]
  # - run all pointings: null
  # Note: only valid when a pointing list is specified
  run_pointings: [0]
Wei Chengliang's avatar
Wei Chengliang committed
117

118
119
120
121
  # Run specific chip(s):
  # - give a list of indexes of chips: [ip_1, ip_2...]
  # - run all chips: null
  # Note: for all pointings
Wei Chengliang's avatar
Wei Chengliang committed
122
  run_chips: [39,40,41,42]
123
124

  # Whether to enable astrometric modeling
Wei Chengliang's avatar
Wei Chengliang committed
125
126
127
128
  enable_astrometric_model: True

  # Whether to enable straylight model
  enable_straylight_model: True
129

Fang Yuedong's avatar
Fang Yuedong committed
130
131
  # Cut by saturation magnitude in which band?
  cut_in_band: "z"
132

133
  # saturation magnitude margin
Wei Chengliang's avatar
Wei Chengliang committed
134
135
  # mag_sat_margin: -2.5
  mag_sat_margin: -15.
136
137
138
139

  # limiting magnitude margin
  mag_lim_margin: +1.0

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
###############################################
# 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
157
  psf_dir: "/share/simudata/CSSOSDataProductsSims/data/psfCube1"
Wei Chengliang's avatar
Wei Chengliang committed
158
  psf_sls_dir: "/share/simudata/CSSOSDataProductsSims/data/SLS_PSF_PCA_fp/"
159
160
161
162
163
164
165
###############################################
# 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
166
167
  # "catalog": from catalog
  shear_type: "catalog"
168
169

  # For constant shear filed
Fang Yuedong's avatar
Fang Yuedong committed
170
171
  reduced_g1: 0.
  reduced_g2: 0.
172
173
174
175
176
177

###############################################
# Instrumental effects setting
###############################################
ins_effects:
  # switches
Fang Yuedong's avatar
Fang Yuedong committed
178
179
  # Note: bias_16channel, gain_16channel, and shutter_effect
  # is currently not applicable to "FGS" observations
Wei Chengliang's avatar
Wei Chengliang committed
180
181
182
183
184
185
186
  field_dist:     YES  # Whether to add field distortions
  add_back:       YES  # Whether to add sky background
  add_dark:       YES  # Whether to add dark noise
  add_readout:    YES  # Whether to add read-out (Gaussian) noise
  add_bias:       YES  # Whether to add bias-level to images
  bias_16channel: YES  # Whether to add different biases for 16 channels
  gain_16channel: YES  # Whether to make different gains for 16 channels
Wei Chengliang's avatar
Wei Chengliang committed
187
  shutter_effect: NO   # Whether to add shutter effect
Wei Chengliang's avatar
Wei Chengliang committed
188
189
190
191
192
193
194
195
196
197
198
199
200
  flat_fielding:  YES  # Whether to add flat-fielding effect
  prnu_effect:    YES  # Whether to add PRNU effect
  non_linear:     YES  # Whether to add non-linearity
  cosmic_ray:     YES  # Whether to add cosmic-ray
  cray_differ:    YES  # Whether to generate different cosmic ray maps CAL and MS output
  cte_trail:      NO   # Whether to simulate CTE trails, CTI_lgl_v0.3.tar.gz
  saturbloom:     YES  # Whether to simulate Saturation & Blooming
  add_badcolumns: YES  # Whether to add bad columns
  add_hotpixels:  YES  # Whether to add hot pixels
  add_deadpixels: YES  # Whether to add dead(dark) pixels
  bright_fatter:  YES  # Whether to simulate Brighter-Fatter (also diffusion) effect
  add_prescan:    NO   # Whether to add pre/over-scan
  format_output:  NO  ##1*16 output
Fang Yuedong's avatar
Fang Yuedong committed
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215

  # 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:   0.01    # The read-out time for each channel [seconds]
  # df_strength:    2.3   # Sillicon sensor diffusion strength
  # bias_level:     2000   # bias level [e-/pixel]
  # gain:           1.   # Gain
  # full_well:      90000 # Full well depth [e-]

###############################################
# Output options (for calibration pointings only)
216
217
218
219
220
221
222
223
###############################################
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
224
225
226
  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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241

###############################################
# 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
Wei Chengliang's avatar
Wei Chengliang committed
242
...