CutoutPath

class lsst.analysis.ap.CutoutPath(root, chunk_size=None)

Bases: object

Manage paths to image cutouts with filenames based on diaSourceId.

Supports local files, and id-chunked directories.

Parameters:
rootstr

Root file path to manage.

chunk_sizeint, optional

At most this many files per directory. Must be a power of 10.

Raises:
RuntimeError

Raised if chunk_size is not a power of 10.

Methods Summary

__call__(id)

Return the full path to a diaSource cutout.

mkdir(id)

Make the directory tree to write this cutout id to.

Methods Documentation

__call__(id)

Return the full path to a diaSource cutout.

Parameters:
idint

Source id to create the path for.

Returns:
pathstr

Full path to the requested file.

mkdir(id)

Make the directory tree to write this cutout id to.

Parameters:
idint

Source id to create the path for.