NEXRADLevel3Archive#

class metpy.remote.NEXRADLevel3Archive[source]#

Access data from the NEXRAD Level 3 archive in AWS.

These data consist of processed data from NWS NEXRAD, including: * Single elevation moment data * Estimated precipitation data * Feature detection (e.g. tornadoes, mesocyclones, hail)

Initialize the data store.

Parameters:
  • bucket_name (str) – The name of the bucket

  • delimiter (str, optional) – The delimiter used to split the key into distinct portions. Defaults to ‘/’.

Methods Summary

__init__()

Initialize the data store.

common_prefixes(prefix[, delim])

Return the common prefixes under a given prefix.

dt_from_key(key)

Parse date from key.

get_product(site, prod_id[, dt])

Get a product from the archive.

get_range(site, prod_id, start, end)

Yield products within a particular date/time range.

objects(prefix)

Return objects matching the given prefix.

product_ids([site])

Return product ids available.

sites()

Return sites available.

Methods Documentation

__init__()[source]#

Initialize the data store.

Parameters:
  • bucket_name (str) – The name of the bucket

  • delimiter (str, optional) – The delimiter used to split the key into distinct portions. Defaults to ‘/’.

common_prefixes(prefix, delim=None)[source]#

Return the common prefixes under a given prefix.

Parameters:
  • prefix (str) – The starting prefix to look under for common prefixes.

  • delim (str, optional) – The delimiter used to split the key into distinct portions. If not specified, defaults to the one initially set on the client.

dt_from_key(key)[source]#

Parse date from key.

Parameters:

key (str) – The key to parse

Returns:

datetime – The parsed date

get_product(site, prod_id, dt=None)[source]#

Get a product from the archive.

Parameters:
  • site (str) – The site to search for data

  • prod_id (str) – The product ID to search for data

  • dt (datetime.datetime, optional) – The desired date/time for the model run; the one closest matching in time will be returned. This should have the proper timezone included; if not specified, UTC will be assumed. If None, defaults to the current UTC date/time.

get_range(site, prod_id, start, end)[source]#

Yield products within a particular date/time range.

Parameters:
  • site (str) – The site to search for data

  • prod_id (str) – The product ID to search for data

  • start (datetime.datetime) – The start of the date/time range. This should have the proper timezone included; if not specified, UTC will be assumed.

  • end (datetime.datetime) – The end of the date/time range. This should have the proper timezone included; if not specified, UTC will be assumed.

objects(prefix)[source]#

Return objects matching the given prefix.

Parameters:

prefix (str) – The prefix to match against.

Returns:

Iterator of botocore.client.Object – Objects matching the given prefix.

product_ids(site='TLX')[source]#

Return product ids available.

Parameters:

site (str, optional) – Site to examine for product ids. Defaults to ‘TLX’.

Returns:

List[str] – Product ids

sites()[source]#

Return sites available.

Returns:

List[str] – Sites

Examples using metpy.remote.NEXRADLevel3Archive#

Remote Data Access

Remote Data Access