Dear Anupam Patel , almost trend is linear. But when you faced with a nonlinear trend on waveform data, you must design a nonlinear filter via matlab and/or SAC softwares , then process your data. Otherwise you can use a software, for example SEISMOSIGNAL to do that.