Package a table with an ipf? and lookup tables in general
Tue, 07/02/2019 - 02:28 am
2 questions that are semi-related...
1) I have a table of values that I would like to load automatically with a procedure file. I know that I could either make a template file for experiments (not ideal because there is a library of old .exp files I want to apply this to) or I could more simply include a function that looks for the file I want to load and then call that function. I guess my questions are:
a) if I write a function to load my table, is there a way to make it call upon compiling? I know you can do some things with the "#" statements below the #pragma but I have not been able to get this to work...and
b) is there a better way to auto-load waves with an ipf compiling that I am missing?
2) Other than BinarySearch and BinarySearchInterp, is there an ideal way to search through a multi-dimensional lookup table? I.e. I have a 3-dimensional matrix with 3 1-d waves of header values that I need to look through. I have some code that calculates Maxwell's equations but I run it over and over and it takes waaaayyyy too long to run. Moving to a lookup table would save me a lot of computational time but I'm wondering if there is an even faster way of looking for specific values I don't know about.