species.data.filter_data package#

Submodules#

species.data.filter_data.filter_data module#

Module for downloading filter data from the website of the SVO Filter Profile Service.

species.data.filter_data.filter_data.add_filter_profile(input_path: str, database: File, filter_name: str) None[source]#

Function for downloading and adding a filter profile to the HDF5 database.

Parameters:
  • input_path (str) – Folder where the data is located.

  • database (h5py._hl.files.File) – Database.

  • filter_name (str) – Filter name from the SVO Filter Profile Service (e.g., ‘Paranal/NACO.Lp’) or a user-defined name if a filename is specified.

Returns:

NoneType

Return type:

None

species.data.filter_data.filter_data.download_filter(filter_id: str, input_path: str) Tuple[ndarray | None, ndarray | None, str | None][source]#

Function for downloading filter profile data from the SVO Filter Profile Service.

Parameters:
  • filter_id (str) – Filter name as listed on the website of the SVO Filter Profile Service.

  • input_path (str) – Folder where the data is located.

Returns:

  • np.ndarray – Wavelength (um).

  • np.ndarray – Fractional transmission.

  • str – Detector type (‘energy’ or ‘photon’).

Module contents#