arrakis.cleanup

DANGER ZONE: Purge directories of un-needed FITS files.

Module Contents

Functions

cli()

Command-line interface

main(→ None)

Clean up beam images

make_cutout_tarball(→ pathlib.Path)

Make a tarball of the cutouts directory

purge_cubelet_beams(→ pathlib.Path)

Clean up beam images

Attributes

TQDM_OUT

arrakis.cleanup.cli()[source]

Command-line interface

arrakis.cleanup.main(datadir: pathlib.Path, overwrite: bool = False) None[source]

Clean up beam images

Parameters:

datadir (Path) – Directory with sub dir ‘cutouts’

arrakis.cleanup.make_cutout_tarball(cutdir: pathlib.Path, overwrite: bool = False) pathlib.Path[source]

Make a tarball of the cutouts directory

Parameters:

cutdir (Path) – Directory containing cutouts

Returns:

Path to the tarball

Return type:

Path

arrakis.cleanup.purge_cubelet_beams(filepath: pathlib.Path) pathlib.Path[source]

Clean up beam images

Parameters:
  • workdir (str) – Directory containing images

  • stoke (str) – Stokes parameter

arrakis.cleanup.TQDM_OUT[source]