GPLIB++
|
Functions | |
void | gplib::WriteImpedancesToNetCDF (const std::string &filename, const std::vector< double > &Frequencies, const std::vector< double > &StatXCoord, const std::vector< double > &StatYCoord, const std::vector< double > &StatZCoord, const gplib::rvec &Impedances) |
Write magnetotelluric impedances to a netcdf file. More... | |
void | gplib::ReadImpedancesFromNetCDF (const std::string &filename, std::vector< double > &Frequencies, std::vector< double > &StatXCoord, std::vector< double > &StatYCoord, std::vector< double > &StatZCoord, gplib::rvec &Impedances) |
Read magnetotelluric impedances from a netcdf file. More... | |
void gplib::ReadImpedancesFromNetCDF | ( | const std::string & | filename, |
std::vector< double > & | Frequencies, | ||
std::vector< double > & | StatXCoord, | ||
std::vector< double > & | StatYCoord, | ||
std::vector< double > & | StatZCoord, | ||
gplib::rvec & | Impedances | ||
) |
Read magnetotelluric impedances from a netcdf file.
Read MT impedances for several stations from a netcdf file.
filename | The name for the netcdf file |
Frequencies | The vector of frequencies in Hz for the impedances in the vector Impedances |
StatXCoord | The x-coordinates (North) of the measurement stations for the impedances in m |
StatYCoord | The y-coordinates (East) of the measurement stations for the impedances in m |
StatZCoord | The z-coordinates (Down) of the measurement stations for the impedances in m |
Impedances | The impedances as a vector of real numbers. 8 consecutive elements form the impedance matrix for one frequency and site, all impedances for one frequency and all stations form a contiguous block, the frequencies vary slowest. |
Definition at line 137 of file ReadWriteImpedances.cpp.
References gplib::FreqDimName, gplib::ReadImpedanceComp(), and gplib::ReadVec().
void gplib::WriteImpedancesToNetCDF | ( | const std::string & | filename, |
const std::vector< double > & | Frequencies, | ||
const std::vector< double > & | StatXCoord, | ||
const std::vector< double > & | StatYCoord, | ||
const std::vector< double > & | StatZCoord, | ||
const gplib::rvec & | Impedances | ||
) |
Write magnetotelluric impedances to a netcdf file.
We can save MT impedances for several stations in a netcdf file for storage and analysis with external programs.
filename | The name for the netcdf file |
Frequencies | The vector of frequencies in Hz for the impedances in the vector Impedances |
StatXCoord | The x-coordinates (North) of the measurement stations for the impedances in m |
StatYCoord | The y-coordinates (East) of the measurement stations for the impedances in m |
StatZCoord | The z-coordinates (Down) of the measurement stations for the impedances in m |
Impedances | The impedances as a vector of real numbers. 8 consecutive elements form the impedance matrix for one frequency and site, all impedances for one frequency and all stations form a contiguous block, the frequencies vary slowest. |
Definition at line 87 of file ReadWriteImpedances.cpp.
References gplib::FreqDimName, gplib::WriteImpedanceComp(), and gplib::WriteVec().