OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
rdsensorinfo.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <sensorInfo.h>
#include <genutils.h>
Include dependency graph for rdsensorinfo.c:

Go to the source code of this file.

Macros

#define SENSOR_INFO_FILENAME   "msl12_sensor_info.dat"
 
#define NEWSENSINFO   32 /* use test sensor info file */
 

Functions

void parseline (char *line, char *name, char *value)
 
int32_t rdsensorinfo (int32_t sensorID, int32_t evalmask, const char *pname, void **pval)
 

Macro Definition Documentation

◆ NEWSENSINFO

#define NEWSENSINFO   32 /* use test sensor info file */

Definition at line 30 of file rdsensorinfo.c.

◆ SENSOR_INFO_FILENAME

#define SENSOR_INFO_FILENAME   "msl12_sensor_info.dat"

Definition at line 26 of file rdsensorinfo.c.

Function Documentation

◆ parseline()

void parseline ( char *  line,
char *  name,
char *  value 
)

Definition at line 32 of file rdsensorinfo.c.

◆ rdsensorinfo()

int32_t rdsensorinfo ( int32_t  sensorID,
int32_t  evalmask,
const char *  pname,
void **  pval 
)

lookup information about a sensor.

Parameters
sensorIDid of the sensor to lookup
evalmaskset to 32 to get info out of the "eval" directory
pnamename of the parameter to retrieve
pvalpointer to the requested data
Returns
the number of bands, -1 if error

Definition at line 69 of file rdsensorinfo.c.