Пример #1
0
    def __init__(self,
                 name=None,
                 filename=None,
                 enhancement_config=None,
                 base_dir=None,
                 tags=None,
                 **kwargs):
        ImageWriter.__init__(self,
                             name,
                             filename,
                             enhancement_config,
                             base_dir,
                             default_config_filename="writers/mitiff.yaml",
                             **kwargs)

        self.tags = self.info.get("tags", None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        self.mitiff_config = {}
        self.translate_channel_name = {}
        self.channel_order = {}
Пример #2
0
    def __init__(self, tags=None, **kwargs):
        ImageWriter.__init__(self, default_config_filename="writers/ninjotiff.yaml", **kwargs)

        self.tags = self.info.get("tags", None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))
Пример #3
0
    def __init__(self, floating_point=False, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/ninjotiff.yaml",
                             **kwargs)

        # self.floating_point = bool(self.config_options.get(
        #     "floating_point", None) if floating_point is None else
        #     floating_point)
        self.tags = self.info.get("tags", None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))
Пример #4
0
    def __init__(self, floating_point=False, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/ninjotiff.yaml",
                             **kwargs)

        # self.floating_point = bool(self.config_options.get(
        #     "floating_point", None) if floating_point is None else
        #     floating_point)
        self.tags = self.info.get("tags",
                                  None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))
Пример #5
0
    def __init__(self, name=None, tags=None, **kwargs):
        """Initialize reader with tag and other configuration information."""
        ImageWriter.__init__(self,
                             name=name,
                             default_config_filename="writers/mitiff.yaml",
                             **kwargs)
        self.tags = self.info.get("tags", None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        self.mitiff_config = {}
        self.translate_channel_name = {}
        self.channel_order = {}
        self.palette = False
Пример #6
0
    def __init__(self, dtype=None, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/geotiff.yaml",
                             **kwargs)

        self.dtype = self.info.get("dtype") if dtype is None else dtype
        self.tags = self.info.get("tags", None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        # GDAL specific settings
        self.gdal_options = {}
        for k in self.GDAL_OPTIONS:
            if k in kwargs or k in self.info:
                self.gdal_options[k] = kwargs.get(k, self.info[k])
Пример #7
0
    def __init__(self, dtype=None, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/geotiff.yaml",
                             **kwargs)

        self.dtype = self.info.get("dtype") if dtype is None else dtype
        self.tags = self.info.get("tags",
                                  None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        # GDAL specific settings
        self.gdal_options = {}
        for k in self.GDAL_OPTIONS:
            if k in kwargs or k in self.info:
                self.gdal_options[k] = kwargs.get(k, self.info[k])
Пример #8
0
    def __init__(self, floating_point=False, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/geotiff.cfg",
                             **kwargs)

        self.floating_point = bool(
            self.config_options.get("floating_point", None)
            if floating_point is None else floating_point)
        self.tags = self.config_options.get("tags",
                                            None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        # GDAL specific settings
        self.gdal_options = {}
        for k in self.GDAL_OPTIONS:
            if k in kwargs or k in self.config_options:
                kwargs.get(k, self.config_options[k])
Пример #9
0
    def __init__(self, floating_point=False, tags=None, **kwargs):
        ImageWriter.__init__(self,
                             default_config_filename="writers/geotiff.cfg",
                             **kwargs)

        self.floating_point = bool(self.config_options.get(
            "floating_point", None) if floating_point is None else
            floating_point)
        self.tags = self.config_options.get("tags",
                                            None) if tags is None else tags
        if self.tags is None:
            self.tags = {}
        elif not isinstance(self.tags, dict):
            # if it's coming from a config file
            self.tags = dict(tuple(x.split("=")) for x in self.tags.split(","))

        # GDAL specific settings
        self.gdal_options = {}
        for k in self.GDAL_OPTIONS:
            if k in kwargs or k in self.config_options:
                kwargs.get(k, self.config_options[k])
Пример #10
0
 def __init__(self, **kwargs):
     ImageWriter.__init__(
         self,
         default_config_filename="writers/simple_image.yaml",
         **kwargs)
Пример #11
0
 def __init__(self, **kwargs):
     """Initialize image writer plugin."""
     ImageWriter.__init__(
         self,
         default_config_filename="writers/simple_image.yaml",
         **kwargs)