# \#interpolations

**URL:** https://discourse.julialang.org/tag/interpolations/352.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] FastInterpolations.jl — Fast & zero-allocation ND interpolation](https://discourse.julialang.org/t/ann-fastinterpolations-jl-fast-zero-allocation-nd-interpolation/135911)

<div class="topic-metadata">

**Author:** [@mgyoo86](https://discourse.julialang.org/u/mgyoo86)\
**Replies:** 35\
**Last updated:** [July 15, 2026, 8:08pm UTC](https://discourse.julialang.org/t/ann-fastinterpolations-jl-fast-zero-allocation-nd-interpolation/135911 "2026-07-15T20:08:54Z")

</div>

Hello everyone, I’d like to share FastInterpolations.jl, a high-performance N-dimensional interpolation package I’ve been working on. I originally developed this for plasma physics simulations where interpolation sits …

---

## [\[ANN\] DataInterpolationsND.jl](https://discourse.julialang.org/t/ann-datainterpolationsnd-jl/130883)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 5\
**Last updated:** [July 10, 2026, 4:20pm UTC](https://discourse.julialang.org/t/ann-datainterpolationsnd-jl/130883 "2026-07-10T16:20:04Z")

</div>

I’m happy to announce that DataInterpolationsND.jl has been registered. DataInterpolationsND.jl is a new interpolation package falling under the SciML umbrella. As the name suggests, this package aims to provide similar …

---

## [\[ANN\] ConvolutionInterpolations.jl: Smooth multi-dimensional high order of accuracy interpolation](https://discourse.julialang.org/t/ann-convolutioninterpolations-jl-smooth-multi-dimensional-high-order-of-accuracy-interpolation/128003)

<div class="topic-metadata">

**Author:** [@NikoBiele](https://discourse.julialang.org/u/NikoBiele)\
**Replies:** 80\
**Last updated:** [April 9, 2026, 2:36am UTC](https://discourse.julialang.org/t/ann-convolutioninterpolations-jl-smooth-multi-dimensional-high-order-of-accuracy-interpolation/128003 "2026-04-09T02:36:25Z")

</div>

Hi Julia people :slightly\_smiling\_face: I made this registered package for interpolation: GitHub - NikoBiele/ConvolutionInterpolations.jl: A Julia package for smooth high-accuracy N-dimensional interpolation using separ…

---

## [Degree of Chebyshev polynomial off by one](https://discourse.julialang.org/t/degree-of-chebyshev-polynomial-off-by-one/136627)

<div class="topic-metadata">

**Author:** [@CFBaptista](https://discourse.julialang.org/u/CFBaptista)\
**Replies:** 4\
**Last updated:** [April 8, 2026, 10:12pm UTC](https://discourse.julialang.org/t/degree-of-chebyshev-polynomial-off-by-one/136627 "2026-04-08T22:12:57Z")

</div>

According to Wikipedia pages Chebyshev polynomials and Chebyshev nodes a Chebyshev polynomial of the first kind of degree n has n roots. However, in BarycentricInterpolation.jl I get: using BarycentricInterpolation no…

---

## [Using Interpolations.jl on CuVector](https://discourse.julialang.org/t/using-interpolations-jl-on-cuvector/60409)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 6\
**Last updated:** [January 11, 2026, 11:29am UTC](https://discourse.julialang.org/t/using-interpolations-jl-on-cuvector/60409 "2026-01-11T11:29:58Z")

</div>

I am feeding a CuVector to an interpolator created with Interpolations.jl and wanting to get the output as a CuVector, but I am not sure how to achieve this. Here is what I did. I create an interpolator using sampling …

---

## [How to extrapolate on non-uniform grid?](https://discourse.julialang.org/t/how-to-extrapolate-on-non-uniform-grid/134394)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 3\
**Last updated:** [December 7, 2025, 7:03am UTC](https://discourse.julialang.org/t/how-to-extrapolate-on-non-uniform-grid/134394 "2025-12-07T07:03:55Z")

</div>

How to interpolate(actually extrapolate later) Bp values on r,θand ϕ grid? I have non-uniform grid of r,θand ϕ, where r is geometric series and θand ϕ have constant spacing. r = Float32\[1.677044, 1.8385518, 2.0156136, 2…

---

## [Interpolate over large HDF5 arrays](https://discourse.julialang.org/t/interpolate-over-large-hdf5-arrays/127079)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 18\
**Last updated:** [December 3, 2025, 5:52pm UTC](https://discourse.julialang.org/t/interpolate-over-large-hdf5-arrays/127079 "2025-12-03T17:52:48Z")

</div>

Hi, I have a extremely large standard HDF5 file (2 TB) which saves a 3D array, let’s say B. With HDF5.jl, I can access individual elements of the array in the same way as this thread shows: load-hdf5-file-larger-than-me…

---

## [Repeated high (6–7) dimensional interpolation](https://discourse.julialang.org/t/repeated-high-6-7-dimensional-interpolation/130042)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 3\
**Last updated:** [June 19, 2025, 9:21pm UTC](https://discourse.julialang.org/t/repeated-high-6-7-dimensional-interpolation/130042 "2025-06-19T21:21:51Z")

</div>

Thank you, I’ll check it out! I can sketch the problem: We are interested in approximating a (costly) function f(x\_1, ..., x\_p) by simulating a grid of points (x\_1^{(n)},...,x\_p^{(n)}),~n = 1,...,N, evaluating the funct…

---

## [Quick & dirty online interpolation in Rn](https://discourse.julialang.org/t/quick-dirty-online-interpolation-in-rn/129698)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [June 6, 2025, 12:11pm UTC](https://discourse.julialang.org/t/quick-dirty-online-interpolation-in-rn/129698 "2025-06-06T12:11:55Z")

</div>

I am estimating the model which requires mapping a set of parameters x to an implicit solution y = f(x), defined by some F(x, y) = 0. I am solving this problem about 40000 times in a typical run. The cost of calculating …

---

## [Implementing simple quadratic interpolation in Interpolations.jl](https://discourse.julialang.org/t/implementing-simple-quadratic-interpolation-in-interpolations-jl/129555)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [June 2, 2025, 12:32pm UTC](https://discourse.julialang.org/t/implementing-simple-quadratic-interpolation-in-interpolations-jl/129555 "2025-06-02T12:32:59Z")

</div>

I’m looking for advice about implementing simple quadratic and cubic interpolations into Interpolations.jl. These are interpolation methods that should work similar to linear interpolation, with no pre-filtering necessar…

---

## [Linear interpolation given a triangulation in arbitrary dimensions](https://discourse.julialang.org/t/linear-interpolation-given-a-triangulation-in-arbitrary-dimensions/128998)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 9\
**Last updated:** [May 16, 2025, 2:15pm UTC](https://discourse.julialang.org/t/linear-interpolation-given-a-triangulation-in-arbitrary-dimensions/128998 "2025-05-16T14:15:05Z")

</div>

Hi all, I’m in need of the equivalent of LinearNDInterpolator in scipy for julia, in order to do interpolation of irregularly sampled points (not on a grid). There are existing packages such as NaturalNeighbours.jl, but…

---

## [Multi Dimension Interpolation with Unitful](https://discourse.julialang.org/t/multi-dimension-interpolation-with-unitful/129043)

<div class="topic-metadata">

**Author:** [@luke-pikaart](https://discourse.julialang.org/u/luke-pikaart)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 4:35pm UTC](https://discourse.julialang.org/t/multi-dimension-interpolation-with-unitful/129043 "2025-05-15T16:35:48Z")

</div>

I am trying to interpolate f : \\mathbb{R\_{units}} \\to \\mathbb{R\_{units}}^3 where there are unitful units on both the grid and the data. I found this example that showed me how to get f : \\mathbb{R} \\to \\mathbb{R}^3 in…

---

## [How to use monotonic interpolation instead of linear?](https://discourse.julialang.org/t/how-to-use-monotonic-interpolation-instead-of-linear/128958)

<div class="topic-metadata">

**Author:** [@dg.aragones](https://discourse.julialang.org/u/dg.aragones)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 9:30am UTC](https://discourse.julialang.org/t/how-to-use-monotonic-interpolation-instead-of-linear/128958 "2025-05-14T09:30:15Z")

</div>

Hi everyone, I’ve been using a simple interpolation function like this: Φ(ϕ, t) = interpolate((0 : 7/length(ϕ) : 7,), vcat(0, ϕ), Gridded(Linear()))(t) This uses linear interpolation with Interpolations.jl, and it wor…

---

## [Interpolation between two dataframe columns](https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 4\
**Last updated:** [March 21, 2025, 12:31pm UTC](https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136 "2025-03-21T12:31:14Z")

</div>

Hi, I think my code is highly sub-optimised, is there a more monolithic way (and preferably faster) to interpolate, e.g. without using eachrow, push etc. Code: using DataFrames using Interpolations # Dates, then valu…

---

## [Interpolate 2d function](https://discourse.julialang.org/t/interpolate-2d-function/96914)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 14\
**Last updated:** [March 4, 2025, 4:29pm UTC](https://discourse.julialang.org/t/interpolate-2d-function/96914 "2025-03-04T16:29:32Z")

</div>

I want to interpolate 2d data. I have a function f(x, y) that is sampled as follows. For any y value in some array y\_arr, I have the a set of points x\_arr. Note that x\_arr is different for any y, and even the boundaries …

---

## [Interpolations.jl interpolation evaluation causes allocation](https://discourse.julialang.org/t/interpolations-jl-interpolation-evaluation-causes-allocation/126279)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 6:07am UTC](https://discourse.julialang.org/t/interpolations-jl-interpolation-evaluation-causes-allocation/126279 "2025-02-25T06:07:23Z")

</div>

In the following MWE, all interpolation evaluations cause 1 allocation. I want to get rid of this allocation for optimal performance. What should I do to achieve this? using Interpolations, BenchmarkTools # Create test…

---

## [Heatmap of data not on a grid](https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022)

<div class="topic-metadata">

**Author:** [@evanderveer](https://discourse.julialang.org/u/evanderveer)\
**Replies:** 6\
**Last updated:** [February 19, 2025, 9:04am UTC](https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022 "2025-02-19T09:04:38Z")

</div>

I have been trying to make a heatmap of some experimental data using Makie. When the x,y positions of the datapoints are on a grid, this works just fine: using CairoMakie i = 1 for x in 1:5 for y in 1:5 xys…

---

## [Interpolations on scatter data of fun= f(x,y,z)](https://discourse.julialang.org/t/interpolations-on-scatter-data-of-fun-f-x-y-z/125754)

<div class="topic-metadata">

**Author:** [@Van\_Sy\_Tnut](https://discourse.julialang.org/u/Van_Sy_Tnut)\
**Replies:** 4\
**Last updated:** [February 11, 2025, 4:41pm UTC](https://discourse.julialang.org/t/interpolations-on-scatter-data-of-fun-f-x-y-z/125754 "2025-02-11T16:41:59Z")

</div>

Hello everyone, If I have scatter data of control points with x, y, z coordinates and its corresponding output (A). How can I find the interpolation for A = f(x,y,z) ? where x, y, z and A are vectors. Thank you so much…

---

## [Multivariate polynomial regression of discrete data in L-infinity norm](https://discourse.julialang.org/t/multivariate-polynomial-regression-of-discrete-data-in-l-infinity-norm/125369)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 16\
**Last updated:** [January 31, 2025, 1:10am UTC](https://discourse.julialang.org/t/multivariate-polynomial-regression-of-discrete-data-in-l-infinity-norm/125369 "2025-01-31T01:10:55Z")

</div>

Hi everyone, Does anyone know of a Julia package that implements polynomial approximations (preferably Chebyshev polynomials) given data on a multivariate function with a L-infinity norm? Specifically, I have x, f(x) p…

---

## [ODE non autonomous interpolation needed](https://discourse.julialang.org/t/ode-non-autonomous-interpolation-needed/125175)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 15\
**Last updated:** [January 27, 2025, 6:36pm UTC](https://discourse.julialang.org/t/ode-non-autonomous-interpolation-needed/125175 "2025-01-27T18:36:49Z")

</div>

I am trying to optimize my code where I integrate a system of non-autonomous ODEs. The problem is the interpolations that I am doing in order to have the value of a parameter at each time step needed by the integrator. …

---

## [How to interpolate a scalar field?](https://discourse.julialang.org/t/how-to-interpolate-a-scalar-field/124499)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 3:18pm UTC](https://discourse.julialang.org/t/how-to-interpolate-a-scalar-field/124499 "2025-01-07T15:18:20Z")

</div>

I want to get a polynomial scalar field that interpolate z as a function of x and y. # consider an integer k, # then the goal is that a called function f(x\[k\],y\[k\]) # would approximate z\[k\]. # abscissa example with dum…

---

## [How to use WarpedView to interpolate a 3D image](https://discourse.julialang.org/t/how-to-use-warpedview-to-interpolate-a-3d-image/123903)

<div class="topic-metadata">

**Author:** [@buffon](https://discourse.julialang.org/u/buffon)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 6:38pm UTC](https://discourse.julialang.org/t/how-to-use-warpedview-to-interpolate-a-3d-image/123903 "2024-12-17T18:38:39Z")

</div>

I’m referring to the WarpedView function from ImageTransformations.jl: ImageTransformations.jl · ImageTransformations. I can use imresize to interpolate a 3D image naively like: imresize(image, ratio=(1,1,z\_res/xy\_res)),…

---

## [ADAM solver returns parameter values resulting in poor fit for my SDE model](https://discourse.julialang.org/t/adam-solver-returns-parameter-values-resulting-in-poor-fit-for-my-sde-model/122999)

<div class="topic-metadata">

**Author:** [@Luis\_Reig\_Quilis](https://discourse.julialang.org/u/Luis_Reig_Quilis)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 4:28pm UTC](https://discourse.julialang.org/t/adam-solver-returns-parameter-values-resulting-in-poor-fit-for-my-sde-model/122999 "2024-12-03T16:28:05Z")

</div>

Hi! I am a plant breeding master student that recently got into SDEs. I am investigating the seasonal change in biomass of some wheat genotypes from the day they are sowed until the day of harvest. I want to fit a SDE mo…

---

## [Interpolation for missing data:](https://discourse.julialang.org/t/interpolation-for-missing-data/122829)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 10\
**Last updated:** [November 25, 2024, 4:02am UTC](https://discourse.julialang.org/t/interpolation-for-missing-data/122829 "2024-11-25T04:02:41Z")

</div>

Hi everyone: some background: I have a questions about data interpolation. I have some GPS station data which is missing data. This can occur for various reason (Software updates, hardware swaps, etc…). However, these …

---

## [Bounderror during interpolation](https://discourse.julialang.org/t/bounderror-during-interpolation/121340)

<div class="topic-metadata">

**Author:** [@Goodness](https://discourse.julialang.org/u/Goodness)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 5:33am UTC](https://discourse.julialang.org/t/bounderror-during-interpolation/121340 "2024-10-16T05:33:14Z")

</div>

Hello I want to run a simulation that requires iteration and interpolation, but I have been encountering this error, and the simulation will end after some iteration. { “name”: “BoundsError”, “message”: “BoundsError:…

---

## [(Dis)Advantages of quintic (fifth order) vs. cubic (third order) Hermite interpolation?](https://discourse.julialang.org/t/dis-advantages-of-quintic-fifth-order-vs-cubic-third-order-hermite-interpolation/120383)

<div class="topic-metadata">

**Author:** [@Marco\_Masi](https://discourse.julialang.org/u/Marco_Masi)\
**Replies:** 18\
**Last updated:** [September 30, 2024, 5:23pm UTC](https://discourse.julialang.org/t/dis-advantages-of-quintic-fifth-order-vs-cubic-third-order-hermite-interpolation/120383 "2024-09-30T17:23:51Z")

</div>

After solving an ordinary differential equation (ODE) of a dynamical system and obtaining the solution in time with its first and second derivatives, I fit the data points with a QuinticHermiteSpline(ddu, du, u, t). It a…

---

## [Convert scatter to surface](https://discourse.julialang.org/t/convert-scatter-to-surface/119276)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 6\
**Last updated:** [September 11, 2024, 1:13pm UTC](https://discourse.julialang.org/t/convert-scatter-to-surface/119276 "2024-09-11T13:13:49Z")

</div>

Hello there :smiley: I have data that can be plotted as scatter (GLMakie). I would like to convert the scatter into a surface. I tried to interpolate the data as following but it does not work (probably because of the w…

---

## [Using flat() in LinearInterpolation](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740)

<div class="topic-metadata">

**Author:** [@bojeryd91](https://discourse.julialang.org/u/bojeryd91)\
**Replies:** 3\
**Last updated:** [August 31, 2024, 1:50am UTC](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740 "2024-08-31T01:50:36Z")

</div>

I want to create an interpolation object which uses the Flat() option when extrapolating, but I run into “Flat() not defined” when specifying it so. The Line() option works well. Eg., the following works interp1 = Line…

---

## [Python map\_coordinates() equivalent in Julia](https://discourse.julialang.org/t/python-map-coordinates-equivalent-in-julia/117461)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 29\
**Last updated:** [August 4, 2024, 8:53am UTC](https://discourse.julialang.org/t/python-map-coordinates-equivalent-in-julia/117461 "2024-08-04T08:53:42Z")

</div>

What would be julia equivalent of that python code ? I am using map\_coordinates — SciPy v1.14.0 Manual function. Here vals\_r ,r\_grid\_stream\_pixand theta\_grid\_stream\_pix are of type Matrix{Float64}. vals\_r = map\_coordina…

---

## [Interpolation of function with multiple variables](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640)

<div class="topic-metadata">

**Author:** [@dilaraabdel](https://discourse.julialang.org/u/dilaraabdel)\
**Replies:** 9\
**Last updated:** [July 31, 2024, 11:26am UTC](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640 "2024-07-31T11:26:18Z")

</div>

Dear all, I am trying to interpolate a function f: R^2 → R with Interpolations.jl. But as far as I understand the documentation this is only possible for functions from R^n to R^n. Are you aware of a way to build an i…

[Next page](https://discourse.julialang.org/tag/interpolations/352.md?match_all_tags=true&page=1&tags%5B%5D=interpolations)
