@@ -6,9 +6,12 @@ MusicBox: A MUSICA model for boxes and columns.
66
77[ ![ License] ( https://img.shields.io/github/license/NCAR/music-box.svg )] ( https://github.com/NCAR/music-box/blob/main/LICENSE )
88[ ![ CI Status] ( https://github.com/NCAR/music-box/actions/workflows/CI_Tests.yml/badge.svg )] ( https://github.com/NCAR/music-box/actions/workflows/CI_Tests.yml )
9+ [ ![ codecov] ( https://codecov.io/github/NCAR/music-box/graph/badge.svg?token=OR7JEQJSRQ )] ( https://codecov.io/github/NCAR/music-box )
910[ ![ PyPI version] ( https://badge.fury.io/py/acom-music-box.svg )] ( https://badge.fury.io/py/acom-music-box )
11+ [ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.14008358.svg )] ( https://doi.org/10.5281/zenodo.14008358 )
1012
11- Copyright (C) 2020 National Center for Atmospheric Research
13+
14+ Copyright (C) 2020 National Science Foundation - National Center for Atmospheric Research
1215
1316# Installation
1417```
@@ -30,22 +33,77 @@ Run an example. Notice that the output, in csv format, is printed to the termina
3033music_box -e Chapman
3134```
3235
36+ Output can be saved to a csv file and printed to the terminal.
37+
38+ ```
39+ music_box -e Chapman -o output.csv
40+ ```
41+
42+ Output can be saved to a csv file and the terminal output can be suppressed by specifying the ` --output-format `
43+
44+ ```
45+ music_box --output-format csv -e Chapman -o output.csv
46+ ```
47+
48+ Output can be saved to a file as netcdf file when ` --output-format ` netcdf is passed
49+
50+ ```
51+ music_box --output-format netcdf -e Chapman -o output.nc
52+ ```
53+
54+ Output can be saved to a file in csv format when a filename is not specified. In this case a timestamped csv file is made
55+
56+ ```
57+ music_box --output-format csv -e Chapman
58+ ```
59+
60+ Output can be saved to a file in netcdf format when a filename is not specified. In this case a timestamped netcdf file is made
61+
62+ ```
63+ music_box --output-format netcdf -e Chapman
64+ ```
65+
3366You can also run your own configuration
3467
3568```
3669music_box -c my_config.json
3770```
3871
39- Output can be saved to a file
72+ ## Plotting
73+ Some basic plots can be made to show concentrations throughout the simulation
74+
75+ ### matplotlib
4076
4177```
42- music_box -e Chapman -o output.csv
78+ music_box -e Chapman -o output.csv --plot O1D
79+ ```
80+
81+ You can also make multiple plots by specifying groupings of species
82+
83+ ```
84+ music_box -e TS1 --plot O3 --plot PAN,HF
85+ ```
86+
87+ Note that the windows may overlap each other
88+
89+ By default all plot units are in ` mol m-3 ` . You can see a list of unit options to specify with ` --plot-output-unit `
90+
91+ ```
92+ music_box -h
93+ ```
94+
95+ It is used like this
96+
97+ ```
98+ music_box -e TS1 --output-format csv --plot O3 --plot-output-unit "ppb"
4399```
44100
45- And, if you have gnuplot installed, some basic plots can be made to show some resulting concentrations
101+ ### gnuplot
102+ If you want ascii plots (maybe you're running over ssh and can't view a graphical window), you can set
103+ the plot tool to gnuplo (` --plot-tool gnuplot ` ) to view some output
46104
47105```
48- music_box -e Chapman -o output.csv --color-output --plot CONC.O1D
106+ music_box -e Chapman -o output.csv --plot O1D --plot-tool gnuplot
49107```
50108
51109# Development and Contributing
0 commit comments