RADEX installation by Homebrew
This project provides a Homebrew formula for RADEX, which automatically builds and installs RADEX to your environment. Now you can install RADEX by the following command:
brew install astropenguin/radex/radex
The following three commands and their aliases will be installed:
Command | Alias | Descripion |
---|---|---|
radex-1 |
radex-uni |
RADEX built with option 1 (uniform sphere) |
radex-2 |
radex-lvg |
RADEX built with option 2 (expanding sphere) |
radex-3 |
radex-slab |
RADEX built with option 3 (plane parallel slab) |
As a major difference from the normal RADEX installation, the path of the data directory is not set by default:
This allows you to specify the relative or full path of a data file (*.dat
).
Note that the tilde expansion (i.e. ~/
) cannot be used for the path specification.
The following environment variables can be set for the RADEX installation:
Variable | Default | Description |
---|---|---|
HOMEBREW_RADEX_DATADIR |
not set | Path of the directory for RADEX data files (.dat ) |
HOMEBREW_RADEX_LOGFILE |
./radex.log |
Path of the RADEX log file |
HOMEBREW_RADEX_MINITER |
10 |
The number of minimum iterations in a RADEX calculation |
HOMEBREW_RADEX_MAXITER |
9999 |
The number of maximum iterations in a RADEX calculation |
For example, if you want to set the data directory:
HOMEBREW_RADEX_DATADIR=${HOME}/radex brew install astropenguin/radex/radex