|
| 1 | +#... FAST++ V1.0: parameter file ....................................... |
| 2 | + |
| 3 | + |
| 4 | +#--- GENERAL INFORMATION ----------------------------------------------- |
| 5 | +# |
| 6 | +# Please read this parameter file in detail, you can find all relevant |
| 7 | +# information here. Note that you have to adjust your input catalogs |
| 8 | +# accordingly, otherwise FAST++ may not work properly! |
| 9 | +# |
| 10 | +# o Requirements: |
| 11 | +# - about 30 MB of free RAM memory |
| 12 | +# - at least one CPU core |
| 13 | +# |
| 14 | +# o The current directory should contain the following files: |
| 15 | +# - This parameter file |
| 16 | +# - [CATALOG].cat If you fit broadband photometry |
| 17 | +# - [CATALOG].zout If you input photometric redshifts |
| 18 | +# - [CATALOG].lir If you input infrared luminosities |
| 19 | +# - [CATALOG].translate If you input a translate file |
| 20 | +# - [SPECTRUM].spec If you fit spectra |
| 21 | +# |
| 22 | +# o FAST++ runs from the command line. |
| 23 | +# The first argument is the parameter file. Default is 'fast.param' |
| 24 | +# $ fast++ |
| 25 | +# $ fast++ my_fast.param |
| 26 | +# |
| 27 | +# o VERBOSE: set to 0 to disable output in the terminal (except for |
| 28 | +# warnings and errors, which are always shown) |
| 29 | +# |
| 30 | +# o PARALLEL: sets which part of the code should be executed in parallel. |
| 31 | +# - 'none': (default) no parallelization, the code will execute on |
| 32 | +# one CPU. |
| 33 | +# - 'models': each model will be adjusted to the photometry in a |
| 34 | +# different thread. Good when you have lots of models and few |
| 35 | +# galaxies to fit. |
| 36 | +# - 'sources': the input catalog will be split into equal parts, and |
| 37 | +# each part will be analyzed in a different thread. Good when you |
| 38 | +# have few models but lots of galaxies. |
| 39 | +# |
| 40 | +# o N_THREAD: sets the maximum number of threads the program can use at |
| 41 | +# once. This should be close to (or equal to) the number of available |
| 42 | +# cores on your CPU, or (one minus) the number of nodes available on a |
| 43 | +# cluster. Setting this to zero will disable parallelization. |
| 44 | +# |
| 45 | +# o MAX_QUEUED_FITS: sets the maximum number of fits that are queued and |
| 46 | +# waiting to be executed by the worker threads. Increasing this value |
| 47 | +# will make the code run faster, but will also increase memory usage. |
| 48 | +# For a run on a desktop computer with no more than 10 threads, a value |
| 49 | +# of 1000 provides a good compromise; larger values do not improve |
| 50 | +# performances significantly (no more than 10%). |
| 51 | +# |
| 52 | +#----------------------------------------------------------------------- |
| 53 | + |
| 54 | +VERBOSE = 1 # 0 / 1 |
| 55 | +PARALLEL = 'none' # 'none', 'models', or 'sources' |
| 56 | +N_THREAD = 0 |
| 57 | +MAX_QUEUED_FITS = 1000 |
| 58 | + |
| 59 | + |
| 60 | +#--- BROADBAND PHOTOMETRIC INFORMATION --------------------------------- |
| 61 | +# |
| 62 | +# o [CATALOG].cat (similar as for EAzY): |
| 63 | +# - Example catalog: hdfn_fs99.cat |
| 64 | +# - FAST++ recognizes columns with names {id,ID,z_spec,F[n],E[n], |
| 65 | +# TOT[n]} with n the number of the filter |
| 66 | +# - If z_spec is not given or any negative value, no z_spec is assumed |
| 67 | +# - Give a negative error or "NaN" if the object has no coverage in a |
| 68 | +# certain band |
| 69 | +# |
| 70 | +# o [CATALOG].zout (preferably generated with EAzY): |
| 71 | +# - Example catalog: hdfn_fs99.zout |
| 72 | +# - If NAME_ZPHOT is not defined, FAST reads columns with labels "z_phot" |
| 73 | +# as best-fit photometric redshifts "l68/l95/l99" and "h68/h95/h99" |
| 74 | +# for the confidence intervals |
| 75 | +# - If input photo-z is a negative value, the photo-z will be ignored |
| 76 | +# - If [CATALOG].zout is not available, and no z_specs are given in |
| 77 | +# [CATALOG].cat, then the redshifts are allowed to float |
| 78 | +# - You can also read in spectroscopic redshifts from [CATALOG].zout. |
| 79 | +# The corresponding column should be labeled "z_spec". However, if you |
| 80 | +# list them in [CATALOG].cat, FAST++ will ignore those in [CATALOG].zout |
| 81 | +# |
| 82 | +# o [CATALOG].translate: |
| 83 | +# - Example file: hdfn_fs99.translate |
| 84 | +# - Translates the column names in [CATALOG].cat to the required |
| 85 | +# F[n],E[n],etc formats |
| 86 | +# - Will only be used when available |
| 87 | +# |
| 88 | +# o AB_ZEROPOINT: m_AB = AB_ZEROPOINT - 2.5*log(F[n]) |
| 89 | +# - Default: AB_ZEROPOINT = 23.9 |
| 90 | +# - fluxes in micro Janskys: AB_ZEROPOINT = 23.9 |
| 91 | +# - fluxes in erg sec^{-1} cm^{-2} Hz^{-1}: AB_ZEROPOINT = 48.6 |
| 92 | +# |
| 93 | +# o FILTERS_RES: similar as for EAzY |
| 94 | +# |
| 95 | +# o FILTER_FORMAT: tells the program in the response curves provided in |
| 96 | +# filters_res file are determined for energy-counting (=0) or photon- |
| 97 | +# counting (=1) detectors (Default: 1) |
| 98 | +# |
| 99 | +# o TEMP_ERR_FILE: Template error function. The photometric errors are |
| 100 | +# in rest-frame multiplied by this function. |
| 101 | +# |
| 102 | +# o NAME_ZPHOT: Header name of the column in your [CATALOG].zout file |
| 103 | +# that you want to use for your photometric redshifts. If not defined, |
| 104 | +# FAST will look for 'z_phot' |
| 105 | +# |
| 106 | +# o FORCE_ZPHOT: if set to 1, tells the program to treat the photometric |
| 107 | +# redshifts as spectroscopic redshifts. |
| 108 | +# |
| 109 | +# o BEST_AT_ZPHOT: if set to 1, tells the program to force the best-fit |
| 110 | +# solution to match the photometric redshift obtained by EAzY, but the |
| 111 | +# confidence intervals will still account for the uncertainty on the |
| 112 | +# redshift (note that these intervals may not be centered on the best- |
| 113 | +# fit solution if this option is enabled). |
| 114 | +# |
| 115 | +# o ZPHOT_CONF: tells which confidence interval of the photometric |
| 116 | +# redshifts should be used to limit the grid for each galaxy. |
| 117 | +# Redshifts outside of this confidence interval will not be considered. |
| 118 | +# |
| 119 | +#----------------------------------------------------------------------- |
| 120 | + |
| 121 | +CATALOG = 'hdfn_fs99' |
| 122 | +AB_ZEROPOINT = 25. |
| 123 | +FILTERS_RES = '../share/FILTER.RES.latest' |
| 124 | +FILTER_FORMAT = 1 |
| 125 | +TEMP_ERR_FILE = '../share/TEMPLATE_ERROR.fast.v0.2' |
| 126 | +NAME_ZPHOT = 'z_m2' |
| 127 | +FORCE_ZPHOT = 0 # 0 / 1 |
| 128 | +BEST_AT_ZPHOT = 1 # 0 / 1 |
| 129 | +ZPHOT_CONF = 68 # 68 / 95 / 99 |
| 130 | + |
| 131 | + |
| 132 | +#--- SPECTROSCOPIC INFORMATION ----------------------------------------- |
| 133 | +# |
| 134 | +# o SPECTRUM: |
| 135 | +# - Example file: "1030_gnirs.spec" |
| 136 | +# - The file should have the following format: |
| 137 | +# # bin wl_low wl_low F[id1] E[id1] F[id2] E[id2] ... |
| 138 | +# - bin: number of the bin in which the spectral element falls |
| 139 | +# - wl_low: lower wavelength of the spectral element in Angstrom |
| 140 | +# - wl_up: upper wavelength of the spectral element in Angstrom |
| 141 | +# - (e)fl: in 10^-19 ergs s-1 cm-2 Angstrom-1 (if AUTO_SCALE=0) |
| 142 | +# - id.: should be an integer |
| 143 | +# - If you want to fit spectra and photometry at the same time, only |
| 144 | +# the objects for which both spectra AND photometry are provided |
| 145 | +# will be fit. Note that when you fit only one or a few galaxies |
| 146 | +# from the same field, you can feed the full photometric catalog, |
| 147 | +# and FAST++ will find the corresponding photometry. |
| 148 | +# - Photometric redshifts are ignored when spectra are included. |
| 149 | +# - Missing values can be signaled with negative errors or "NaN". |
| 150 | +# |
| 151 | +# o AUTO_SCALE: This option automatically scales the spectrum using the |
| 152 | +# broadband photometry as provided in the [CATALOG].cat file. The |
| 153 | +# error on the scaling is taken into account when deriving the |
| 154 | +# confidence intervals. The photometric bands used to scale the |
| 155 | +# spectrum are not included in the fit. The scaling factor will be |
| 156 | +# stored in the grid file, thus you have to set "SAVE_CHI_GRID" to "1" |
| 157 | +# |
| 158 | +#----------------------------------------------------------------------- |
| 159 | + |
| 160 | +SPECTRUM = '' |
| 161 | +AUTO_SCALE = 0 # 0 / 1 |
| 162 | + |
| 163 | + |
| 164 | +#--- OUTPUT INFORMATION ----------------------------------------------- |
| 165 | +# |
| 166 | +# o OUTPUT_DIR: output directory for results |
| 167 | +# |
| 168 | +# o OUTPUT_FILE: output file for results. |
| 169 | +# If not given: [CATALOG]_[SPECTRUM].fout |
| 170 | +# |
| 171 | +# o N_SIM: The number of Monte Carlo simulations used to determine the |
| 172 | +# confidence levels. If zero or not defined, only best-fit values will |
| 173 | +# be given. |
| 174 | +# |
| 175 | +# o C_INTERVAL: Percentage of confidence intervals, choose from 68% (1 |
| 176 | +# sigma), 95% (2 sigma), or 99% (3 sigma) |
| 177 | +# |
| 178 | +# o BEST_FIT: output best-fit SPS model |
| 179 | +# |
| 180 | +#----------------------------------------------------------------------- |
| 181 | + |
| 182 | +OUTPUT_DIR = '' |
| 183 | +OUTPUT_FILE = '' |
| 184 | +N_SIM = 100 |
| 185 | +C_INTERVAL = 68 # 68 / 95 / 99 or [68,95] etc |
| 186 | +SAVE_SIM = 0 # 0 / 1 |
| 187 | +BEST_FROM_SIM = 0 # 0 / 1 |
| 188 | +BEST_FIT = 0 # 0 / 1 |
| 189 | + |
| 190 | + |
| 191 | +#--- CHOOSE STELLAR POPULATIONS LIBRARY -------------------------------- |
| 192 | +# |
| 193 | +# o LIBRARY_DIR: directory containing the stellar population libraries |
| 194 | +# of the form: ised_[SFH].[resolutions]. |
| 195 | +# The binaries in these directories are of the following form: |
| 196 | +# [library]_[resolution]_[imf]_z[metallicity]_ltau[ltau/yr].ised |
| 197 | +# |
| 198 | +# o All binary inputs are made using "csp_galaxev" |
| 199 | +# ("galaxev" software by Bruzual & Charlot 2003) on the SSP models |
| 200 | +# "bc2003_[RESOLUTION]_[metal]_[IMF]_ssp.ised" and assuming no dust |
| 201 | +# law (and no recycling of gas ejected by stars for exponentially |
| 202 | +# declining star formation history) |
| 203 | +# |
| 204 | +# o LIBRARY: choose from Bruzual & Charlot 2003 ('bc03'), |
| 205 | +# Maraston 2005 ('ma05'), and FSPS by Conroy et al. ('co11') |
| 206 | +# |
| 207 | +# o RESOLUTION: Choose 'hr' for spectral fitting, and 'pr' (photometric |
| 208 | +# resolution) or 'lr' for medium and broadband filters. Not all |
| 209 | +# resolutions are standard available for all SFHs or libraries or IMFs |
| 210 | +# |
| 211 | +# o IMF (stellar initial mass function), choose from |
| 212 | +# - 'ch'(abrier) |
| 213 | +# - 'sa'(lpeter) |
| 214 | +# - 'kr'(oupa) |
| 215 | +# |
| 216 | +# o SFH: parametrization of the star formation history (SFH), choose from |
| 217 | +# - 'exp': exponentially declining SFH; sfr ~ exp(-t/tau) |
| 218 | +# - 'del': delayed exponentially declining SFH; sfr ~ t exp(-t/tau) |
| 219 | +# - 'tru': truncated SFH, with constant star formation between |
| 220 | +# t_onset and t_onset+tau |
| 221 | +# For all SFH you can specify the range tau in the grid |
| 222 | +# |
| 223 | +# o DUST_LAW: parametrization of the dust attenuation curve. You can |
| 224 | +# choose from the following options |
| 225 | +# - 'calzetti': Calzetti (2000) dust law |
| 226 | +# - 'mw': Milky Way, following parametrization by Cardelli et al. (1989) |
| 227 | +# - 'kc': Kriek & Conroy (2013). Average dust law. We use the |
| 228 | +# parametrization by Noll et al. with E_B = 1 and delta = -0.1 |
| 229 | +# - 'noll': For this law you have to parametrize E_b and delta. |
| 230 | +# You can only pick one value for each, arrays are not allowed. |
| 231 | +# |
| 232 | +# o MY_SFH: if you define this option, FAST will not fit a range of |
| 233 | +# star-formation histories, but just one model (so LOG_TAU_XXX will |
| 234 | +# be ignored). For this option you can only read in one custom star |
| 235 | +# formation history, for which you have to make the ISED file |
| 236 | +# yourself using "csp_galaxev". The naming of the ised file has to |
| 237 | +# be as follows: |
| 238 | +# [library]_[resolution]_[imf]_z[metallicity]_[MY_SFH].ised |
| 239 | +# This file needs to be placed directly in 'LIBRARY_DIR' |
| 240 | +# |
| 241 | +#----------------------------------------------------------------------- |
| 242 | + |
| 243 | +LIBRARY_DIR = '../share/libraries/' |
| 244 | +LIBRARY = 'bc03' # 'bc03' / 'ma05' / 'co11' |
| 245 | +RESOLUTION = 'hr' # 'pr' / 'lr' / 'hr' |
| 246 | +IMF = 'ch' # 'ch' / 'sa' / 'kr' |
| 247 | +SFH = 'del' # 'exp' / 'del' / 'tru' |
| 248 | +DUST_LAW = 'calzetti' # 'calzetti' / 'mw' / 'kc' / 'noll' |
| 249 | +# E_B = 1 # only define for 'noll' dust law |
| 250 | +# delta = -0.2 # only define for 'noll' dust law |
| 251 | +MY_SFH = '' |
| 252 | + |
| 253 | + |
| 254 | +#--- DEFINE GRID ------------------------------------------------------- |
| 255 | +# |
| 256 | +# o Choose only values for tau and metallicity that are in your library. |
| 257 | +# Otherwise extend your library. |
| 258 | +# |
| 259 | +# o If EAzY is used, make sure Z_MIN, Z_MAX are similar. |
| 260 | +# |
| 261 | +# o METAL: the options differ per stellar population library |
| 262 | +# ma05: Z=0.001, Z=0.01, Z=0.02 [solar], and Z=0.04 |
| 263 | +# bc03: Z=0.004, Z=0.008, Z=0.02 [solar], and Z=0.05 |
| 264 | +# co11: Z=0.0008, Z=0.0031, Z=0.0096, Z=0.019 [solar], and Z=0.03 |
| 265 | +# You can choose more than one by defining an array. |
| 266 | +# |
| 267 | +# o If a grid has already been made for a specific LIBRARY, RESOLUTION, |
| 268 | +# IMF, tau, age, z, A_v, metallicity, and filter set and/or spectral |
| 269 | +# elements, the grid will be automatically read from the cache. |
| 270 | +# |
| 271 | +# o NO_MAX_AGE: By default (0), ages that exceed the age of the universe |
| 272 | +# are not allowed. However, when NO_MAX_AGE is put to 1 you can have |
| 273 | +# older ages. |
| 274 | +# |
| 275 | +#----------------------------------------------------------------------- |
| 276 | + |
| 277 | +LOG_TAU_MIN = 8.5 # log [yr] |
| 278 | +LOG_TAU_MAX = 10. # log [yr] |
| 279 | +LOG_TAU_STEP = 0.5 # log [yr], min 0.1 |
| 280 | +LOG_AGE_MIN = 8.0 # log [yr] |
| 281 | +LOG_AGE_MAX = 10.0 # log [yr] |
| 282 | +LOG_AGE_STEP = 0.2 # log [yr] |
| 283 | +NO_MAX_AGE = 0 # 0 / 1 |
| 284 | +Z_MIN = 0.01 # Cannot be 0.0 |
| 285 | +Z_MAX = 6.00 |
| 286 | +Z_STEP = 0.05 |
| 287 | +Z_STEP_TYPE = 0 # 0: Z_STEP, 1: Z_STEP*(1+z) |
| 288 | +A_V_MIN = 0. # [mag] |
| 289 | +A_V_MAX = 3. # [mag] |
| 290 | +A_V_STEP = 0.1 # [mag] |
| 291 | +METAL = [0.02] # [0.0096,0.019,0.03] |
| 292 | +NO_CACHE = 0 |
| 293 | + |
| 294 | + |
| 295 | +#--- COSMOLOGY --------------------------------------------------------- |
| 296 | +# |
| 297 | +#----------------------------------------------------------------------- |
| 298 | + |
| 299 | +H0 = 70.0 # Hubble constant |
| 300 | +OMEGA_M = 0.3 # Omega matter |
| 301 | +OMEGA_L = 0.7 # Omega lambda |
| 302 | + |
| 303 | + |
| 304 | +#--- SAVE INTERMEDIATE PRODUCTS ---------------------------------------- |
| 305 | +# |
| 306 | +# - SAVE_CHI_GRID: if "1" then the temporary grid per objects will be |
| 307 | +# saved as an idl ".save" file in the "tmp" directory. This option |
| 308 | +# slows down the program. |
| 309 | +# |
| 310 | +#----------------------------------------------------------------------- |
| 311 | + |
| 312 | +SAVE_CHI_GRID = 0 # 0 / 1 |
0 commit comments