Dardar

pansat.products.satellite.dardar

This module defines the Dardar product class, which represents all supported Dardar products.

class pansat.products.satellite.dardar.DardarProduct(name, description)

The Dardar class defines a generic interface for Dardar products.

name

The name of the product

Type:

str

description

List of variable names provided by this product.

Type:

list

__init__(name, description)
__str__()

The full product name.

_get_provider()

Find a provider that provides the product.

property default_destination

The default destination for Dardar product is Dardar/<product_name>>

download(start_time, end_time, destination=None, provider=None)

Download data product for given time range.

Parameters:
  • start_time (datetime) – datetime object defining the start date of the time range.

  • end_time (datetime) – datetime object defining the end date of the of the time range.

  • destination (str or pathlib.Path) – The destination where to store the output data.

filename_to_date(filename)

Extract timestamp from filename.

Parameters:

filename (str) – Filename of a Dardar product.

Returns:

datetime object 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.Path or str) – The Dardar file to open.