Skip to content

cmaq

CMAQ File Reader. Deprecated wrapper — use monetio.load('cmaq', ...) instead.

open_dataset(fname, **kwargs)

Method to open CMAQ IOAPI netcdf files.

Parameters:

Name Type Description Default
fname string or list

fname is the path to the file or files.

required
**kwargs dict

Additional arguments passed to CMAQReader.open_dataset

{}

Returns:

Type Description
DataSet
Source code in monetio/models/cmaq.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@deprecated_wrapper(
    "monetio.models.cmaq.open_dataset",
    'monetio.load("cmaq", files=...)',
)
def open_dataset(fname, **kwargs):
    """Method to open CMAQ IOAPI netcdf files.

    Parameters
    ----------
    fname : string or list
        fname is the path to the file or files.
    **kwargs : dict
        Additional arguments passed to CMAQReader.open_dataset

    Returns
    -------
    xarray.DataSet
    """
    return CMAQReader().open_dataset(files=fname, **kwargs)

open_mfdataset(fname, **kwargs)

Method to open CMAQ IOAPI netcdf files.

Parameters:

Name Type Description Default
fname string or list

fname is the path to the file or files.

required
**kwargs dict

Additional arguments passed to CMAQReader.open_dataset

{}

Returns:

Type Description
DataSet
Source code in monetio/models/cmaq.py
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@deprecated_wrapper(
    "monetio.models.cmaq.open_mfdataset",
    'monetio.load("cmaq", files=...)',
)
def open_mfdataset(fname, **kwargs):
    """Method to open CMAQ IOAPI netcdf files.

    Parameters
    ----------
    fname : string or list
        fname is the path to the file or files.
    **kwargs : dict
        Additional arguments passed to CMAQReader.open_dataset

    Returns
    -------
    xarray.DataSet
    """
    return CMAQReader().open_dataset(files=fname, **kwargs)