aboutsummaryrefslogtreecommitdiffstats
path: root/docs/fg21sim.conf.example
blob: b1f964e2d8a67e7b628dfd163ec4ba4c9d5d0c0f (plain)
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# Example configuration file for "fg21sim"
# -*- mode: conf -*-
#
# Syntax: `ConfigObj`, https://github.com/DiffSK/configobj
#
# This file contains all the configuration options accepted by "fg21sim",
# which control the simulation parameters, inputs data and outputs products,
# as well as some general behaviors.
#
# Some options already have a default value been set in the bundled
# configuration specifications, which will be further described below with
# their default values and be commented out.
#
# However, there is not a sensible default value for other options,
# therefore, users should explicitly set their values before carrying out
# the simulations.  These options are also explained in details below, and
# marked with "REQUIRED".
#
# NOTE:
# - The input templates for simulations should be HEALPix full-sky maps.
# - The input catalog should be in CSV format.


# Common/general configurations for the simulation
[common]
# HEALPix Nside value, i.e., pixel resolution
# NOTE: also update "lmax" below.
#nside = 1024

# Range of multipole monents (l) of the angular power spectrum.
# The power spectrum will be cut off to a constant for multipole l < lmin.
# Generally, lmax = 3 * nside - 1
#lmin = 10
#lmax = 3071

# List of foreground components to be simulated:
# + galactic/synchrotron:
#       Diffuse Galactic synchrotron emission (unpolarized)
# + galactic/freefree:
#       Diffuse Galactic free-free emission
# + galactic/snr:
#       Galactic supernova remnants emission
# + extragalactic/clusters:
#       Extragalactic clusters of galaxies emission
# + extragalactic/pointsources:
#       Emission from multiple types of extragalactic point sources
#       NOTE: This component is not well integrated and tested at the moment
# NOTE:
# If only one component is enabled, do NOT omit the trailing comma ","
# e.g., components = "galaxies/synchrotron",
#components = "galactic/synchrotron", "galactic/freefree", "galactic/snr", "extragalactic/clusters"


# Frequencies specification of the simulation products
[frequency]
# Unit of the frequency value
#unit = "MHz"

# How to specify the frequencies
# + custom:
#       directly specify the frequency values using the "frequencies" config
# + calc:
#       calculate the frequency values by "start", "stop", and "step"
#type = "custom"

# The frequency values to be simulated if above "type" is "custom".
# [REQUIRED: if "frequency/type" = "custom"]
#frequencies =

# Parameters to calculate the frequencies
# start and stop frequency value (both inclusive)
# [REQUIRED: if "frequency/type" = "calc"]
#start =
#stop =
#step =


# Configuration for output products
[output]
# Unit of the sky map pixel value
#unit = "K"

# Use single-precision float instead of double (also save spaces)
#use_float = True

# Filetype used to store the products (default: fits)
#filetype = "fits"

# Filename pattern (without extension) for the output products, which will
# be finally formatted using `str.format()`.
#filename_pattern = "{prefix}_{frequency:05.1f}"

# Whether calculate the checksum for the output file (e.g., "CHECKSUM"
# keyword in FITS header)?
# NOTE:
# FITS checksum calculation may account for half the time to output the data.
#checksum = False

# Whether overwrite existing files
#clobber = False

# Whether combine all components and output
#combine = True

# Prefix for the combined files
#combine_prefix = "fg"

# Output directory to place the combined products
# NOTE: This config is mandatory and should be provided by the user
#       if above "combine=True".
# [REQUIRED: if "output/combine" = True]
#output_dir =

# Filename of the simulation products manifest (JSON format)
#manifest = "products_manifest.json"


# Cosmological parameters
[cosmology]
# Hubble constant at z=0 [ km/s/Mpc ]
#H0 = 71.0

# Density of non-relativistic matter in units of the critical density at z=0
#OmegaM0 = 0.27


# Configurations for initialization/reconfiguration of the `logging` module
[logging]
# DEBUG:    Detailed information, typically of interest only when diagnosing
#           problems.
# INFO:     Confirmation that things are working as expected.
# WARNING:  An dinciation that something unexpected happended, or indicative
#           of some problem in the near future (e.g., "disk space low").
#           The software is still working as expected.
# ERROR:    Due to a more serious problem, the software has not been able to
#           perform some function.
# CRITICAL: A serious error, indicating that the program itself may be unable
#           to continue running.
#level = "DEBUG"

# Set the format of displayed messages
#format = "%(asctime)s [%(levelname)s] <%(name)s> %(message)s"

# Set the date/time format in messages
#datefmt = "%Y-%m-%dT%H:%M:%S"

