comparison Meerwald/pollen_stuff.c @ 3:acb6967ee76d

update to 0.5
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 21:11:21 +0200
parents
children
comparison
equal deleted inserted replaced
2:b92f06d9a967 3:acb6967ee76d
1 #ifdef POLLEN_STUFF
2 {
3 double alpha, beta;
4 char *alpha_str = getenv("POLLEN_ALPHA"), *beta_str = getenv("POLLEN_BETA");
5
6 if (alpha_str && beta_str) {
7 alpha = atof(alpha_str);
8 beta = atof(beta_str);
9
10 if (alpha < -M_PI || alpha >= M_PI) {
11 fprintf(stderr, "%s: pollen - alpha %f out of range\n", progname, alpha);
12 exit(1);
13 }
14
15 if (beta < -M_PI || beta >= M_PI) {
16 fprintf(stderr, "%s: pollen - beta %f out of range\n", progname, beta);
17 exit(1);
18 }
19
20 if (verbose > 7)
21 fprintf(stderr, "%s: pollen - alpha %f, beta %f\n", progname, alpha, beta);
22
23 dwt_pollen_filter(alpha, beta);
24 }
25 }
26 #endif
27

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.