Surface NMR forward modelling
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ModelAligner.cpp 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 08/30/2017 04:08:53 AM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2017, University of Utah
  15. * @copyright Copyright (c) 2017, Trevor Irons & Lemma Software, LLC
  16. */
  17. #include <Merlin>
  18. using namespace Lemma;
  19. int main(int argc, char** argv) {
  20. if (argc<5) {
  21. std::cout << "ModelAligner aligns a dummy model with a pre-calculated"
  22. << "imaging kernel.\n\n"
  23. << "./ModelAligner Kernel.yaml T2Low T2High nT2 \n";
  24. return(EXIT_FAILURE);
  25. }
  26. auto Kernel = KernelV0::DeSerialize(YAML::LoadFile(argv[1]));
  27. auto Model = LayeredEarthMR::NewSP();
  28. Model->AlignWithKernel(Kernel);
  29. Model->SetT2StarBins(atoi(argv[2]), atoi(argv[3]), atoi(argv[4]));
  30. std::cout << *Model << std::endl;
  31. }