README 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. *******************************************************************************
  2. How to use scattnlay
  3. *******************************************************************************
  4. 1. Compile Code:
  5. (a) Compilation options
  6. * make source - Create source package (python library)
  7. * make install - Install on local system (python library)
  8. * make buildrpm - Generate a rpm package (python library)
  9. * make builddeb - Generate a deb package (python library)
  10. * make standalone - Create a standalone program
  11. * make clean - Delete temporal files
  12. *******************************************************************************
  13. 2. Use:
  14. (a) Python library
  15. * Use scattnlay directly
  16. from scattnlay import scattnlay
  17. ...
  18. x = ...
  19. m = ...
  20. terms, Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo, S1, S2 = scattnlay(x, m)
  21. ...
  22. * Execute some of the test scripts (located in the folder 'tests/python')
  23. Example: ./test01.py
  24. (b) Standalone program
  25. * Execute scattnlay directly
  26. Usage: scattnlay -l Layers x1 m1.r m1.i [x2 m2.r m2.i ...] [-c comment]
  27. * Execute some of the test scripts (located in the folder 'tests/shell')
  28. Example: ./test01.sh > test01.csv
  29. *******************************************************************************