How to use the trollimage.image.Image.__init__ function in trollimage

To help you get started, we’ve selected a few trollimage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pytroll / mpop / mpop / imageo / geo_image.py View on Github external
def __init__(self, channels, area, time_slot,
                 mode="L", crange=None, fill_value=None, palette=None):
        self.area = area
        self.time_slot = time_slot
        self.tags = {}
        self.gdal_options = {}

        Image.__init__(self, channels, mode, crange,
                       fill_value, palette)
github pytroll / satpy / satpy / imageo / geo_image.py View on Github external
def __init__(self, channels, area, start_time, copy=True,
                 mode="L", crange=None, fill_value=None, palette=None, **kwargs):
        self.area = area
        # FIXME: Should we be concerned with start time and end time?
        self.time_slot = start_time
        self.tags = {}
        self.gdal_options = {}

        Image.__init__(self,
                       channels=channels,
                       mode=mode,
                       color_range=crange,
                       fill_value=fill_value,
                       palette=palette,
                       copy=copy)