asn_gather
- jwst.associations.asn_gather.asn_gather(association, destination=None, exp_types=None, exclude_types=None, source_folder=None, shellcmd='rsync -urv --no-perms --chmod=ugo=rwX')[source]
Copy members of an association from one location to another.
The association is copied into the destination, re-written such that the member list points to the new location of the members.
- Parameters:
- associationstr, pathlib.Path
The association to gather.
- destinationstr, pathlib.Path, or None
The folder to place the association and its members. If None, the current working directory is used.
- exp_types[str[,…]] or None
List of exposure types to gather. If None, all are gathered.
- exclude_types[str[,…]] or None
List of exposure types to exclude.
- source_folderstr or None
Folder where the members originate from. If None, the folder of the association is presumed.
- shellcmdstr
The shell command to use to do the copying of the individual members.
- Returns:
- dest_asnpathlib.Path
The copied association.