Sentinel 2 MSI true color

Created with:

Package Version
SatPy 0.9.0
PyResample 1.10.1
Trollimage 1.5.3
PyKdtree 1.3.1
In [1]:
from satpy import Scene, find_files_and_readers

files = find_files_and_readers(base_dir="/home/a000680/data/Sentinel-2/",
scn = Scene(filenames=files)
In [2]:
composite = 'true_color'
/home/a000680/.local/lib/python2.7/site-packages/h5py/ FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
<trollimage.xrimage.XRImage at 0x7f0d256edc10>
In [3]:
scn.save_dataset(composite, './sentinel2_msi_%s_rgb_%s.png' %
                 (composite, scn.attrs['start_time'].strftime('%Y%m%d%H%M')))