In [1]:
# script by Martin Raspaud
# modified by Mikhail Itkin

from datetime import datetime

from satpy import Scene
from satpy import DatasetID
from satpy.utils import debug_on
from trollimage.image import Image


def logenh(data):
    res = (np.log10(data / 5000.) - np.log10(0.0223)) /  (1.0 - np.log10(0.0223))
    res[res < 0] = 0
    return res


if __name__ == '__main__':

    debug_on()
    scn = Scene(
        sensor='sar-c',
        start_time=datetime(2017, 9, 19, 0, 0),
        base_dir="."
    )

    composite = 'hv'

    ds_hh = DatasetID(name='measurement', polarization='hh')
    ds_hv = DatasetID(name='measurement', polarization='hv')
    
    scn.load([ds_hh,
              ds_hv])

    mx = 2000.

    i = scn.datasets[ds_hh]
    m = scn.datasets[ds_hv]

    rs = mx - (mx - m) * (mx - i) / mx
    data_g = ((mx - i) * m + rs) * i / mx


    img = Image((i, data_g, m), mode='RGB')

    img.stretch((.2, .02))
    pi = img.pil_image().resize((800,800))
    pi.save('ant.png')
[DEBUG: 2017-09-25 11:15:50 : satpy.scene] Setting 'PPP_CONFIG_DIR' to '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc'
[DEBUG: 2017-09-25 11:15:50 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_compact.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_compact.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_compact.yaml']
[DEBUG: 2017-09-25 11:15:50 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ahi_hsd.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ahi_hsd.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ahi_hsd.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml']
[INFO: 2017-09-25 11:15:51 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_xrit.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.mipp_xrit' (No module named mipp)
  in "<string>", line 6, column 11:
      reader: !!python/name:satpy.readers.mipp ... 
              ^
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_l1b.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml']
[INFO: 2017-09-25 11:15:51 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/gac_lac_l1.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.gac_lac_l1' (No module named pygac.gac_calibration)
  in "<string>", line 138, column 22:
            file_reader: !!python/name:satpy.readers.gac_ ... 
                         ^
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml']
[INFO: 2017-09-25 11:15:51 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_msg.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.nc_nwcsaf_msg' (No module named h5netcdf)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.nc_n ... 
                         ^
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml']
[INFO: 2017-09-25 11:15:51 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/abi_l1b.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.abi_l1b' (No module named h5netcdf)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.abi_ ... 
                         ^
[DEBUG: 2017-09-25 11:15:51 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/sar_c.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/sar_c.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/sar_c.yaml']
[DEBUG: 2017-09-25 11:15:51 : satpy.readers.yaml_reader] Assigning to safe_sar_c: ['./S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/calibration/calibration-s1b-ew-grd-hh-20170919t200656-20170919t200801-007465-00d2db-001.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/calibration/calibration-s1b-ew-grd-hv-20170919t200656-20170919t200801-007465-00d2db-002.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/calibration/noise-s1b-ew-grd-hh-20170919t200656-20170919t200801-007465-00d2db-001.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/calibration/noise-s1b-ew-grd-hv-20170919t200656-20170919t200801-007465-00d2db-002.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/s1b-ew-grd-hh-20170919t200656-20170919t200801-007465-00d2db-001.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/annotation/s1b-ew-grd-hv-20170919t200656-20170919t200801-007465-00d2db-002.xml', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/measurement/s1b-ew-grd-hh-20170919t200656-20170919t200801-007465-00d2db-001.tiff', './S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/measurement/s1b-ew-grd-hv-20170919t200656-20170919t200801-007465-00d2db-002.tiff']
[DEBUG: 2017-09-25 11:15:52 : satpy.readers.safe_sar_c] Loading dataset ./S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/measurement/s1b-ew-grd-hv-20170919t200656-20170919t200801-007465-00d2db-002.tiff
[DEBUG: 2017-09-25 11:15:52 : satpy.readers.safe_sar_c] Loading dataset ./S1B_EW_GRDM_1SDH_20170919T200656_20170919T200801_007465_00D2DB_0223.SAFE/measurement/s1b-ew-grd-hh-20170919t200656-20170919t200801-007465-00d2db-001.tiff
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml']
[INFO: 2017-09-25 11:15:52 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdfeos_l1b.yaml']
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.hdfeos_l1b' (No module named pyhdf.error)
  in "<string>", line 398, column 18:
        file_reader: !!python/name:satpy.readers.hdfe ... 
                     ^
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml']
[INFO: 2017-09-25 11:15:52 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_nwcsaf_pps.yaml']
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.nc_nwcsaf' (No module named h5netcdf)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.nc_n ... 
                         ^
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/amsr2_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/amsr2_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/amsr2_l1b.yaml']
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ghrsst_osisaf.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ghrsst_osisaf.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/ghrsst_osisaf.yaml']
[DEBUG: 2017-09-25 11:15:52 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_electrol.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_electrol.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_electrol.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml']
[INFO: 2017-09-25 11:15:53 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrpt.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.hrpt' (No module named pygac.gac_calibration)
  in "<string>", line 93, column 22:
            file_reader: !!python/name:satpy.readers.hrpt ... 
                         ^
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/acspo.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/acspo.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/acspo.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_sdr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_sdr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/viirs_sdr.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml']
[INFO: 2017-09-25 11:15:53 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/fci_fdhsi.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.fci_fdhsi' (No module named h5netcdf)
  in "<string>", line 357, column 18:
        file_reader: !!python/name:satpy.readers.fci_ ... 
                     ^
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nucaps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nucaps.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nucaps.yaml']
[DEBUG: 2017-09-25 11:15:53 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_msg.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml']
[INFO: 2017-09-25 11:15:54 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/nc_slstr.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.nc_slstr' (No module named h5netcdf)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.nc_s ... 
                         ^
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/omps_edr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/omps_edr.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/omps_edr.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_jma.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_jma.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hrit_jma.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/epsl1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/epsl1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/epsl1b.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml']
[INFO: 2017-09-25 11:15:54 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/olci.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.nc_olci' (No module named h5netcdf)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.nc_o ... 
                         ^
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml']
[INFO: 2017-09-25 11:15:54 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/safe_msi.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.safe_msi' (No module named glymur)
  in "<string>", line 10, column 22:
            file_reader: !!python/name:satpy.readers.safe ... 
                         ^
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/aapp_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/aapp_l1b.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/aapp_l1b.yaml']
[DEBUG: 2017-09-25 11:15:54 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/native_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/native_msg.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/native_msg.yaml']
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml']
[INFO: 2017-09-25 11:15:55 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/li_l2.yaml']
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.li_l2' (No module named h5netcdf)
  in "<string>", line 47, column 18:
        file_reader: !!python/name:satpy.readers.li_l ... 
                     ^
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml']
[INFO: 2017-09-25 11:15:55 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/hdf4_caliopv3.yaml']
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.hdf4_caliopv3' (No module named pyhdf.SD)
  in "<string>", line 40, column 18:
        file_reader: !!python/name:satpy.readers.hdf4 ... 
                     ^
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] Reading ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml']
[INFO: 2017-09-25 11:15:55 : satpy.readers] Cannot use ['/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml', '/home/mikhail/.virtualenvs/default/lib/python2.7/site-packages/satpy/etc/readers/mipp_h8.yaml']
[DEBUG: 2017-09-25 11:15:55 : satpy.readers] while constructing a Python object
cannot find module 'satpy.readers.mipp_xrit' (No module named mipp)
  in "<string>", line 7, column 11:
      reader: !!python/name:satpy.readers.mipp ... 
              ^
[DEBUG: 2017-09-25 11:15:55 : satpy.composites] Looking for composites config file sar-c.yaml
[DEBUG: 2017-09-25 11:15:55 : satpy.composites] Looking for composites config file sar.yaml
[DEBUG: 2017-09-25 11:15:55 : satpy.readers.yaml_reader] No coordinates found for DatasetID(name='measurement', wavelength=(5.4, 5.405, 5.41), resolution=80, polarization='hh', calibration=None, modifiers=())
[DEBUG: 2017-09-25 11:15:55 : satpy.readers.safe_sar_c] Reading measurement.
[DEBUG: 2017-09-25 11:15:55 : satpy.readers.safe_sar_c] Reading noise data.
[DEBUG: 2017-09-25 11:16:02 : satpy.readers.safe_sar_c] Reading calibration data.
[DEBUG: 2017-09-25 11:16:09 : satpy.readers.safe_sar_c] Calibrating.
[DEBUG: 2017-09-25 11:16:10 : satpy.readers.yaml_reader] No coordinates found for DatasetID(name='measurement', wavelength=(5.4, 5.405, 5.41), resolution=80, polarization='hv', calibration=None, modifiers=())
[DEBUG: 2017-09-25 11:16:10 : satpy.readers.safe_sar_c] Reading measurement.
[DEBUG: 2017-09-25 11:16:11 : satpy.readers.safe_sar_c] Reading noise data.
[DEBUG: 2017-09-25 11:16:18 : satpy.readers.safe_sar_c] Reading calibration data.
[DEBUG: 2017-09-25 11:16:25 : satpy.readers.safe_sar_c] Calibrating.
[DEBUG: 2017-09-25 11:16:35 : trollimage.image] Applying stretch (0.2, 0.02) with parameters {}
[DEBUG: 2017-09-25 11:16:35 : trollimage.image] Perform a linear contrast stretch.
[DEBUG: 2017-09-25 11:16:36 : trollimage.image] Calculate the histogram percentiles: 
[DEBUG: 2017-09-25 11:16:36 : trollimage.image] Left and right percentiles: 20.0 2.0
[DEBUG: 2017-09-25 11:16:37 : trollimage.image] Interval: left=0.158525, right=1.352566 width=1.194041
[DEBUG: 2017-09-25 11:16:41 : trollimage.image] Perform a linear contrast stretch.
[DEBUG: 2017-09-25 11:16:42 : trollimage.image] Calculate the histogram percentiles: 
[DEBUG: 2017-09-25 11:16:42 : trollimage.image] Left and right percentiles: 20.0 2.0
[DEBUG: 2017-09-25 11:16:43 : trollimage.image] Interval: left=0.006918, right=1.086269 width=1.079351
[DEBUG: 2017-09-25 11:16:48 : trollimage.image] Perform a linear contrast stretch.
[DEBUG: 2017-09-25 11:16:49 : trollimage.image] Calculate the histogram percentiles: 
[DEBUG: 2017-09-25 11:16:49 : trollimage.image] Left and right percentiles: 20.0 2.0
[DEBUG: 2017-09-25 11:16:50 : trollimage.image] Interval: left=0.040742, right=0.857557 width=0.816815

image