This repository was archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path__init__.py
145 lines (132 loc) · 4.42 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# The MIT License (MIT)
# Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""
Description
===========
The ``ops`` package comprises all specific operation and processor implementations.
This is a plugin package automatically imported by the installation script's entry point ``cate_ops``
(see the projects ``setup.py`` file).
Verification
============
The module's unit-tests are located in `test/ops <https://github.com/CCI-Tools/cate/blob/master/test/ops>`_ and
may be executed using ``$ py.test test/ops/test_<MODULE>.py --cov=cate/ops/<MODULE>.py`` for extra code coverage
information.
Functions
==========
"""
# We need cate_init being accessible to use by the plugin registering logic
# before any attempt to import any of the submodules is made. See Issue #148
def cate_init():
# Plugin initializer.
# Left empty because operations are registered automatically via decorators.
pass
from .aggregate import long_term_average, temporal_aggregation, reduce
from .animate import animate_map
from .anomaly import anomaly_internal, anomaly_external
from .arithmetics import ds_arithmetics, diff
from .coregistration import coregister
from .correlation import pearson_correlation_scalar, pearson_correlation
from .data_frame import data_frame_min, data_frame_max, data_frame_query
from .index import enso, enso_nino34, oni
from .io import (open_dataset, save_dataset, read_object, write_object,
read_text, write_text, read_json, write_json, read_csv,
read_geo_data_frame, read_netcdf, write_netcdf3, write_netcdf4)
from .normalize import normalize, adjust_temporal_attrs, adjust_spatial_attrs
from .outliers import detect_outliers
from .plot import (plot_map, plot, plot_contour, plot_scatter, plot_hist,
plot_hovmoeller)
from .resampling import resample_2d, downsample_2d, upsample_2d
from .select import select_var
from .subset import subset_spatial, subset_temporal, subset_temporal_index
from .timeseries import tseries_point, tseries_mean
from .utility import sel, identity, literal, pandas_fillna
__all__ = [
# .timeseries
'tseries_point',
'tseries_mean',
# .resampling
'resample_2d',
'downsample_2d',
'upsample_2d',
# .normalize
'normalize',
'adjust_temporal_attrs',
'adjust_spatial_attrs',
# .select
'select_var',
# .coregistration
'coregister',
# .subset
'subset_spatial',
'subset_temporal',
'subset_temporal_index',
# .correlation
'pearson_correlation_scalar',
'pearson_correlation',
# .plot
'plot_map',
'plot',
'plot_contour',
'plot_scatter',
'plot_hist',
'plot_hovmoeller',
# .animate
'animate_map',
# .io
'open_dataset',
'save_dataset',
'read_object',
'write_object',
'read_text',
'write_text',
'read_json',
'write_json',
'read_csv',
'read_geo_data_frame',
'read_netcdf',
'write_netcdf3',
'write_netcdf4',
# .utility
'sel',
'identity',
'literal',
'pandas_fillna',
# .aggregate
'long_term_average',
'temporal_aggregation',
'reduce',
# .arithmetics
'ds_arithmetics',
'diff',
# .anomaly
'anomaly_internal',
'anomaly_external',
# .index
'enso_nino34',
'enso',
'oni',
# .outliers
'detect_outliers',
# .data_frame
'data_frame_min',
'data_frame_max',
'data_frame_query',
]