voyager/core.py
def interpolate(self, x: DataArray, start_date: np.datetime64, end_date: np.datetime64) -> RegularGridInterpolator:
        """Wraps a RegularGridInterpolator object, estimating the velocity fields
        in undocumented longitudes and latitudes.

        Args:
            x (Xarray): Xarray of a velocity field with (longitude, latitude, time) fields
            start_date (np.datetime64): Start date of interpolation
            end_date (np.datetime64): End date of interpolation

        Returns:
            RegularGridInterpolator: Interpolation function
        """
        
        # Select data only in the specified time interval
        X = x.sel(time=slice(start_date, end_date))

        return RegularGridInterpolator((np.arange(X.shape[0]), x.longitude, x.latitude), np.transpose(X.values, (0, 2, 1)), bounds_error=False, fill_value=np.nan)
Wraps a RegularGridInterpolator object, estimating the velocity fields
        in undocumented longitudes and latitudes.

        Args:
            x (Xarray): Xarray of a velocity field with (longitude, latitude, time) fields
            start_date (np.datetime64): Start date of interpolation
            end_date (np.datetime64): End date of interpolation

        Returns:
            RegularGridInterpolator: Interpolation function
        
Wraps a RegularGridInterpolator object, estimating the velocity fields
in undocumented longitudes and latitudes.
Wraps a RegularGridInterpolator object estimating the velocity fields in undocumented longitudes and latitudes .
def interpolate(self, x: DataArray, start_date: np.datetime64, end_date: np.datetime64) -> RegularGridInterpolator:
        X = x.sel(time=slice(start_date, end_date))
        return RegularGridInterpolator((np.arange(X.shape[0]), x.longitude, x.latitude), np.transpose(X.values, (0, 2, 1)), bounds_error=False, fill_value=np.nan)
def interpolate ( self , x : DataArray , start_date : np . datetime64 , end_date : np . datetime64 ) -> RegularGridInterpolator : X = x . sel ( time = slice ( start_date , end_date ) ) return RegularGridInterpolator ( ( np . arange ( X . shape [ 0 ] ) , x . longitude , x . latitude ) , np . transpose ( X . values , ( 0 , 2 , 1 ) ) , bounds_error = False , fill_value = np . nan )
Wraps a RegularGridInterpolator object, estimating the velocity fields
in undocumented longitudes and latitudes.
Wraps a RegularGridInterpolator object estimating the velocity fields in undocumented longitudes and latitudes .
"""Wraps a RegularGridInterpolator object, estimating the velocity fields
        in undocumented longitudes and latitudes.

        Args:
            x (Xarray): Xarray of a velocity field with (longitude, latitude, time) fields
            start_date (np.datetime64): Start date of interpolation
            end_date (np.datetime64): End date of interpolation

        Returns:
            RegularGridInterpolator: Interpolation function
        """ # Select data only in the specified time interval
None
RegularGridInterpolator
self
x
DataArray
Xarray of a velocity field with (longitude, latitude, time) fields
Xarray of a velocity field with ( longitude latitude time ) fields
start_date
np.datetime64
Start date of interpolation
Start date of interpolation
end_date
np.datetime64
End date of interpolation
End date of interpolation