split_visit

grizli.utils.split_visit(visit, visit_split_shift=1.5, max_dt=0.25, path='../RAW')[source]

Check if files in a visit have large shifts and split them otherwise

Parameters
visitdict

The visit dictionary containing information about the visit.

visit_split_shiftfloat, optional

The threshold for splitting the visit if shifts are larger than visit_split_shift arcmin. Default is 1.5.

max_dtfloat, optional

The maximum time difference between exposures in days. Default is 6.0 / 24.

pathstr, optional

The path to the directory containing the visit files. Default is “../RAW”.

Returns
list of dict

A list of visit dictionaries, each representing a split visit.