|
IODA Bundle
|
#include "GsiSatBiasReader.h"#include <string>#include <vector>#include <fstream>#include <Eigen/Dense>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) |
| 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.
| 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)
| filename | file with bias coefficients (GSI style) |
| sensor | instrument+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.
| 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)
| filename | file with bias coefficients (GSI style) |
| sensor | instrument+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.
| 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.