GPLIB++
Functions
Forward modelling of magnetotelluric data

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...
 

Detailed Description

Function Documentation

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.

Parameters
filenameThe name for the netcdf file
FrequenciesThe vector of frequencies in Hz for the impedances in the vector Impedances
StatXCoordThe x-coordinates (North) of the measurement stations for the impedances in m
StatYCoordThe y-coordinates (East) of the measurement stations for the impedances in m
StatZCoordThe z-coordinates (Down) of the measurement stations for the impedances in m
ImpedancesThe 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.

Parameters
filenameThe name for the netcdf file
FrequenciesThe vector of frequencies in Hz for the impedances in the vector Impedances
StatXCoordThe x-coordinates (North) of the measurement stations for the impedances in m
StatYCoordThe y-coordinates (East) of the measurement stations for the impedances in m
StatZCoordThe z-coordinates (Down) of the measurement stations for the impedances in m
ImpedancesThe 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().