NCAR / music-box

A box/column model using MICM chemistry
https://ncar.github.io/music-box/branch/main/
Apache License 2.0
14 stars 9 forks source link

Tools waccmToMusicBox.py enable CSV output as an option #252

Open carl-drews opened 5 days ago

carl-drews commented 5 days ago

The standard output for initial species concentrations is a JSON file. CSV is also useful because it can be loaded into Excel for analysis.

The script may already contain this option, perhaps disabled? Re-enable the CSV option with a command-line argument. Retain the JSON output even if CSV is requested.

carl-drews commented 5 days ago

Yes, line 444 contains the disabled switch:

    if (False):
        # Write CSV file for MusicBox initial conditions.
        csvName = os.path.join(musicaDir, "initial_conditions.csv")
        writeInitCSV(varValues, csvName)

The revised code should replace that False with a command-line parameter to turn On CSV output.