Changes between version 0.x and 1.x#
The new release of pyinterpolate has introduced API changes that can break old pipelines. This document covers those changes.
The most profound decision was to remove I/O adapters. Pyinterpolate doesn’t handle file reading, and user should use other packages to read spatial data (for example GeoPandas or Pandas).
Not all of those functions, classes, and models are listed in the official user-facing API documentation!
(This document is not completed, and some changes will be updated in the closest future)
Functions#
version 0.x |
version 1.x |
|---|---|
|
changed to |
|
changed to |
|
changed to |
|
now private |
|
changed to |
|
changed to |
Classes#
version 0.x |
version 1.x |
|---|---|
|
changed to |
|
heavily refactored and optimized |
|
heavily refactored and optimized |
|
changed to |
Temporarily not available functions and classes#
ClusterDetector()(due to the dependency issues)point_support_to_dict()
New functions and classes#
CentroidPoissonKrigingInput()- class model for centroid-based Poisson Kriging operationndarray_pydantic- annotation modelExperimentalVariogramModel- data model of Experimental VariogramRawPoints- data model of raw pointsVariogramPoints- data model of variogram pointsSemivariogramErrorModel- data model of semivariogram error typesTheoreticalVariogramModel- data model of theoretical variogramfilter_blocks()- filters block aggregates using Poisson Krigingsmooth_blocks()- transforms aggregated data into point support modelBlockPoissonKriging()- Area-to-Area, Area-to-Point, or Centroid-based Poisson Kriging regularizationinterpolate_points()- ordinary kriging of multiple pointsinterpolate_points_dask()- same a/a but using dask, for large datasetsvalidate_plot_attributes_for_experimental_variogram()validate_bins()validate_direction_and_tolerance()validate_semivariance_weights()build_mask_indices()calculate_angular_difference()clean_mask_indices()define_whitening_matrix()get_triangle_edges()triangle_mask()select_values_in_range_from_dataframe()regularize()- semivariogram regularization / deconvolutionweighted_avg_point_support_semivariances()mean_relative_difference()symmetric_mean_relative_difference()Deviation()- class handles deviation monitoring during semivariogram regularizationcalculate_average_p2b_semivariance()covariance_fn()- calculate covariancefrom_ellipse()- directional variogram methodfrom_ellipse_cloud()- a/a but for variogram cloudfrom_triangle()- directional variogram methodfrom_triangle_cloud()- a/a but for variogram clouddirectional_weighted_semivariance()omnidirectional_variogram_cloud()omnidirectional_variogram()semivariance_fn()directional_covariance()omnidirectional_covariance()directional_semivariance_cloud()omnidirectional_semivariance()point_cloud_semivariance()TheoreticalIndicatorVariogram()- Indicator Variogramget_lags()get_current_and_previous_lag()TheoreticalModelFunction()- theoretical functions for variogram modelingweight_experimental_semivariance()points_to_lon_lat()parse_point_support_distances_array()angles_to_unknown_block()block_to_blocks_angles()block_base_distances()set_blocks_dataset()parse_kriging_input()
Functions and classes that are no longer supported#
to_tiff()read_txt()read_csv()read_block()WeightedBlock2BlockSemivariance()WeightedBlock2PointSemivariance()KrigingObject()ExperimentalFeatureWarning()kriging()- instead useordinary_kriging()orsimple_kriging()BlockToBlockKrigingComparison()block_arr_to_dict()block_dataframe_to_dict()get_areal_centroids_from_agg()get_areal_values_from_agg()transform_ps_to_dict()transform_blocks_to_numpy()IndexColNotUniqueError()WrongGeometryTypeError()SetDifferenceWarningcheck_ids()get_aggregated_point_support_values()get_distances_within_unknown()get_study_max_range()prepare_pk_known_areas()select_poisson_kriging_data()select_neighbors_pk_centroid_with_angle()select_neighbors_pk_centroid()select_centroid_poisson_kriging_data()omnidirectional_point_cloud()directional_point_cloud()build_variogram_point_cloud()omnidirectional_covariogram()directional_covariogram()directional_semivariogram()inblock_semivariance()MetricsTypeSelectionError()VariogramModelNotSetError()validate_direction()validate_points()validate_tolerance()validate_weights()validate_selected_errors()check_nuggets()check_ranges()check_sills()validate_theoretical_variogram()to_tiff()- might be returned, but for now it is removed due to the dependency issues