liger_iris_drp_resources.utils

Functions

download([model_spectra, liger_psfs, ...])

Download all resources from the Google Drive.

get_resource_dir()

to_little_endian(arr)

Convert an array to little-endian byte order.

download(model_spectra: bool = True, liger_psfs: bool = True, keck_pupil: bool = True, iris_psfs: bool = False, filter_trans: bool = True, skip_if_exists: bool = True) str[source]

Download all resources from the Google Drive.

Parameters:
  • model_spectra (bool) – Whether to download the model spectra. Default is True.

  • liger_psfs (bool) – Whether to download the Liger PSFs. Default is True.

  • keck_pupil (bool) – Whether to download the Keck pupil image. Default is True.

  • iris_psfs (bool) – Whether to download the IRIS PSFs. Default is False.

  • filter_trans (bool) – Whether to download the filter transmission curves. Default is True.

  • skip_if_exists (bool) – If True, skip downloading if the output directory already exists and is not empty. Default is True.

get_resource_dir()[source]
to_little_endian(arr: ndarray) ndarray[source]

Convert an array to little-endian byte order.

Parameters:

arr (np.ndarray) – The input array.

Returns:

output (np.ndarray) – The input array with little-endian byte order.