2626 TiePointIndex ,
2727)
2828from .data import Data
29+
2930from .data .array import (
3031 BoundsFromNodesArray ,
3132 CellConnectivityArray ,
32- CFANetCDFArray ,
33+ CFAH5netcdfArray ,
34+ CFANetCDF4Array ,
3335 GatheredArray ,
34- NetCDFArray ,
36+ H5netcdfArray ,
37+ NetCDF4Array ,
3538 PointTopologyArray ,
3639 RaggedContiguousArray ,
3740 RaggedIndexedArray ,
@@ -112,65 +115,39 @@ def set_construct(self, parent, construct, axes=None, copy=True, **kwargs):
112115 parent , construct , axes = axes , copy = copy , ** kwargs
113116 )
114117
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.
130120
131121 :Parameters:
132122
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.
140125
141- units: `str` or `None`, optional
126+ :Returns:
142127
143- calendar: `str` or `None`, optional
128+ `CFANetCDF4Array`
144129
145- instructions: `str`, optional
130+ """
131+ cls = self .get_class ("CFANetCDF4Array" )
132+ return cls (** kwargs )
146133
147- substitutions: `dict`, optional
134+ def initialise_CFAH5netcdfArray (self , ** kwargs ):
135+ """Return a `CFAH5netcdfArray` instance.
148136
149- term: `str`, optional
137+ .. versionadded:: NEXTVERSION
150138
151- x: `dict`, optional
139+ :Parameters:
152140
153141 kwargs: optional
154- Ignored .
142+ Initialisation parameters to pass to the new instance .
155143
156144 :Returns:
157145
158- `CFANetCDFArray `
146+ `CFAH5netcdfArray `
159147
160148 """
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 )
174151
175152
176153_implementation = CFImplementation (
@@ -179,7 +156,8 @@ def initialise_CFANetCDFArray(
179156 CellConnectivity = CellConnectivity ,
180157 CellMeasure = CellMeasure ,
181158 CellMethod = CellMethod ,
182- CFANetCDFArray = CFANetCDFArray ,
159+ CFAH5netcdfArray = CFAH5netcdfArray ,
160+ CFANetCDF4Array = CFANetCDF4Array ,
183161 CoordinateReference = CoordinateReference ,
184162 DimensionCoordinate = DimensionCoordinate ,
185163 Domain = Domain ,
@@ -202,7 +180,8 @@ def initialise_CFANetCDFArray(
202180 BoundsFromNodesArray = BoundsFromNodesArray ,
203181 CellConnectivityArray = CellConnectivityArray ,
204182 GatheredArray = GatheredArray ,
205- NetCDFArray = NetCDFArray ,
183+ H5netcdfArray = H5netcdfArray ,
184+ NetCDF4Array = NetCDF4Array ,
206185 PointTopologyArray = PointTopologyArray ,
207186 RaggedContiguousArray = RaggedContiguousArray ,
208187 RaggedIndexedArray = RaggedIndexedArray ,
@@ -236,7 +215,8 @@ def implementation():
236215 'CellConnectivityArray': cf.data.array.cellconnectivityarray.CellConnectivityArray,
237216 'CellMeasure': cf.cellmeasure.CellMeasure,
238217 '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,
240220 'CoordinateReference': cf.coordinatereference.CoordinateReference,
241221 'DimensionCoordinate': cf.dimensioncoordinate.DimensionCoordinate,
242222 'Domain': cf.domain.Domain,
@@ -257,7 +237,8 @@ def implementation():
257237 'PartNodeCountProperties': cf.partnodecountproperties.PartNodeCountProperties,
258238 'Data': cf.data.data.Data,
259239 '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,
261242 'PointTopologyArray': <class 'cf.data.array.pointtopologyarray.PointTopologyArray'>,
262243 'RaggedContiguousArray': cf.data.array.raggedcontiguousarray.RaggedContiguousArray,
263244 'RaggedIndexedArray': cf.data.array.raggedindexedarray.RaggedIndexedArray,
0 commit comments