Does tr2struct apply instrument response to data?

From BRTT

Jump to: navigation, search


Question
Question:

Does the tr2struct script apply the instrument response to the data?

Answer:

If you're following the pattern of the tutorial example for tr2struct, the answer is 'no'. You can see the tutorial example in Matlab as follows:

>> type dbexample_tr2struct.m

(Incidentally you can use that trick to get an example of any of the commands in the Antelope Toolbox for Matlab, which is a very nice way to get started writing your own code).

Officially, the answer is that tr2struct gives back to you whatever you put in, just in different format. Since the point of the trace-manipulation capability in Antelope is to allow a wide range of operations on trace data, you could conceivably do a lot of different things to your trace data before handing it off to tr2struct for format conversion. See the Antelope man-page trintro(3) for a brief background. One common operation is to multiply the data by the calibration factor, which can be done with the trapply_calib command. For more complex operations involving the whole response curve, see the eval_response command (this one doesn't deconvolve the response curve, however it will get you started).