Synthetic cookbook
Table of contents
- Synthetic spectrum from structures
- Synthetic spectrum from systems
- Synthetic spectrum from random systems
Synthetic spectrum from structures
Method | CookbookSynthetic.spec_from_struct |
Parameters |
|
JSON template | { "cookbook": "cb", "recipe": "spec_from_struct", "params": { "x": "'0,spec,x'", "y": "'0,spec,y'", "dy": "'0,spec,y'" } } |
Create a synthetic spectrum from existing structures (a wavelenght-like array and a flux-like array). The structure expressions must be parsable by AST, with columns described by a string with the session number, the structure tag (spec, lines, systs), and the column name separated by a comma (e.g. 0,spec,x, meaning “column x of spectrum from session 0”). A gaussian noise is added to the spectrum to match a given signal-to-noise ratio. A new session is created with the synthetic spectrum.
Synthetic spectrum from systems
Method | CookbookSynthetic.spec_from_systs |
Parameters |
|
JSON template | { "cookbook": "cb", "recipe": "spec_from_systs", "params": { "x": "'0,spec,x'", "dy": "'0,spec,dy'", "sess": "'0'", "resol": "null" } } |
Create a synthetic spectrum from a list of systems taken from an existing session.
Synthetic spectrum from random systems
Method | CookbookSynthetic.spec_from_systs_random |
Parameters |
|
JSON template | { "cookbook": "cb", "recipe": "spec_from_systs_random", "params": { "n": "n", "series": "'Ly-a'", "z_min": "0", "z_max": "6", "z_seed": "null", "logN_min": "10", "logN_max": "18", "logN_seed": "null", "b_min": "1.0", "b_max": "100.0", "b_seed": "null", "resol": "null", "snr": "null", "append": "true" } } |
Create a synthetic spectrum from a list of systems with random redshifts, column density, and Doppler broadening.