Changes between Version 4 and Version 5 of Procedures/HyperspectralCalibrationCreation


Ignore:
Timestamp:
Sep 21, 2015, 5:11:05 PM (9 years ago)
Author:
dac
Comment:

Changed instructions on adding to path to make clear this is only needed for development version

Legend:

Unmodified
Added
Removed
Modified
  • Procedures/HyperspectralCalibrationCreation

    v4 v5  
    99Relevant scripts are held in the arsf git repository under tools/libarsfcal.
    1010
    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.
     11Note 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:
    1212
    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
    1615
    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.
     16You can check the location of the library you are using with:
     17{{{
     18python -c "import libarsfcal;print(libarsfcal.__file__)"
     19}}}
    1820
    1921=== Config file ===