General open and conversion methods (sarpy.io.general.converter)¶
This module provides utilities for attempting to open other image files not opened by the sicd, sidd, cphd, or crsd reader collections.
- sarpy.io.general.converter.register_opener(open_func: Callable) None ¶
Provide a new opener.
- Parameters:
open_func (Callable) – This is required to be a function which takes a single argument (file name). This function should return a sarpy.io.general.base.BaseReader instance if the referenced file is viable for the underlying type, and None otherwise.
- Return type:
None
- sarpy.io.general.converter.parse_openers() None ¶
Automatically find the viable openers (i.e.
is_a()
) in the various modules.
- sarpy.io.general.converter.open_general(file_name: str) BaseReader ¶
Given a file, try to find and return the appropriate reader object.
- Parameters:
file_name (str) –
- Return type:
- Raises: