Skip to content

gml_ozonesonde

GML Ozonesonde Reader. Deprecated wrapper — use monetio.load('gml_ozonesonde', ...) instead.

add_data(dates, *, location=None, n_procs=1, errors='raise', **kwargs)

Retrieve and load GML ozonesonde data as a DataFrame.

Parameters:

Name Type Description Default
dates sequence of datetime-like

The period between the min and max (both inclusive) will be used to select the files to load.

required
location str or sequence of str

For example 'Boulder, Colorado'.

None
n_procs int

For Dask.

1
errors ('raise', warn, skip)

What to do when there is an error reading a file.

'raise'
**kwargs dict

Additional arguments forwarded to GMLOzonesondeReader.open_dataset.

{}

Returns:

Type Description
DataFrame
Source code in monetio/profile/gml_ozonesonde.py
 7
 8
 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.profile.gml_ozonesonde.add_data",
    'monetio.load("gml_ozonesonde", dates=...)',
)
def add_data(dates, *, location=None, n_procs=1, errors="raise", **kwargs):
    """Retrieve and load GML ozonesonde data as a DataFrame.

    Parameters
    ----------
    dates : sequence of datetime-like
        The period between the min and max (both inclusive)
        will be used to select the files to load.
    location : str or sequence of str, optional
        For example 'Boulder, Colorado'.
    n_procs : int
        For Dask.
    errors : {'raise', 'warn', 'skip'}
        What to do when there is an error reading a file.
    **kwargs : dict
        Additional arguments forwarded to ``GMLOzonesondeReader.open_dataset``.

    Returns
    -------
    pandas.DataFrame
    """
    return GMLOzonesondeReader().open_dataset(
        dates=dates, location=location, n_procs=n_procs, errors=errors, **kwargs
    )