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

Function Documentation

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

Load a Grid1f from a plain text file

Parameters:
  • grid – a scalar grid (Grid1f) to which the points will be loaded

  • filename – name of input file

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