26
26
TiePointIndex ,
27
27
)
28
28
from .data import Data
29
+
29
30
from .data .array import (
30
31
BoundsFromNodesArray ,
31
32
CellConnectivityArray ,
32
- CFANetCDFArray ,
33
+ CFAH5netcdfArray ,
34
+ CFANetCDF4Array ,
33
35
GatheredArray ,
34
- NetCDFArray ,
36
+ H5netcdfArray ,
37
+ NetCDF4Array ,
35
38
PointTopologyArray ,
36
39
RaggedContiguousArray ,
37
40
RaggedIndexedArray ,
@@ -112,65 +115,39 @@ def set_construct(self, parent, construct, axes=None, copy=True, **kwargs):
112
115
parent , construct , axes = axes , copy = copy , ** kwargs
113
116
)
114
117
115
- def initialise_CFANetCDFArray (
116
- self ,
117
- filename = None ,
118
- address = None ,
119
- dtype = None ,
120
- mask = True ,
121
- units = False ,
122
- calendar = False ,
123
- instructions = None ,
124
- substitutions = None ,
125
- term = None ,
126
- x = None ,
127
- ** kwargs ,
128
- ):
129
- """Return a `CFANetCDFArray` instance.
118
+ def initialise_CFANetCDF4Array (self , ** kwargs ):
119
+ """Return a `CFANetCDF4Array` instance.
130
120
131
121
:Parameters:
132
122
133
- filename: `str`
134
-
135
- address: (sequence of) `str` or `int`
136
-
137
- dytpe: `numpy.dtype`
138
-
139
- mask: `bool`, optional
123
+ kwargs: optional
124
+ Initialisation parameters to pass to the new instance.
140
125
141
- units: `str` or `None`, optional
126
+ :Returns:
142
127
143
- calendar: `str` or `None`, optional
128
+ `CFANetCDF4Array`
144
129
145
- instructions: `str`, optional
130
+ """
131
+ cls = self .get_class ("CFANetCDF4Array" )
132
+ return cls (** kwargs )
146
133
147
- substitutions: `dict`, optional
134
+ def initialise_CFAH5netcdfArray (self , ** kwargs ):
135
+ """Return a `CFAH5netcdfArray` instance.
148
136
149
- term: `str`, optional
137
+ .. versionadded:: NEXTVERSION
150
138
151
- x: `dict`, optional
139
+ :Parameters:
152
140
153
141
kwargs: optional
154
- Ignored .
142
+ Initialisation parameters to pass to the new instance .
155
143
156
144
:Returns:
157
145
158
- `CFANetCDFArray `
146
+ `CFAH5netcdfArray `
159
147
160
148
"""
161
- cls = self .get_class ("CFANetCDFArray" )
162
- return cls (
163
- filename = filename ,
164
- address = address ,
165
- dtype = dtype ,
166
- mask = mask ,
167
- units = units ,
168
- calendar = calendar ,
169
- instructions = instructions ,
170
- substitutions = substitutions ,
171
- term = term ,
172
- x = x ,
173
- )
149
+ cls = self .get_class ("CFAH5netcdfArray" )
150
+ return cls (** kwargs )
174
151
175
152
176
153
_implementation = CFImplementation (
@@ -179,7 +156,8 @@ def initialise_CFANetCDFArray(
179
156
CellConnectivity = CellConnectivity ,
180
157
CellMeasure = CellMeasure ,
181
158
CellMethod = CellMethod ,
182
- CFANetCDFArray = CFANetCDFArray ,
159
+ CFAH5netcdfArray = CFAH5netcdfArray ,
160
+ CFANetCDF4Array = CFANetCDF4Array ,
183
161
CoordinateReference = CoordinateReference ,
184
162
DimensionCoordinate = DimensionCoordinate ,
185
163
Domain = Domain ,
@@ -202,7 +180,8 @@ def initialise_CFANetCDFArray(
202
180
BoundsFromNodesArray = BoundsFromNodesArray ,
203
181
CellConnectivityArray = CellConnectivityArray ,
204
182
GatheredArray = GatheredArray ,
205
- NetCDFArray = NetCDFArray ,
183
+ H5netcdfArray = H5netcdfArray ,
184
+ NetCDF4Array = NetCDF4Array ,
206
185
PointTopologyArray = PointTopologyArray ,
207
186
RaggedContiguousArray = RaggedContiguousArray ,
208
187
RaggedIndexedArray = RaggedIndexedArray ,
@@ -236,7 +215,8 @@ def implementation():
236
215
'CellConnectivityArray': cf.data.array.cellconnectivityarray.CellConnectivityArray,
237
216
'CellMeasure': cf.cellmeasure.CellMeasure,
238
217
'CellMethod': cf.cellmethod.CellMethod,
239
- 'CFANetCDFArray': cf.data.array.cfanetcdfarray.CFANetCDFArray,
218
+ 'CFAH5netcdfArray': cf.data.array.cfah5netcdfarray.CFAH5netcdfArray,
219
+ 'CFANetCDF4Array': cf.data.array.cfanetcdf4array.CFANetCDF4Array,
240
220
'CoordinateReference': cf.coordinatereference.CoordinateReference,
241
221
'DimensionCoordinate': cf.dimensioncoordinate.DimensionCoordinate,
242
222
'Domain': cf.domain.Domain,
@@ -257,7 +237,8 @@ def implementation():
257
237
'PartNodeCountProperties': cf.partnodecountproperties.PartNodeCountProperties,
258
238
'Data': cf.data.data.Data,
259
239
'GatheredArray': cf.data.array.gatheredarray.GatheredArray,
260
- 'NetCDFArray': cf.data.array.netcdfarray.NetCDFArray,
240
+ 'H5netcdfArray': cf.data.array.h5netcdfarray.H5netcdfArray,
241
+ 'NetCDF4Array': cf.data.array.netcdf4array.NetCDF4Array,
261
242
'PointTopologyArray': <class 'cf.data.array.pointtopologyarray.PointTopologyArray'>,
262
243
'RaggedContiguousArray': cf.data.array.raggedcontiguousarray.RaggedContiguousArray,
263
244
'RaggedIndexedArray': cf.data.array.raggedindexedarray.RaggedIndexedArray,
0 commit comments