File: test_interpolate_missing.pro

package info (click to toggle)
gnudatalanguage 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,228 kB
  • ctags: 11,455
  • sloc: cpp: 143,352; makefile: 426; sh: 103; ansic: 44; awk: 18; python: 6
file content (13 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
pro interpolate_missing_pro

  err = 0

  a = interpolate([1,3],[-1,0,1,2], missing=-10)
  if a[0] ne -10 || a[3] ne -10 then err++

  a = interpolate([1,3,4],[-1,0,1,3], missing=-10, /cubic)
  if a[0] ne -10 || a[3] ne -10 then err++

  if err ne 0 then exit, status=1

end