return_files_from_path

HSTB.kluster.fqpr_helpers.return_files_from_path(pth, in_chunks=True)

Input files can be entered into an xarray_conversion.BatchRead instance as either a list, a path to a directory of multibeam files or as a path to a single file. Here we return all the files in each of these scenarios as a list for the gui to display or to be analyzed in some other way

Provide an optional fileext argument if you want to specify files with a different extension

If in chunks

Parameters
  • pth (str) – either a list of files, a string path to a directory or a string path to a file

  • in_chunks (bool) – if True, returns lists of lists of length kluster_variables.converted_files_at_once, where each sublist is at a maximum kluster_variables.max_converted_chunk_size in total file size

Returns

list of files found

Return type

list