ocssw V2020
l1c_msi.cpp File Reference
#include "l1c_msi.h"
#include "filehandle.h"
#include "l1_struc.h"
#include "l12_proto.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 30 of file l1c_msi.cpp.

Function Documentation

◆ closel1c_msi()

int closel1c_msi ( filehandle *  file)

Definition at line 1005 of file l1c_msi.cpp.

◆ createPrivateData_msi()

msi_t* createPrivateData_msi ( int  numBands)

Definition at line 191 of file l1c_msi.cpp.

◆ decodeMSI()

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

Definition at line 822 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 169 of file l1c_msi.cpp.

◆ freeMSIData()

void freeMSIData ( msi_t *  data)

Definition at line 981 of file l1c_msi.cpp.

◆ inDetector()

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

Definition at line 77 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 183 of file l1c_msi.cpp.

◆ interpGPSpos()

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

Definition at line 100 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 119 of file l1c_msi.cpp.

◆ openl1c_msi()

int openl1c_msi ( filehandle *  file)

Definition at line 482 of file l1c_msi.cpp.

◆ readDatastripMeta_msi()

int32_t readDatastripMeta_msi ( filehandle *  file)

Definition at line 369 of file l1c_msi.cpp.

◆ readDetectorFootprint_msi()

int32_t readDetectorFootprint_msi ( filehandle *  file,
int  band 
)

Definition at line 439 of file l1c_msi.cpp.

◆ readl1c_msi()

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

Definition at line 639 of file l1c_msi.cpp.

◆ readl1c_msi_lonlat()

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

Definition at line 612 of file l1c_msi.cpp.

◆ readTileMeta_msi()

int32_t readTileMeta_msi ( filehandle *  file)

Definition at line 247 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 212 of file l1c_msi.cpp.

◆ scale_recnum()

uint32_t scale_recnum ( int32_t  bandIdx,
int32_t  recnum 
)

Definition at line 803 of file l1c_msi.cpp.

◆ str2enum()

msiBandIdx str2enum ( const char *  str)

Definition at line 65 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 176 of file l1c_msi.cpp.

Variable Documentation

◆ str

const char* str

Definition at line 37 of file l1c_msi.cpp.

◆ val

Definition at line 36 of file l1c_msi.cpp.