/aprl-carbontypes

APRL Carbon Type Analysis: code to accompany manuscript https://doi.org/10.5194/acp-17-4433-2017

Primary LanguageRGNU General Public License v3.0GPL-3.0

APRL Carbontypes

Code to accompany manuscript on carbon type analysis. Submitted to Atmospheric Chemistry and Physics as

Takahama, S. and Ruggeri, G.: Technical Note: Relating functional group measurements to carbon types for improved model–measurement comparisons of organic aerosol composition, Atmos. Chem. Phys., 17, 4433–4450, doi:10.5194/acp-17-4433-2017, 2017.

This software is distributed under the GNU Public License (GPLv3).

Essential scripts

  1. build_ssp.sh
  2. build_attributes.sh
  3. production_chain.sh

These scripts can be run individually through the sh shell:

$ sh scriptname.sh

Notes

  • The directory containing this file (README.md) is the working directory.
  • options(stringsAsFactors=FALSE) should be the default behavior in R and is specified at the beginning of each script.
  • config_IO.R facilitates I/O across files
  • config_fig.R facilitates figure configuration across files

Files not generated by scripts:

  • inputs/apinene_formatted.csv (from MCM-KPP-GP simulation)
  • inputs/apinene_aer_formatted.csv (from MCM-KPP-GP simulation)
  • inputs/example_1.json (manually generated)
  • inputs/meas_FGs.json (manually generated)
  • inputs/Sax2005_Table2_APIN.csv (manually generated)
  • inputs/mcm_apinene_mass.txt (generated from MCM web)

Repository structure

Directories:

  • lib/: code library for reused functions
  • data-raw/: original data
  • data/: populated with build_ssp.sh
  • outputs/: output of analysis_*, export_*, production_*, figures_*

Scripts:

  • build_*: data prep (for constructing master tables). read/write to directory data/
  • analysis_*: analysis. write to directory outputs/
  • select_*: selection of example
  • config_*: configurations
  • figures_*: production figures
  • rev_*: additional analyses which considers combined set of molecules from APIN and TMB mechanisms