oceanpack.app.models.filesource

Classes

Functions

collect_files(→ list[pathlib.Path])

Collect files from a given path.

Module Contents

class oceanpack.app.models.filesource.FileSourceModel(source_type: FileSourceType = None)[source]
Parameters:

source_type (FileSourceType)

clean_data()[source]

Remove duplicates and NaN values from the data.

load_data(path: str)[source]
Parameters:

path (str)

process_data()[source]

Convert data to numeric

to_netcdf(output_file)[source]
df = None
ds = None
history = ''
property source_type: str
Return type:

str

oceanpack.app.models.filesource.collect_files(path: str, suffix='log') list[pathlib.Path][source]

Collect files from a given path.

Parameters:
  • path (str) – The path to the file or directory.

  • suffix (str, optional) – The file suffix to filter by. Defaults to ‘log’.

Returns:

A list of paths to the detected files.

Return type:

list[Path]