Skip to content

Commit

Permalink
remove old
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Nov 28, 2022
1 parent 81eb696 commit ae49abf
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/libseis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae49abf

Please sign in to comment.