radarx.io.aws_data.list_available_files#

radarx.io.aws_data.list_available_files(bucket, prefix, anonymous=True)[source]#

List files in an S3 bucket with the given prefix.

Parameters:
  • bucket (str) – Name of the AWS S3 bucket.

  • prefix (str) – Prefix path in the bucket to search for files.

  • anonymous (bool, optional) – If True, uses anonymous access. Default is True.

Returns:

list – List of file paths available under the prefix.

Examples

List files in the NEXRAD Level II archive bucket:

>>> files = list_available_files("noaa-nexrad-level2",
    "2016/10/06/KAMX/")
>>> print(files)

List files in the MRMS bucket:

>>> files = list_available_files("noaa-mrms-pds",
    "CONUS/ReflectivityAtLowestAltitude_00.50/")
>>> print(files)