parse_files_grizli_aws#

niriss_tools.pipeline.parse_files_grizli_aws(data_dir, root='abell2744clu', out_path=None)[source]#

Parse files processed using grizli aws/DJA into a dict.

Only files in the correct format will be parsed, so it is safe to have other files in the same directory. The image mosaics are separated by telescope, instrument, and filter, in an attempt to avoid any namespace collisions resulting from the same filter names being used in multiple locations. Images are also separated by type. The output can optionally be saved to a YAML file to avoid reading all of the headers again (this can be extremely slow if working with large, compressed mosaics).

Parameters:
data_dirPathLike

The directory to scan for image files.

rootstr, optional

The expected root of the filenames, by default "abell2744clu".

out_pathPathLike | None, optional

The path to which the output will be written (in YAML format). By default None; the output will not be written to disk.

Returns:
dict

A dictionary containing the relevant files in the directory, separated by telescope, instrument, and filter.