IODA Bundle
GsiSatBiasReader.cpp File Reference
#include "GsiSatBiasReader.h"
#include <string>
#include <vector>
#include <fstream>
#include <Eigen/Dense>
Include dependency graph for GsiSatBiasReader.cpp:

Go to the source code of this file.

Functions

void readOneChannel (std::ifstream &infile, std::string &sensor, size_t &channel)
 
void findSensorsChannels (const std::string &filename, std::vector< std::string > &sensors, std::vector< int > &nchannels)
 
void readObsBiasCoefficients (const std::string &filename, const std::string &sensor, std::vector< int > &channels, Eigen::ArrayXXf &coeffs)
 
void readObsBiasCoeffErrors (const std::string &filename, const std::string &sensor, std::vector< int > &channels, Eigen::ArrayXXf &errs, Eigen::ArrayXf &nobs)
 

Function Documentation

◆ findSensorsChannels()

void findSensorsChannels ( const std::string &  filename,
std::vector< std::string > &  sensors,
std::vector< int > &  nchannels 
)

Finds all sensors in the file (returned in sensors) and number of channels for all the sensors (returned in nchannels)

Read the first entry, save first sensor

Definition at line 34 of file GsiSatBiasReader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readObsBiasCoeffErrors()

void readObsBiasCoeffErrors ( const std::string &  filename,
const std::string &  sensor,
std::vector< int > &  channels,
Eigen::ArrayXXf &  errs,
Eigen::ArrayXf &  nobs 
)

Read bias coefficients errors from the GSI file (satbias_pc)

Parameters
filenamefile with bias coefficients (GSI style)
sensorinstrument+satellite that is to be read from the file
(out)channels channels for sensor
(out)errs bias coefficients error variances
(out)nobs number of observations

it's the sensor we're interested in; read in coefficients and channel indices

not interested in this channel; passing

Definition at line 111 of file GsiSatBiasReader.cpp.

Here is the caller graph for this function:

◆ readObsBiasCoefficients()

void readObsBiasCoefficients ( const std::string &  filename,
const std::string &  sensor,
std::vector< int > &  channels,
Eigen::ArrayXXf &  coeffs 
)

Read bias coefficients from the GSI bias coefficients file (satbias_in)

Parameters
filenamefile with bias coefficients (GSI style)
sensorinstrument+satellite that is to be read from the file
(out)channels channels for sensor
(out)coeffs bias coefficients

it's the sensor we're interested in; read in coefficients and channel indices

not interested in this channel; passing

Definition at line 69 of file GsiSatBiasReader.cpp.

Here is the caller graph for this function:

◆ readOneChannel()

void readOneChannel ( std::ifstream &  infile,
std::string &  sensor,
size_t &  channel 
)

Read info for one channel from the GSI text file Returns sensor (instrument + satellite) name and channel index

Definition at line 18 of file GsiSatBiasReader.cpp.

Here is the caller graph for this function: