Archiver

class sidpy.archiver.Archiver(root)[source]

Bases: object

Class used to generate archive structure, specify paths of newly processed files and archive them accordingly. The default structure of the archive is {site}/YYYY/MM/DD/{file_type}/.

Methods Summary

archive_path(header, original_sid)

Create archive path root taking into consideration the instrument and site.

static_summary_path(site)

Verifies and generates static paths for live data plots.

Methods Documentation

archive_path(header, original_sid)[source]

Create archive path root taking into consideration the instrument and site.

Parameters:
  • header (dict) – Dictionary containing observation parameters, eg. transmitter freq.

  • original_sid (bool) – Statement on whether SID or Supersid data is being used.

Returns:

parents (list) – Containing live data path and %Y/%m/%d archive path.

static_summary_path(site)[source]

Verifies and generates static paths for live data plots.

Parameters:

site (str) – Site name.