CutoutPath¶
- class lsst.analysis.ap.CutoutPath(root, chunk_size=None, subdirectory='images')¶
Bases:
objectManage paths to image cutouts with filenames based on diaSourceId.
Supports local files, and id-chunked directories.
- Parameters:
- Raises:
- RuntimeError
Raised if chunk_size is not a power of 10.
Methods Summary
__call__(id, filename)Return the full path to a diaSource cutout.
directory(id)Return the directory to store the output in.
exists(id, filename)Return True if the file already exists.
mkdir(id)Make the directory tree to write this cutout id to.
Methods Documentation
- __call__(id, filename)¶
Return the full path to a diaSource cutout.
- directory(id)¶
Return the directory to store the output in.
- exists(id, filename)¶
Return True if the file already exists.