Jetdsp
JETDSP Homepage
Manual Homepage
Signal Processing Homepage
 
Signal processing
Basic guide
Advanced guide
IBM NEWDSP-syntax
Use your code
Signal slicing
Simple expressions
 
Tutorial
Introduction
Internals
IDL commands
Interpolation
Writing your own code
Adding functions to the Simple dialogue
 
How to...
Read data
Define structure
 
Functions
jetSmooth
jetint
jetsubset
jetmerge
fixgrid
jetwindowpoints
 

Adding functions to the Simple Expression dialogue.

If is possible to add extra functions to any of the four lists of operations in the simple expression dialogue. Each of these lists consists of two parts, the first is defined within jetdsp whilst the second is read from a file. There is one file for each list and these are stored in the base directory. The names of the files all have the format 'procSignal*.dat' and the data within them is in ASCII format.

To add a new function two changes need to be made to a file. Firstly the number of functions to read needs to be changed. This is on the first line not starting with a ';'. Following this are lines defining each function. The format of these differs slightly between the files. Each contains fields separated by one or more spaces.

List Filename 1st Field 2nd Field 3rd Field 4th Field
Unary procSignalUnary.dat Name Number of parameters IDL expression Not used
Binary procSignalBinary.dat Name Number of parameters IDL expression Not used
f(t) procSignal2d.dat Name Number of parameters Number of signals IDL expression
f(t,x) procSignal3d.dat Name Number of parameters Number of signals IDL expression

For example add the following lines to the following files, remembering to change the function counts.
List Line
Unary normalise 0 my_normalise(signal1)
Unary zero_time 0 signal1 & newsignal_time=signal1_time-40.0
Unary TimeShift 1 SIGNAL1&NEWSIGNAL_time=SIGNAL1_time+(C1)
f(t) vs. 0 2 signal1&newsignal_time=signal2
f(t,x) vs. 0 2 signal1&newsignal_x=signal2
f(t,x) truncate 1 1 my_truncate(signal1,signal1_time,signal1_x,(C1))
Note that the first and last function require the '.sav' files described previously. Note that in the two functions with parameters that these are enclosed in brackets. These are always required, and should always be included. The next time you open the 'create processed signal' dialogue these functions will be included automatically. If you have created 'my_truncate.pro' then delete all signals, load 46000/LIDR/NE and set up the following dialog.

Create the new signal and plot both to show the truncation.

Previous page

Top  JETDSP Home Page  Manual  FAQ 
Please send comments to: data-and-coding-support@ccfe.ac.uk