Go to the documentation of this file.
39 float awc_wav[] = {412, 443, 490, 510, 555, 670, 765, 865};
40 float awc_tab[] = {1.0, 1.0, 1.0, 1.0, 1.0, 0.889225, 0.760046, 0.644950};
43 for (iw = 0; iw < nwave; iw++) {
45 awc[iw] =
linterp(awc_wav, awc_tab, nwc_tab, wave[iw]);
52 float ws,
float ws_max,
float rhof[]) {
53 static int firstCall = 1;
66 if ((awhite = (
float *) calloc(nwave,
sizeof (
float))) ==
NULL) {
67 printf(
"Unable to allocate space for awhite.\n");
75 if (ws > ws_min && ws_max > ws_min) {
76 rhowc = 1.925E-5 * pow((
MIN(ws, ws_max) - ws_min), 3.00);
77 for (iw = 0; iw < nwave; iw++)
78 rhof[iw] = awhite[iw] * rhowc;
80 for (iw = 0; iw < nwave; iw++)
void whitecaps(int32_t sensorID, int32_t evalmask, int32_t nwave, float ws, float ws_max, float rhof[])
void whitecap_spectral_shape(int32_t nwave, float *wave, float *awc)
float linterp(float xin[], float yin[], int32_t nin, float xout)
int32_t rdsensorinfo(int32_t, int32_t, const char *, void **)
int32_t sensorID[MAXNFILES]