Function crpropa::loadGridFromTxt(ref_ptr<Grid3f>, std::string, double)

Function Documentation

void crpropa::loadGridFromTxt(ref_ptr<Grid3f> grid, std::string filename, double conversion = 1)

Load a Grid3f grid from a plain text file.

Parameters
  • grid – a vector grid (Grid3f) to which the points will be loaded

  • filename – name of input file

  • conversion – multiply every point in grid by a conversion factor