OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
sprsin.c
Go to the documentation of this file.
1 #include <math.h>
2 
3 void sprsin(float **a, int n, float thresh, unsigned long nmax, float sa[],
4  unsigned long ija[]) {
5  void nrerror(char error_text[]);
6  int i, j;
7  unsigned long k;
8 
9  for (j = 1; j <= n; j++) sa[j] = a[j][j];
10  ija[1] = n + 2;
11  k = n + 1;
12  for (i = 1; i <= n; i++) {
13  for (j = 1; j <= n; j++) {
14  if (fabs(a[i][j]) >= thresh && i != j) {
15  if (++k > nmax) nrerror("sprsin: nmax too small");
16  sa[k] = a[i][j];
17  ija[k] = j;
18  }
19  }
20  ija[i + 1] = k + 1;
21  }
22 }
int j
Definition: decode_rs.h:73
void nrerror(char error_text[])
Definition: nrutil.c:7
#define fabs(a)
Definition: misc.h:93
void sprsin(float **a, int n, float thresh, unsigned long nmax, float sa[], unsigned long ija[])
Definition: sprsin.c:3
int i
Definition: decode_rs.h:71
PGE01 indicating that PGE02 PGE01 V6 for and PGE01 V2 for MOD03 were used to produce the granule By convention adopted in all MODIS Terra PGE02 code versions are The fourth digit of the PGE02 version denotes the LUT version used to produce the granule The source of the metadata environment variable ProcessingCenter was changed from a QA LUT value to the Process Configuration A sign used in error in the second order term was changed to a
Definition: HISTORY.txt:424
int k
Definition: decode_rs.h:73