Functions | |
InversionData * | OLAInit (InputParms inputParms, char *commandLineOutputDir, bool debug) |
void | OLAInvert (MAP_DEPTH_MATRIX K, MAP_DEPTH_MATRIX K2piCC, MAP_DEPTH_MATRIX Lambda, MATRIX Theta, MAP_DEPTH_MATRIX T, Model *model, BaseDirectory *debugFilename, bool debug) |
void | OLAInvert2 (InversionData *inversionData) |
InversionData* OLAInit | ( | InputParms | inputParms, | |
char * | commandLineOutputDir, | |||
bool | debug | |||
) |
Fill InversionData structure with data from input files.
[in] | inputParms | InputParms structure filled with filenames, directories and parameters extracted from input file. |
[in] | commandLineOutputDir | character string with new output directory specified on command line. |
[in] | debug | Boolean flag for writing intermediate matrix values. |
void OLAInvert | ( | MAP_DEPTH_MATRIX | K, | |
MAP_DEPTH_MATRIX | K2piCC, | |||
MAP_DEPTH_MATRIX | Lambda, | |||
MATRIX | Theta, | |||
MAP_DEPTH_MATRIX | T, | |||
Model * | model, | |||
BaseDirectory * | debugFilename, | |||
bool | debug | |||
) |
Perform inversion using OLA approach.
[in] | K | Kernel in frequency space |
[in] | K2piCC | The complex conjugate of K in frequency space multiplied by (2pi)^2; |
[in] | Lambda | Lambda Travel-time noise covariance matrix |
[in] | Theta | Overlap matrix, describing expansion in terms of basis functions. |
[in] | T | Target function described in matrix form. |
[in,out] | model | A Model Object. Inversion results are returned in this object. |
[in] | debugFilename | BaseDirectory structure to manage output of debug file names. |
[in] | debug | bool flag; true if debug; false otherwise. Precalculate the Target function for x, y and z values, then Fourier transform it. |
void OLAInvert2 | ( | InversionData * | inversionData | ) |
Setup call to OLA inversion by extracting the input matrices and intermediate matrices. Setup the output files with the parameter steps. Record parameter values in model and inversion data structure.
[in,out] | inversionData | Pointer to structure containing all inversion data. |