forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
113 lines (110 loc) · 2.81 KB
/
__init__.py
1
2
3
4
5
6
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
from importlib.metadata import version as _version
from xarray import testing, tutorial
from xarray.backends.api import (
load_dataarray,
load_dataset,
open_dataarray,
open_dataset,
open_mfdataset,
save_mfdataset,
)
from xarray.backends.zarr import open_zarr
from xarray.coding.cftime_offsets import cftime_range, date_range, date_range_like
from xarray.coding.cftimeindex import CFTimeIndex
from xarray.coding.frequencies import infer_freq
from xarray.conventions import SerializationWarning, decode_cf
from xarray.core.alignment import align, broadcast
from xarray.core.combine import combine_by_coords, combine_nested
from xarray.core.common import ALL_DIMS, full_like, ones_like, zeros_like
from xarray.core.computation import (
apply_ufunc,
corr,
cov,
cross,
dot,
polyval,
unify_chunks,
where,
)
from xarray.core.concat import concat
from xarray.core.coordinates import Coordinates
from xarray.core.dataarray import DataArray
from xarray.core.dataset import Dataset
from xarray.core.extensions import (
register_dataarray_accessor,
register_dataset_accessor,
)
from xarray.core.indexes import Index
from xarray.core.indexing import IndexSelResult
from xarray.core.merge import Context, MergeError, merge
from xarray.core.options import get_options, set_options
from xarray.core.parallel import map_blocks
from xarray.core.variable import IndexVariable, Variable, as_variable
from xarray.util.print_versions import show_versions
try:
__version__ = _version("xarray")
except Exception:
# Local copy or not installed with setuptools.
# Disable minimum version checks on downstream libraries.
__version__ = "9999"
# A hardcoded __all__ variable is necessary to appease
# `mypy --strict` running in projects that import xarray.
__all__ = (
# Sub-packages
"testing",
"tutorial",
# Top-level functions
"align",
"apply_ufunc",
"as_variable",
"broadcast",
"cftime_range",
"combine_by_coords",
"combine_nested",
"concat",
"date_range",
"date_range_like",
"decode_cf",
"dot",
"cov",
"corr",
"cross",
"full_like",
"get_options",
"infer_freq",
"load_dataarray",
"load_dataset",
"map_blocks",
"merge",
"ones_like",
"open_dataarray",
"open_dataset",
"open_mfdataset",
"open_zarr",
"polyval",
"register_dataarray_accessor",
"register_dataset_accessor",
"save_mfdataset",
"set_options",
"show_versions",
"unify_chunks",
"where",
"zeros_like",
# Classes
"CFTimeIndex",
"Context",
"Coordinate",
"Coordinates",
"DataArray",
"Dataset",
"Index",
"IndexSelResult",
"IndexVariable",
"Variable",
# Exceptions
"MergeError",
"SerializationWarning",
# Constants
"__version__",
"ALL_DIMS",
)