Skip to content

tropomi_l2_no2

TROPOMI L2 NO2 Reader. Deprecated wrapper — use monetio.load('tropomi', ...) instead.

open_dataset(fnames, variable_dict, debug=False, **kwargs)

Open one or more TROPOMI L2 NO2 files.

Parameters:

Name Type Description Default
fnames str

Glob expression for input file paths.

required
variable_dict dict or str or sequence

Variable configuration.

required
debug bool

Enable debug logging.

False
**kwargs dict

Additional arguments forwarded to TROPOMIReader.open_dataset.

{}

Returns:

Type Description
OrderedDict

Dict mapping reference time string to list of xarray.Dataset granules.

Source code in monetio/sat/tropomi_l2_no2.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@deprecated_wrapper(
    "monetio.sat.tropomi_l2_no2.open_dataset",
    'monetio.load("tropomi", files=...)',
)
def open_dataset(fnames, variable_dict, debug=False, **kwargs):
    """Open one or more TROPOMI L2 NO2 files.

    Parameters
    ----------
    fnames : str
        Glob expression for input file paths.
    variable_dict : dict or str or sequence
        Variable configuration.
    debug : bool
        Enable debug logging.
    **kwargs : dict
        Additional arguments forwarded to ``TROPOMIReader.open_dataset``.

    Returns
    -------
    OrderedDict
        Dict mapping reference time string to list of xarray.Dataset granules.
    """
    return TROPOMIReader().open_dataset(
        files=fnames, variable_dict=variable_dict, debug=debug, **kwargs
    )

read_trpdataset(*args, **kwargs)

Alias for :func:open_dataset.

Source code in monetio/sat/tropomi_l2_no2.py
37
38
39
40
41
42
43
44
def read_trpdataset(*args, **kwargs):
    """Alias for :func:`open_dataset`."""
    warnings.warn(
        "read_trpdataset is an alias for open_dataset and may be removed in the future",
        FutureWarning,
        stacklevel=2,
    )
    return open_dataset(*args, **kwargs)