Hi all!

I fill piddle by grid data to then interpolate with interpND(). Piddle has the dimension [2,2,2,2]. But the grid is incomplete, some cells have BAD value. I use linear interpolation.
If piddle has values like this:
[
 [
  [
   [200 173]
   [BAD BAD]
  ]
  [
   [BAD BAD]
   [BAD BAD]
  ]
 ]
 [
  [
   [BAD BAD]
   [BAD BAD]
  ]
  [
   [BAD BAD]
   [BAD BAD]
  ]
 ]
]
Then interpND function for index (0.5,0,0,0) return BAD value, although values of indexes (0,0,0,0) and (1,0,0,0) are defined. I.e. interpolation should be performed only for first dimension, others may be excluded. The simple way ismay be truncate the piddle to
[
 [
  [
   [200 173]
  ]
 ]
]
How to implement it? Or is there other way?
Thank you in advance!!!




_______________________________________________
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to