mergernet.core.utils.iauname_path#
- mergernet.core.utils.iauname_path(iaunames: str | List[str] | None = None, ra: float | List[float] | None = None, dec: float | List[float] | None = None, prefix: str | Path = '', suffix: str = '', flat: bool = False, return_str: bool = False) Path | List[Path] [source]#
Calculate the nested path for a given iauname
- Parameters:
iaunames (str, List[str], optional) – Object iauname. The iauname or RA and DEC must be passed, if
iaunames
isNone
, this function computes the iauname using thera
anddec
parametersra (float, List[float], optional) – Object RA, used only if
iaunames
isNone
dec (float, List[float], optional) – Object DEC, used only if
iaunames
isNone
prefix (str, Path, optional) – Path that will be prepended at the begin of all paths
suffix (str, optional) – Suffix that will be appended at the end of all paths
flat (bool, optional) – Create the flat path with all files inside a same parent folder. This is not recomended for big datasets
return_str (bool, optional) – Cast all paths to string before returning
Example
iaunames_path(‘J123049.42+122328.03’, ‘.png’) Path(‘J123/J123049.42+122328.03.png’)
- Returns:
The iauname path
- Return type:
Path, List[Path]