|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./guide File subtract.pro
subtract |
procedure subtract |
This procedure subtracts the data of the second data container (spectrum or continuum depending on !g.line) from the first and stores the result in the first data container. For example, in spectral line mode, this is equivalent to: *(!g.s[0]).data_ptr = *(!g.s[0]).data_ptr - *(!g.s[1]).data_ptr
get,index=1
copy,0,1
get, index=2
subtract