Usage#
Note
It is recommended to run PHRINGE on a GPU, as the simulation gets computationally expensive quickly.
Required User Input#
PHRINGE requires a configuration file to configure the simulation, the observation mode, the instrument and the scene. Alternatively, the input can also be given manually by creating the required objects (see advanced example).
Using Within Python Module#
PHRINGE can be used from within another Python module by using the PHRINGE class from the phringe.phringe_ui module:
from phringe.phringe_ui import PHRINGE
from pathlib import Path
phringe = PHRINGE()
phringe.run(
config_file_path=Path('path_to_config_file'),
)
Alternatively to using configuration files (as done here; see basic example), the input can also be manually given by creating the required objects (see advanced example).
Using Command Line Interface (CLI)#
PHRINGE features a command line interface (CLI) and can be run from the command line as follows to directly generate FITS files containing the synthetic data:
phringe [OPTIONS] CONFIG [FLAGS]
Arguments#
Argument |
Type |
Description |
|---|---|---|
|
PATH |
Path to the configuration file |
Options#
Option |
Type |
Description |
|---|---|---|
|
<TEXT PATH> |
Tuple of the planet name as specified in the exoplanetary system file and the path to the corresponding spectrum file; option can be used multiple times for multiplanetary systems |
|
INTEGER |
Indices if the GPUs to use; option can be used multiple times for usage of multiple GPUs |
|
TEXT |
Suffix for the FITS file name |
|
- |
Show the help message and exit |
|
- |
Show the version number and exit |
Flags#
Flag |
Description |
|---|---|
|
Save the generated data to a FITS file; default is true |
|
Create a copy of the configuration and exoplanetary system files in the output directory; default is true |
|
Create a new directory in the output directory for each run; default is true |
|
Whether to normalize the data to unit RMS along the time axis; default is false |
|
Whether to run in detailed mode; default is false |