index_overall.html 9.75 KB
Newer Older
Wei Chengliang's avatar
Wei Chengliang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>csst_msc_sim_CONF</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f4f4f4;
            color: #333;
        }
        h1 {
            text-align: center;
            color: #4CAF50;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .block {
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 10px;
            background-color: #fafafa;
        }
        h2 {
            color: #4CAF50;
            font-size: 1.2em;
            margin-bottom: 10px;
        }
        label {
            display: block;
            margin: 5px 0;
        }
        input[type="text"] {
            width: calc(100% - 22px);
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            margin-bottom: 10px;
            transition: border 0.3s;
        }
        input[type="text"]:focus {
            border-color: #4CAF50;
            outline: none;
        }
        input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s;
        }
        input[type="submit"]:hover {
            background-color: #45a049;
        }
        table {  
            width: 100%;  
            border: 1px solid #ddd;  
            border-radius: 8px; /* 圆角 */  
            overflow: hidden; /* 隐藏超出表格的内容 */  
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加阴影 */  
        }  
          
        th, td {  
            border-bottom: 1px solid #ddd; /* 单元格底部边框 */  
            padding: 12px; /* 内边距 */  
            text-align: left;
        }
        tr:hover {  
            background-color: #ADD8E6; /* 悬停时背景颜色 */  
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>配置config_overall.yaml</h1>
        <p><strong>说明:</strong>
        1,该脚本可用于生成CSST主巡天成像仿真的参数文件,相关参数说明见本页脚注;2,用户必须修改相关路径参数,其他参数可参考默认值.
        </p>
        <hr style="border: 2px solid green;">
        <form method="POST">
            {{ form_html | safe }}
            <input type="submit" value="保存">
        </form>
    </div>

    <footer class="mt-4">
        <p class="text-center">这是一个有用的网页</p>
        <table>  
            <tr>  
                <th>KEYS</th>  
                <th>VALUES</th>  
                <th>COMMENTS</th>  
            </tr>  
            <tr>  
                <th>work_dir</th>  
                <td>/localpath, [str]</td>  
                <td>工作目录-仿真输出的文件路径</td>  
            </tr>  
            <tr>  
                <th>run_name</th>  
                <td>testRun, [str]</td>  
                <td>当前仿真目录</td>  
            </tr>  
            <tr>  
                <th>project_cycle</th>  
                <td>10, [int]</td>  
                <td>CSST数据系统开发阶段-C10</td>  
            </tr>  
            <tr>  
                <th>project_cycle</th>  
                <td>0, [int]</td>  
                <td>仿真次数标号-0</td>  
            </tr>  
            <tr>
                <th>run_option:<span style="font-weight: normal;">out_cat_only</span></th>
                <td>NO, [bool]</td>
                <td>是否仅输出星表-YES,不产生开展成像仿真,直接输出星表文件;NO,开展成像仿真</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">input_path</span></th>
                <td>/localpath, [str]</td>
                <td>"cat_dir": 输入星表路径, "star_cat": 恒星星表目录, "galaxy_cat": 星系星表目录</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">SED_templates_path</span></th>
                <td>/localpath, [str]</td>
                <td>"star_SED": 恒星SED路径,"galaxy_SED": 星系SED路径,"AGN_SED": 类星体SED路径</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">star_only</span></th>
                <td>NO, [bool]</td>
                <td>YES,只对恒星成像;NO,包含其他天体成像</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">galaxy_only</span></th>
                <td>NO, [bool]</td>
                <td>YES,只对星系成像;NO,包含其他天体成像</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">rotateEll</span></th>
                <td>0.0, [float]</td>
                <td>旋转星系指向(度)</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">enable_mw_ext_gal</span></th>
                <td>NO, [bool]</td>
                <td>是否应用银河系消光</td>
            </tr>
            <tr>
                <th>catalog_options:<span style="font-weight: normal;">planck_ebv_map</span></th>
                <td>/localpath, [str]</td>
                <td>消光模型</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">pointing_file</span></th>
                <td>/localpath, [str]</td>
                <td>曝光指向文件路径</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">obs_config_file</span></th>
                <td>/localpath, [str]</td>
                <td>观测配置文件路径</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">run_pointings</span></th>
                <td>[0], [int]</td>
                <td>give a list of indexes of pointings</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">enable_astrometric_model</span></th>
                <td>YES, [bool]</td>
                <td>是否应用天测模块</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">cut_in_band</span></th>
                <td>"z", [str]</td>
                <td>Cut by saturation magnitude in which band</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">mag_sat_margin</span></th>
                <td>-2.5, [float]</td>
                <td>saturation magnitude margin</td>
            </tr>
            <tr>
                <th>obs_setting:<span style="font-weight: normal;">mag_lim_margin</span></th>
                <td>+1.0, [float]</td>
                <td>limiting magnitude margin</td>
            </tr>
            <tr>
                <th>psf_setting:<span style="font-weight: normal;">psf_model</span></th>
                <td>"Interp", [str]</td>
                <td>Interp-Interpolated PSF from sampled ray-tracing data; Gauss-simple gaussian profile</td>
            </tr>
            <tr>
                <th>psf_setting:<span style="font-weight: normal;">psf_pho_dir</span></th>
                <td>/localpath, [str]</td>
                <td>多色成像PSF数据库路径</td>
            </tr>
            <tr>
                <th>psf_setting:<span style="font-weight: normal;">psf_sls_dir</span></th>
                <td>/localpath, [str]</td>
                <td>无缝光谱PSF数据库路径</td>
            </tr>
            <tr>
                <th>shear_setting:<span style="font-weight: normal;">shear_type</span></th>
                <td>constant, [str]</td>
                <td>constant-all galaxies are assigned a constant reduced shear; catalog-get shear values from catalog</td>
            </tr>
            <tr>
                <th>shear_setting:<span style="font-weight: normal;">reduced_g1</span></th>
                <td>0.0, [float]</td>
                <td>weak lensing shear, gamma_1</td>
            </tr>
            <tr>
                <th>shear_setting:<span style="font-weight: normal;"></span>reduced_g1</th>
                <td>0.0, [float]</td>
                <td>weak lensing shear, gamma_2</td>
            </tr>
            <tr>
                <th>output_setting:<span style="font-weight: normal;">output_format</span></th>
                <td>channels, [str]</td>
                <td>Whether to export as 16 channels (subimages) with pre- and over-scan (\"image\"/\"channels\")</td>
            </tr>
            <tr>
                <th>output_setting:<span style="font-weight: normal;">shutter_output</span></th>
                <td>NO, [bool]</td>
                <td>Whether to export shutter effect 16-bit image</td>
            </tr>
            <tr>
                <th>output_setting:<span style="font-weight: normal;">prnu_output</span></th>
                <td>NO, [bool]</td>
                <td>Whether to export the PRNU (pixel-to-pixel flat-fielding) files</td>
            </tr>
        
            <tr>
                <th>random_seeds</th>
                <td>[int]</td>
                <td>设置随机数种子</td>
            </tr>
        </table>  
    </footer>
</body>
</html>