return_directory_from_data

HSTB.kluster.fqpr_helpers.return_directory_from_data(data)

Given either a path to a zarr store, a path to a directory of multibeam files, a list of paths to multibeam files or a path to a single multibeam file, return the parent directory.

Parameters

data (Union[list, str]) – a path to a zarr store, a path to a directory of multibeam files, a list of paths to multibeam files or a path to a single multibeam file.

Returns

output_directory

Return type

str, path to output directory