Changes between Version 4 and Version 5 of Procedures/HyperspectralCalibrationCreation
- Timestamp:
- Sep 21, 2015, 5:11:05 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Procedures/HyperspectralCalibrationCreation
v4 v5 9 9 Relevant scripts are held in the arsf git repository under tools/libarsfcal. 10 10 11 Note that the various calibration scripts written in Python expect to import a package called "libarsfcal". This means that you must have the directory above the libarsfcal directory in your PYTHONPATH environment variable for the scripts to run. So eg.11 Note that the various calibration scripts written in Python expect to import a package called "libarsfcal". This means that you must have the directory above the libarsfcal directory in your PYTHONPATH environment variable for the scripts to run. This will be added by default but if you are making changes to the scripts you need to prepend the development version to your PYTHONPATH: 12 12 13 1. `cd ~` 14 1. `PYTHONPATH=$PYTHONPATH:~` 15 1. `export PYTHONPATH=$PYTHONPATH:~` 13 1. export GITCHECKOUT=~/scratch_network/git/internal-code 14 1. export PYTHONPATH=$GITCHECKOUT/tools:$PYTHONPATH 16 15 17 Test this has been successful by attempting to run one of the scripts using the -h option. If you've done it right it'll print the usage, if you've done it wrong it'll tell you that there is no module called libarsfcal. 16 You can check the location of the library you are using with: 17 {{{ 18 python -c "import libarsfcal;print(libarsfcal.__file__)" 19 }}} 18 20 19 21 === Config file ===