pyrfu.mms.list_files_aws module#

pyrfu.mms.list_files_aws.list_files_aws(tint: list[str], mms_id: str | int, var: Mapping[str, str], bucket_prefix: str | None = '') list[dict[str, Any]][source]#

List files from Amazon Web Services (AWS).

Find available files from the Amazon Wed Services (AWS) for the target instrument, data type, data rate, mms_id and level during the target time interval.

Parameters:
  • tint (list of str) – Time interval

  • mms_id (str or int) – Index of the spacecraft

  • var (dict) –

    Dictionary containing 4 keys
    • var[“inst”] : name of the instrument

    • var[“tmmode”] : data rate

    • var[“lev”] : data level

    • var[“dtype”] : data type

  • bucket_prefix (str, Optional) – Name of AWS S3 bucket.

Returns:

file_names – List of files corresponding to the parameters in the selected time interval

Return type:

list of str

Raises:
  • FileNotFoundError – If the path doesn’t exist in the AWS S3 bucket or if the bucket doesn’t exist.

  • TypeError – If the time interval is not array_like or if tint values are not in datetime64 or str.