surfaceio.hpp File Reference
#include <string>
#include <vector>
#include <locale>
#include <fstream>
#include "regularsurface.hpp"
#include "surface.hpp"
#include "../exception/exception.hpp"
#include "../math/constants.hpp"
#include "../iotools/fileio.hpp"
#include "../iotools/stringtools.hpp"
Include dependency graph for surfaceio.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  NRLib
 
namespace  NRLib::NRLibPrivate
 

Enumerations

enum  NRLib::SurfaceFileFormat {
  NRLib::SURF_UNKNOWN , NRLib::SURF_IRAP_CLASSIC_ASCII , NRLib::SURF_STORM_BINARY , NRLib::SURF_SGRI ,
  NRLib::SURF_RMS_POINTS_ASCII , NRLib::SURF_MULT_ASCII
}
 

Functions

SurfaceFileFormat NRLib::FindSurfaceFileType (const std::string &filename)
 Find type of file. More...
 
std::string NRLib::GetSurfFormatString (SurfaceFileFormat format)
 String describing file format. More...
 
template<class A >
void NRLib::ReadStormBinarySurf (const std::string &filename, RegularSurface< A > &surface)
 
template<class A >
void NRLib::ReadIrapClassicAsciiSurf (const std::string &filename, RegularSurface< A > &surface, double &angle)
 
template<class A >
void NRLib::ReadSgriSurf (const std::string &filename, RegularSurface< A > &surface, double &angle)
 
std::vector< RegularSurfaceRotated< float > > NRLib::ReadMultipleSgriSurf (const std::string &filename, const std::vector< std::string > &labels)
 
template<class A >
void NRLib::ReadMulticolumnAsciiSurf (std::string filename, RegularSurface< A > &surface, double x_ref, double y_ref, double lx, double ly, int *ilxl_area, double il0_ref, double xl0_ref)
 
template<class A >
void NRLib::WriteIrapClassicAsciiSurf (const RegularSurface< A > &surf, double angle, const std::string &filename)
 
template<class A >
void NRLib::WriteStormBinarySurf (const RegularSurface< A > &surf, const std::string &filename)
 
bool NRLib::FindMulticolumnAsciiLine (const std::string &filename, int &header_start_line)
 
bool NRLib::NRLibPrivate::Equal (double a, double b)
 

Variables

const double NRLib::MULT_IRAP_MISSING = -999.25
 
const double NRLib::IRAP_MISSING = 9999900.0
 
const double NRLib::STORM_MISSING = -999.0