@@ -3757,7 +3757,8 @@ def _regrid(
37573757 ]
37583758 dx = dx .rechunk (chunks )
37593759
3760- # Define the regridded chunksizes
3760+ # Define the regridded chunksizes (allowing for the regridded
3761+ # data to have more/fewer axes).
37613762 regridded_chunks = [] # The 'chunks' parameter to `map_blocks`
37623763 drop_axis = [] # The 'drop_axis' parameter to `map_blocks`
37633764 new_axis = [] # The 'new_axis' parameter to `map_blocks`
@@ -5243,37 +5244,6 @@ def mask(self):
52435244
52445245 return mask_data_obj
52455246
5246- # def vindex(self, *indices):
5247- # """Vectorized indexing with broadcasting.
5248- #
5249- # This is equivalent to numpy’s advanced indexing, using arrays
5250- # that are broadcast against each other. This allows for
5251- # pointwise indexing.
5252- #
5253- # .. versionadded:: UGRIDVER
5254- #
5255- # .. seealso:: `__getitem__`
5256- #
5257- # **Examples**
5258- #
5259- # >>> d = cf.Data([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
5260- # >>> print(d.vindex([0, 1, 2], [0, 1, 2]).array)
5261- # [1 5 9]
5262- # >>> print(d.vindex(0, [0, 0, 1]).array)
5263- # [1 1 2]
5264- #
5265- # """
5266- # new = self.copy(array=False)
5267- # dx = self.to_dask_array()
5268- # dx = dx.vindex[indices]
5269- # new._set_dask(dx)
5270- #
5271- # if self.nc_hdf5_chunksizes() and new.shape != self.shape:
5272- # # Delete hdf5 chunksizes when the shape has changed.
5273- # new.nc_clear_hdf5_chunksizes()
5274- #
5275- # return new
5276-
52775247 @_inplace_enabled (default = False )
52785248 def arctan (self , inplace = False ):
52795249 """Take the trigonometric inverse tangent of the data element-
@@ -5322,47 +5292,6 @@ def arctan(self, inplace=False):
53225292
53235293 return d
53245294
5325- # AT2
5326- #
5327- # @classmethod
5328- # def arctan2(cls, y, x):
5329- # '''Take the "two-argument" trigonometric inverse tangent
5330- # element-wise for `y`/`x`.
5331- #
5332- # Explicitly this returns, for all corresponding elements, the angle
5333- # between the positive `x` axis and the line to the point (`x`, `y`),
5334- # where the signs of both `x` and `y` are taken into account to
5335- # determine the quadrant. Such knowledge of the signs of `x` and `y`
5336- # are lost when the quotient is input to the standard "one-argument"
5337- # `arctan` function, such that use of `arctan` leaves the quadrant
5338- # ambiguous. `arctan2` may therefore be preferred.
5339- #
5340- # Units are ignored in the calculation. The result has units of radians.
5341- #
5342- # .. versionadded:: 3.2.0
5343- #
5344- # .. seealso:: `arctan`, `tan`
5345- #
5346- # :Parameters:
5347- #
5348- # y: `Data`
5349- # The data array to provide the numerator elements, corresponding
5350- # to the `y` coordinates in the `arctan2` definition.
5351- #
5352- # x: `Data`
5353- # The data array to provide the denominator elements,
5354- # corresponding to the `x` coordinates in the `arctan2`
5355- # definition.
5356- #
5357- # :Returns:
5358- #
5359- # `Data`
5360- #
5361- # **Examples**
5362- #
5363- # '''
5364- # return cls(np.arctan2(y, x), units=_units_radians)
5365-
53665295 @_inplace_enabled (default = False )
53675296 def arctanh (self , inplace = False ):
53685297 """Take the inverse hyperbolic tangent of the data element-wise.
0 commit comments