OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
sensorInfo.c File Reference
#include <sensorInfo.h>
#include <stddef.h>
#include <strings.h>
#include <stdlib.h>
#include <genutils.h>
Include dependency graph for sensorInfo.c:

Go to the source code of this file.

Functions

const char * sensorId2SensorName (int sensorId)
 
const char * sensorId2InstrumentName (int sensorId)
 
const char * sensorId2PlatformName (int sensorId)
 
const char * sensorId2SensorDir (int sensorId)
 
const char * subsensorId2SubsensorDir (int subsensorId)
 
int sensorName2SensorId (const char *name)
 
int instrumentPlatform2SensorId (const char *instrument, const char *platform)
 
int sensorId2SubsensorId (int sensorId)
 
const char * instrumentPlatform2SensorName (const char *instrument, const char *platform)
 

Function Documentation

◆ instrumentPlatform2SensorId()

int instrumentPlatform2SensorId ( const char *  instrument,
const char *  platform 
)

lookup the sensorID for a given instrument and platform

Parameters
instrumentinstrument to use for sensorID look up
platformplatform to use for sensorID lookup
Returns
the matching sensorID, or -1 if not found

Definition at line 302 of file sensorInfo.c.

◆ instrumentPlatform2SensorName()

const char* instrumentPlatform2SensorName ( const char *  instrument,
const char *  platform 
)

fine the sensor name given the instrument and platform

Parameters
instrumentname of instrument
platformname of platform
Returns
sensor name

Definition at line 357 of file sensorInfo.c.

◆ sensorId2InstrumentName()

const char* sensorId2InstrumentName ( int  sensorId)

Get the name of the instrument for this sensorId.

Parameters
sensorIdsensor identifier to look up.
Returns
name of the instrument or NULL if not found.

Definition at line 212 of file sensorInfo.c.

◆ sensorId2PlatformName()

const char* sensorId2PlatformName ( int  sensorId)

Get the name of the platform for this sensorId.

Parameters
sensorIdsensor identifier to look up.
Returns
name of the platform or NULL if not found.

Definition at line 226 of file sensorInfo.c.

◆ sensorId2SensorDir()

const char* sensorId2SensorDir ( int  sensorId)

Get the name of the sensor directory for this sensorId.

Parameters
sensorIdsensor identifier to look up.
Returns
sensor directory or NULL if not found.

Definition at line 240 of file sensorInfo.c.

◆ sensorId2SensorName()

const char* sensorId2SensorName ( int  sensorId)

Get the name of the sensor for this sensorId.

Parameters
sensorIdsensor identifier to look up.
Returns
name of sensor or NULL if not found.

Definition at line 198 of file sensorInfo.c.

◆ sensorId2SubsensorId()

int sensorId2SubsensorId ( int  sensorId)

return the subsensorId for the given sensorId

Parameters
sensorIdsensorId to lookup
Returns
the subsensorId, or -1 if not found

Definition at line 322 of file sensorInfo.c.

◆ sensorName2SensorId()

int sensorName2SensorId ( const char *  name)

lookup the ID for a sensor name

Parameters
sensorNamename of the sensor to lookup
Returns
sensor ID for the given sensor, -1 if not found.

Definition at line 268 of file sensorInfo.c.

◆ subsensorId2SubsensorDir()

const char* subsensorId2SubsensorDir ( int  subsensorId)

Get the name of the subsensor directory for this subsensorId.

Parameters
subsensorIdsubsensor identifier to look up.
Returns
subsensor directory or NULL if not found.

Definition at line 254 of file sensorInfo.c.