OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1_imgscale.c File Reference
#include "l12_proto.h"
#include "input_struc.h"
Include dependency graph for l1_imgscale.c:

Go to the source code of this file.

Macros

#define INT32   int32_t
 
#define FLOAT32   float
 
#define BYTE   unsigned char
 

Functions

float toa_reflect (l1str *l1rec, int32_t ip, int32_t ib)
 
BYTE linscale (FLOAT32 x, FLOAT32 minrad, FLOAT32 maxrad)
 
BYTE linscale_old (FLOAT32 x, int band)
 
BYTE logscale (FLOAT32 val, FLOAT32 min, FLOAT32 max)
 

Macro Definition Documentation

◆ BYTE

#define BYTE   unsigned char

Definition at line 5 of file l1_imgscale.c.

◆ FLOAT32

#define FLOAT32   float

Definition at line 4 of file l1_imgscale.c.

◆ INT32

#define INT32   int32_t

Definition at line 3 of file l1_imgscale.c.

Function Documentation

◆ linscale()

BYTE linscale ( FLOAT32  x,
FLOAT32  minrad,
FLOAT32  maxrad 
)

Definition at line 25 of file l1_imgscale.c.

◆ linscale_old()

BYTE linscale_old ( FLOAT32  x,
int  band 
)

Definition at line 41 of file l1_imgscale.c.

◆ logscale()

BYTE logscale ( FLOAT32  val,
FLOAT32  min,
FLOAT32  max 
)

Definition at line 76 of file l1_imgscale.c.

◆ toa_reflect()

float toa_reflect ( l1str *  l1rec,
int32_t  ip,
int32_t  ib 
)

Definition at line 8 of file l1_imgscale.c.