# Set the logging filename (will create a `FileHandler`)
# If set to "" (empty string), then the `FileHandler` will be disabled.
#filename = ""

# Whether append messages to the above logging file instead of overwrite
#appendmode = True

# Set the stream used to initialize the `StreamHandler`
# If set to "" (empty string), then the `StreamHandler` will be disabled.
#stream = "stderr"


# Options corresponding the Galactic emission components, which currently
# includes the following components:
# - synchrotron : Galactic synchrotron emission (unpolarized)
# - freefree : Galactic free-free emission
# - snr : Galactic supernovae remnants
[galactic]

  # Synchrotron emission component (unpolarized)
  [[synchrotron]]
  # The template map for the simulation.
  # [REQUIRED]
  #template =

  # The frequency of the template map (same unit as in [frequency] section)
  # [REQUIRED]
  #template_freq =

  # The unit of the template map pixel
  # [REQUIRED]
  #template_unit =

  # Spectral index map
  # [REQUIRED]
  #indexmap =

  # Whether add fluctuations on the small scales
  #add_smallscales = True

  # Filename prefix for this component
  #prefix = "gsync"

  # Whether save this component to disk
  #save = True

  # Output directory to save the simulated results
  # [REQUIRED: if "galactic/synchrotron/save" = True]
  #output_dir =

  # Free-free bremsstrahlung emission component
  [[freefree]]
  # The H{\alpha} map used as the free-free emission template
  # [REQUIRED]
  #halphamap =

  # The unit of the H{\alpha} template (e.g., "Rayleigh")
  # [REQUIRED]
  #halphamap_unit =

  # The 100-{\mu}m dust map used for dust absorption correction
  # [REQUIRED]
  #dustmap =

  # The unit of the above dust map (e.g., "MJy/sr")
  # [REQUIRED]
  #dustmap_unit =

  # Filename prefix for this component
  #prefix = "gfree"

  # Whether save this component to disk
  #save = True

  # Output directory to save the simulated results
  # [REQUIRED: if "galactic/freefree/save" = True]
  #output_dir =

  # Supernova remnants emission
  [[snr]]
  # The Galactic SNRs catalog data (CSV file)
  # [REQUIRED]
  #catalog =

  # Output the effective/inuse SNRs catalog data (CSV file)
  # NOTE: if not specified, then do not save the effective/inuse catalog
  #catalog_outfile =

  # Resolution (unit: arcmin) for simulating each SNR, which are finally
  # mapped to the HEALPix map of Nside specified in "[common]" section.
  #resolution = 1.0

  # Filename prefix for this component
  #prefix = "gsnr"

  # Whether save this component to disk
  #save = True

  # Output directory to save the simulated results
  # [REQUIRED: if "galactic/snr/save" = True]
  #output_dir =


# Options corresponding the extragalactic emission components, which
# currently includes the following components:
# - clusters : clusters of galaxies
# - pointsources : multiple types of discrete point sources
[extragalactic]

  # Emissions from the clusters of galaxies
  [[clusters]]
  # The clusters catalog derived from the Hubble Volume Project (CSV file)
  # [REQUIRED]
  #catalog =

  # Output the effective/inuse clusters catalog data (CSV file)
  # NOTE: if not specified, then do not save the effective/inuse catalog
  #catalog_outfile =

  # The fraction that a cluster hosts a radio halo
  # [REQUIRED]
  #halo_fraction =

  # Resolution (unit: arcmin) for simulating each cluster, which are finally
  # mapped to the HEALPix map of Nside specified in "[common]" section.
  #resolution = 0.5

  # Filename prefix for this component
  #prefix = "egcluster"

  # Whether save this component to disk
  #save = True

  # Output directory to save the simulated results
  # [REQUIRED: if "extragalactic/clusters/save" = True]
  #output_dir =

  # Extragalactic point sources
  [[pointsources]]
  # Whether save this point source catelogue to disk
  #save = True

  # Output directory to save the simulated catelogues
  #output_dir = "PS_tables"

  # PS components to be simulated
  # [REQUIRED]
  #pscomponents =

  # Resolution [arcmin]
  #resolution = 0.6

    # Star forming
    [[[starforming]]]
    # Number of samples
    #numps = 1000

    # Prefix
    #prefix = "SF"

    [[[starbursting]]]
    # Number of samples
    #numps = 1000

    # Prefix
    #prefix = "SB"

    [[[radioquiet]]]
    # Number of samples
    #numps = 1000

    # Prefix
    #prefix = "RQ"

    [[[FRI]]]
    # Number of samples
    #numps = 1000

    # Prefix
    #prefix = "FRI"

    [[[FRII]]]
    # Number of samples
    #numps = 1000

    # Prefix
    #prefix = "FRII"