Author: Peter Blossey, pblossey@uw.edu

This archive includes data and scripts used to generate the figures
and table in:

  Peter N. Blossey, Christopher S. Bretherton, Joel A. Thornton and
  Katrina S. Virts, 2018. Locally enhanced aerosols over a shipping lane
  produce convective invigoration but weak overall indirect effects in
  cloud-resolving simulations.  Submitted to Geophysical Research Letters.

The data used to produce the figures and table is in the files:

 - Simulation data (used in figures 2-4 and table):
     + DondraSabang_gauss_ah_PreprocessedData_2D_final.nc 
     + DondraSabang_gauss_ah_PreprocessedData_final.nc 
     + DondraSabang_gauss_ai_PreprocessedData_2D_final.nc (4x emissions)
     + DondraSabang_gauss_ai_PreprocessedData_final.nc (4x emissions)
 - Observational data:
     + trmm2a25_ship_monthly_for_Peter.mat (Used in figure 4ef: 
             pre-processed TRMM reflectivity data)
     + 2017GL074982-f01_data.nc (Used in figure 1: Lightning
             Data from Thornton et al (2017, GRL) 

Also required to produce figure 1 are PM2.5 emissions data from the EDGAR
database at http://edgar.jrc.ec.europa.eu/overview.php?v=431.  We used
the file v431_v2_REFERENCE_PM2.5_2010_SHIP.0.1x0.1.nc.

High resolution coastline data (used in the paper's figure 1) is
available at https://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html
We used gshhs_f.b

The figures and table can be produced with the MATLAB scripts:

 - Figure1.m
 - Figures2And3.m
 - Figure4_Rev1b.m
 - ShipTrackLightningTable.m

Some editing of the table is required to only show the significant
digits.  

The figures should appear in the subdirectory Figures/. 
Other supplemental figures will appear in the subdirectory MiscFigures/.
Additional mean profiles for the shipping lane and background region
(not shown in the paper) can be produced with the script PlotProfiles.m.  
Note that additional versions of figures 2-4 will be produced using
the results of the 4x simulations.  These appear in Figures/ with
names beginning Figure12, Figure13 and Figure14. 

The figures in the paper were produced using MATLAB R2017a on a linux
system with the arguments "-nodesktop -nodisplay".

Other utility matlab scripts:

 - BrownPurple.m
 - CheckRadarHist.m
 - define_constants.m
 - deriv_nonuniform.m
 - divide_first_dimension.m
 - dump_table_of_scalar_values.m*
 - iscol.m
 - linecolors2.m
 - maxmin2d.m
 - maxmin_incr.m
 - plotbox.m*
 - plot_swath.m
 - plot_swathx.m
 - qsw.m
 - StandardErrorOfMean.m
 - text_frac.m

These two scripts were used to extract the above netcdf files from the
raw 2D and 3D outputs of the simulation:

 - Read2DFiles_WriteIntermediateNetcdf.m
 - Read3DFiles_WriteIntermediateNetcdf.m

