Command Line Interface#
MUSICA provides a command-line interface (musica-cli) for working with examples and configuration conversion.
The CLI is installed automatically when you install MUSICA via pip.
Installation#
To use all features of the examples, install MUSICA with the tutorial dependencies:
$ pip install 'musica[tutorial]'
Basic Usage#
Check the installed version:
$ musica-cli --version
View available options:
$ musica-cli -h
Available Options#
Option |
Description |
|---|---|
|
Show help message and exit |
|
Name of the example to copy out |
|
Path to save the output to |
|
Increase logging verbosity. Use |
|
Show the installed MUSICA version |
|
Path to a MUSICA v0 configuration to convert to v1 format |
Available Examples#
The following examples are available through the CLI:
Example Name |
Description |
|---|---|
|
A CARMA example for simulating aluminum aerosol particles |
|
A CARMA example for simulating sulfate aerosol particles |
|
A box model example for simulating sulfate aerosol particles |
|
A Latin hypercube sampling example for the TS1 mechanism |
Example Workflow#
Copy an Example#
Copy an example to your current directory:
$ musica-cli -e TS1LatinHyperCube
Copy an example to a specific directory:
$ musica-cli -e TS1LatinHyperCube -o /path/to/output/
Convert Configuration#
Convert a MUSICA v0 configuration to v1 format:
$ musica-cli --convert /path/to/v0/config.json -o /path/to/output/
Verbose Output#
For more detailed logging information:
$ musica-cli -e TS1LatinHyperCube -v
For debug-level logging:
$ musica-cli -e TS1LatinHyperCube -vv