-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathlibdealias.h
26 lines (21 loc) · 1.11 KB
/
libdealias.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <math.h>
#ifndef NAN
#include <bits/nan.h>
#endif
#include <string.h>
#include "rave_alloc.h"
#include "constants.h"
/******************************************************************************/
/*Definition of standard parameters. */
/******************************************************************************/
#ifndef DEG2RAD
#define DEG2RAD 0.01745329251994329576 // Degrees to radians.
#define RAD2DEG (57.29578) // Radians to degrees.
#endif
#define VMAX 50 /* Test field velocities up to VMAX m/s */
#define VAF 15 /* Test field velocities increase in steps VMAX/VAF */
#define NF 12 /* Test field directions increase by 360/NF degrees */
void printDealias(const float *points, const int nDims, const float nyquist[],
const float vradObs[], float vradDealias[], const int nPoints, const int iProfileType, const int iLayer, const int iPass);
int dealias_points(const float *points, const int nDims, const float nyquist[],
const double NI_MIN, const float vo[], float vradDealias[], const int nPoints);