General open and methods (sarpy.io.product.converter)

This module provide utilities for opening any files analogous to Sensor Independent Derived Data, namely detected images in the ground plane.

sarpy.io.product.converter.register_opener(open_func: Callable) None

Provide a new opener.

Parameters:

open_func – This is required to be a function which takes a single argument (file name). This function should return a sarpy.io.product.base.SIDDTypeReader instance if the referenced file is viable for the underlying type, and None otherwise.

Return type:

None

sarpy.io.product.converter.parse_openers() None

Automatically find the viable openers (i.e. is_a()) in the various modules.

sarpy.io.product.converter.open_product(file_name: str) SIDDTypeReader

Given a file, try to find and return the appropriate reader object.

Parameters:

file_name (str) –

Return type:

SIDDTypeReader

Raises:

SarpyIOError