From ae49abf0ec11fb4c842f977bca7a04d83dc94fde Mon Sep 17 00:00:00 2001 From: David Graham Date: Mon, 28 Nov 2022 15:19:52 -0500 Subject: [PATCH] remove old --- src/libseis.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/libseis.c b/src/libseis.c index 285b15c..55178f6 100644 --- a/src/libseis.c +++ b/src/libseis.c @@ -33,18 +33,6 @@ void write_float(char path[], float *data, int nt, int nx) { fclose(fptr); } -float *gain(const float *data, int nt, int nx, float dt, float pow) { - float *gained_data; - gained_data = (float *) malloc(nt * nx * sizeof(float)); - for (int n = 1; n < nx + 1; n++) { - for (int t = 0; t < nt; t++) { - float t_float = (float) t; - gained_data[n * t] = data[n * t] * (dt * t_float * pow); - } - } - return gained_data; -} - Gather *gain_gather(Gather *gather, float pow) { Gather *new_gather = malloc(sizeof(struct Gather)); new_gather->id = gather->id;