Opera¶
pansat.products.ground_based.opera¶
This module defines the OperaProduct class, which is used to represent data
products from the EUMETNET Opera ground-radar network.
- class pansat.products.ground_based.opera.OperaProduct(product_name, description)¶
Class representing Opera products.
OPERA is the Radar Programme of EUMETNET. More information can be found on the EUMETNET homepage.
- __init__(product_name, description)¶
- __str__()¶
Should return a string representation of the product name.
- _get_provider()¶
Find a provider that provides the product.
- property default_destination¶
The default destination for Opera product is
Opera/<product_name>>
- download(start_time, end_time, destination=None, provider=None)¶
Download data product for given time range.
- Parameters:
start_time (
datetime) –datetimeobject defining the start date of the time range.end_time (
datetime) –datetimeobject defining the end date of the of the time range.destination (
strorpathlib.Path) – The destination where to store the output data.
- filename_to_date(filename)¶
Extract timestamp from filename.
- Parameters:
filename (
str) – Filename of an Opera product.- Returns:
datetimeobject representing the timestamp of the filename.
- matches(filename)¶
Determines whether a given filename matches the pattern used for the product.
- Parameters:
filename (
str) – The filename- Returns:
True if the filename matches the product, False otherwise.
- open(filename)¶
Open file as xarray dataset.
- Parameters:
filename (
pathlib.Pathorstr) – The Opera file to open.
- pansat.products.ground_based.opera._parse_products()¶
Parses available Opera products.
- pansat.products.ground_based.opera.get_latitude_grid(*args)¶
Returns the latitude grid on which the Opera data is provided.
- pansat.products.ground_based.opera.get_longitude_grid(*args)¶
Returns the longitude grid on which the Opera data is provided.