OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1c_msi.cpp File Reference
#include "l1c_msi.h"
#include "l1.h"
#include "jplaeriallib.h"
#include <libnav.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_interp2d.h>
#include <gsl/gsl_spline2d.h>
#include "l1c_msi_private.h"
#include <cmath>
#include <algorithm>
#include <pugixml.hpp>
Include dependency graph for l1c_msi.cpp:

Go to the source code of this file.

Enumerations

enum  msiBandIdx {
  B01, B02, B03, B04,
  B05, B06, B07, B08,
  B8A, B09, B11, B12,
  B10
}
 

Functions

void resample_msi (opj_image_t *image, filehandle *file, int recnum, int srcRes, int destRes)
 
int decodeMSI (filehandle *file, int32_t bandIdx, int32_t recnum)
 
void interpGPSpos (l1str *l1rec, double *pos, int detector, int band)
 
int inDetector (msi_t *data, float lat, float lon)
 
void interpViewAngles (l1str *l1rec, int pixel, int scan, int band, float *senz, float *sena)
 
void error_callback (const char *msg, void *client_data)
 
void warning_callback (const char *msg, void *client_data)
 
void info_callback (const char *msg, void *client_data)
 
msiBandIdx str2enum (const char *str)
 
void interpViewAngles (msi_t *data, int pixel, int scan, int band, float *senz, float *sena)
 
msi_t * createPrivateData_msi (int numBands)
 
int32_t readTileMeta_msi (filehandle *file)
 
int32_t readDatastripMeta_msi (filehandle *file)
 
int32_t readDetectorFootprint_msi (filehandle *file, int band)
 
int openl1c_msi (filehandle *file)
 
int readl1c_msi_lonlat (filehandle *file, int recnum, l1str *l1rec)
 
int readl1c_msi (filehandle *file, int recnum, l1str *l1rec, int lonlat)
 
uint32_t scale_recnum (int32_t bandIdx, int32_t recnum)
 
void freeMSIData (msi_t *data)
 
int closel1c_msi (filehandle *file)
 

Enumeration Type Documentation

◆ msiBandIdx

enum msiBandIdx
Enumerator
B01 
B02 
B03 
B04 
B05 
B06 
B07 
B08 
B8A 
B09 
B11 
B12 
B10 

Definition at line 28 of file l1c_msi.cpp.

Function Documentation

◆ closel1c_msi()

int closel1c_msi ( filehandle *  file)

Definition at line 1003 of file l1c_msi.cpp.

◆ createPrivateData_msi()

msi_t* createPrivateData_msi ( int  numBands)

Definition at line 189 of file l1c_msi.cpp.

◆ decodeMSI()

int decodeMSI ( filehandle *  file,
int32_t  bandIdx,
int32_t  recnum 
)

Definition at line 820 of file l1c_msi.cpp.

◆ error_callback()

void error_callback ( const char *  msg,
void *  client_data 
)

error callback expecting a FILE* client object

Definition at line 167 of file l1c_msi.cpp.

◆ freeMSIData()

void freeMSIData ( msi_t *  data)

Definition at line 979 of file l1c_msi.cpp.

◆ inDetector()

int inDetector ( msi_t *  data,
float  lat,
float  lon 
)

Definition at line 75 of file l1c_msi.cpp.

◆ info_callback()

void info_callback ( const char *  msg,
void *  client_data 
)

debug callback expecting no client object

Definition at line 181 of file l1c_msi.cpp.

◆ interpGPSpos()

void interpGPSpos ( l1str *  l1rec,
double *  pos,
int  detector,
int  band 
)

Definition at line 98 of file l1c_msi.cpp.

◆ interpViewAngles() [1/2]

void interpViewAngles ( l1str *  l1rec,
int  pixel,
int  scan,
int  band,
float *  senz,
float *  sena 
)

◆ interpViewAngles() [2/2]

void interpViewAngles ( msi_t *  data,
int  pixel,
int  scan,
int  band,
float *  senz,
float *  sena 
)

Definition at line 117 of file l1c_msi.cpp.

◆ openl1c_msi()

int openl1c_msi ( filehandle *  file)

Definition at line 480 of file l1c_msi.cpp.

◆ readDatastripMeta_msi()

int32_t readDatastripMeta_msi ( filehandle *  file)

Definition at line 367 of file l1c_msi.cpp.

◆ readDetectorFootprint_msi()

int32_t readDetectorFootprint_msi ( filehandle *  file,
int  band 
)

Definition at line 437 of file l1c_msi.cpp.

◆ readl1c_msi()

int readl1c_msi ( filehandle *  file,
int  recnum,
l1str *  l1rec,
int  lonlat 
)

Definition at line 637 of file l1c_msi.cpp.

◆ readl1c_msi_lonlat()

int readl1c_msi_lonlat ( filehandle *  file,
int  recnum,
l1str *  l1rec 
)

Definition at line 610 of file l1c_msi.cpp.

◆ readTileMeta_msi()

int32_t readTileMeta_msi ( filehandle *  file)

Definition at line 245 of file l1c_msi.cpp.

◆ resample_msi()

void resample_msi ( opj_image_t *  image,
filehandle *  file,
int  recnum,
int  srcRes,
int  destRes 
)

Definition at line 210 of file l1c_msi.cpp.

◆ scale_recnum()

uint32_t scale_recnum ( int32_t  bandIdx,
int32_t  recnum 
)

Definition at line 801 of file l1c_msi.cpp.

◆ str2enum()

msiBandIdx str2enum ( const char *  str)

Definition at line 63 of file l1c_msi.cpp.

◆ warning_callback()

void warning_callback ( const char *  msg,
void *  client_data 
)

warning callback expecting a FILE* client object

Definition at line 174 of file l1c_msi.cpp.

Variable Documentation

◆ str

const char* str

Definition at line 35 of file l1c_msi.cpp.

◆ val

Definition at line 34 of file l1c_msi.cpp.