podpac.interpolators.RasterioInterpolator
- class podpac.interpolators.RasterioInterpolator(**kwargs: Any)[source]
 Bases:
InterpolatorRasterio Interpolation
- method
 Current interpolation method to use in Interpolator (i.e. ‘nearest’). This attribute is set during node evaluation when a new
Interpolationclass is constructed. See thepodpac.data.DataSourceinterpolation attribute for more information on specifying the interpolator method.- Type:
 str
- methods_supported
 List of methods supported by the interpolator. This attribute should be defined by the implementing
Interpolator. Seepodpac.data.INTERPOLATION_METHODSfor list of available method strings.- Type:
 list
- dims_supported
 List of unstacked dimensions supported by the interpolator. This attribute should be defined by the implementing
Interpolator. Used by private convience method_filter_udims_supported().- Type:
 list
- rasterio_interpolatorslist of str
 Interpolator methods available via rasterio
Methods
__init__(**kwargs)can_interpolate(udims, source_coordinates, ...)Evaluate if this interpolation method can handle the requested coordinates and source_coordinates.
can_select(udims, source_coordinates, ...)Evaluate if interpolator can downselect the source coordinates from the requested coordinates for the unstacked dims supplied.
init()Overwrite this method if a Interpolator needs to do any additional initialization after the standard initialization.
interpolate(udims, source_coordinates, ...)Interpolate data from requested coordinates to source coordinates.
select_coordinates(udims, ...[, index_type])Downselect coordinates with interpolator method
trait_defaults(*names, **metadata)Return a trait's default value or a dictionary of them
trait_has_value(name)Returns True if the specified trait has a value.
trait_values(**metadata)A
dictof trait names and their values.Attributes
definitionInterpolator definition
A trait for unicode strings.
nameInterpolator definition
A float trait.
A trait type representing a Union type.
- Members:
 
- __init__(**kwargs)
 
- can_interpolate(udims, source_coordinates, eval_coordinates)[source]
 Evaluate if this interpolation method can handle the requested coordinates and source_coordinates. If not overwritten, this method returns an empty tuple (tuple())
- Parameters:
 udims (tuple) – dimensions to interpolate
source_coordinates (
podpac.Coordinates) – Descriptioneval_coordinates (
podpac.Coordinates) – Description
- Returns:
 Returns a tuple of dimensions that can be interpolated with this interpolator If no dimensions can be interpolated, method should return an emtpy tuple
- Return type:
 tuple
- dims_supported = ['lat', 'lon']
 
- interpolate(udims, source_coordinates, source_data, eval_coordinates, output_data)[source]
 Interpolate data from requested coordinates to source coordinates.
- Parameters:
 udims (tuple) – dimensions to interpolate
source_coordinates (
podpac.Coordinates) – Descriptionsource_data (podpac.core.units.UnitsDataArray) – Description
eval_coordinates (
podpac.Coordinates) – Descriptionoutput_data (podpac.core.units.UnitsDataArray) – Description
- Raises:
 NotImplementedError –
- Returns:
 returns the updated output of interpolated data
- Return type:
 podpac.core.units.UnitDataArray
- method
 A trait for unicode strings.
- methods_supported = ['nearest', 'bilinear', 'cubic', 'cubic_spline', 'lanczos', 'average', 'mode', 'gauss', 'max', 'min', 'med', 'q1', 'q3']
 
- spatial_tolerance
 A float trait.
- time_tolerance
 A trait type representing a Union type.