APEX user manual● APEX under Ubuntu○ APEX under Windows ○ APEX configuration ○ Image calibration ○ Automated image processing ○ Manual image processing ○ Image processing monitor ○ Postprocessing ○ Ephemeris calculation ○ Satellite light curve analysis |
Installation under UbuntuThis describes the APEX installation from source files under Linux Ubuntu. To use the latest version of APEX, Ubuntu has to be version 16.04 LTS or later. This description assumes that Python 3 is already available on your system. This description is valid for the APEX version 2021.01.4. All installation commands given below in this description (highlighted with gray background colour) must be executed in the terminal (on command line) which can be opened by pressing the key combination Ctrl+Alt+T on the keyboard. Installation of dependencies: relevant system-wide packagesInstall all packages: sudo apt install build-essential gfortran python3-dev python3-tk Installation of dependencies: relevant Python packagesTo make the installation of these dependencies simple, first install the python-pip package: sudo apt install python3-pip And update it: pip3 install --upgrade pip Then install all packages: sudo pip3 install -U cython numpy scipy astropy numba dask dask-image matplotlib To use APEX GUI (graphical user interface), install: sudo pip3 install -U pillow pyopengl exifread rawpy And (WARNING: this description of wxpython installation needs to be updated to Python 3): sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev sudo pip install -U wxpython Installation of dependencies: star cataloguesFor astrometric & photometric reduction as well as for object identification during image processing at least one star catalogue must be available for reference. It is possible to use different star catalogues for either of the two reductions. The catalogue priority system allows to use multiple star catalogues one after another in case the higher priority catalogue fails. To use the Tycho-2 catalogue, create the folder Tycho-2 anywhere in the user's home directory, e.g.: mkdir ~/catalogs/Tycho-2 And put there all four files of the Tycho-2 catalogue: index.dat, suppl_1.dat, suppl_2.dat and tyc2.dat. If necessary, in a similar way create folders for other star catalogues, e.g. for UCAC5: mkdir ~/catalogs/UCAC5 And put there all catalogue files. Installation of dependencies: satellite orbit cataloguesFor object identification and ephemeris calculation during artificial satellite image processing at least one satellite orbit catalogue must be available for reference. It is possible to use satellite orbit catalogues in TLE and ISON formats. The catalogue priority system allows to use multiple satellite orbit catalogues one after another in case the higher priority catalogue fails. To use the TLE orbit catalogues, create the folder TLE anywhere in the user's home directory, e.g.: mkdir ~/catalogs/TLE And put there all TLE catalogue files. To use the ISON orbit catalogues, create the folder ISON anywhere in the user's home directory, e.g.: mkdir ~/catalogs/ISON And put there all ISON catalogue files. Installation of APEX main packageGo to the folder where the tarball apex-2021.01.4.tar.gz is stored and unpack it: tar xvzf apex-2021.01.4.tar.gz A new folder apex-2021.01.4 will be created with subfolders and files unpacked into it. Change to that folder: cd apex-2021.01.4 Build it: python3 apex-setup.py build Install it (notice the sudo command!): sudo python3 apex-setup.py install Installation of APEX EP packageNotice: Installation of APEX EP package must be done only, if you plan to use APEX for exoplanet image processing. Go to the folder where the tarball apex-ep-1.2.5.tar.gz is stored and unpack it: tar xvzf apex-ep-1.2.5.tar.gz A new folder apex-ep-1.2.5 will be created with subfolders and files unpacked into it. Change to that folder: cd apex-ep-1.2.5 Build it: python3 apex-ep-setup.py build Install it (notice the sudo command!): sudo python3 apex-ep-setup.py install Installation of APEX GEO packageNotice: Installation of APEX GEO package must be done only, if you plan to use APEX for artificial satellite image processing. Go to the folder where the tarball apex-geo-4.3.2.tar.gz is stored and unpack it: tar xvzf apex-geo-4.3.2.tar.gz A new folder apex-geo-4.3.2 will be created with subfolders and files unpacked into it. Change to that folder: cd apex-geo-4.3.2 Build it: python3 apex-geo-setup.py build Install it (notice the sudo command!): sudo python3 apex-geo-setup.py install Installation of APEX GUI packageNotice: Installation of APEX GUI package must be done only, if you plan to use APEX with a graphical user interface. Go to the folder where the tarball apex-gui-0.10.4.tar.gz is stored and unpack it: tar xvzf apex-gui-0.10.4.tar.gz A new folder apex-gui-0.10.4 will be created with subfolders and files unpacked into it. Change to that folder: cd apex-gui-0.10.4 Build it: python3 apex-gui-setup.py build Install it (notice the sudo command!): sudo python3 apex-gui-setup.py install Installation of APEX MP packageNotice: Installation of APEX MP package must be done only, if you plan to use APEX for minor planet image processing. Go to the folder where the tarball apex-mp-2.1.5.tar.gz is stored and unpack it: tar xvzf apex-mp-2.1.5.tar.gz A new folder apex-mp-2.1.5 will be created with subfolders and files unpacked into it. Change to that folder: cd apex-mp-2.1.5 Build it: python3 apex-mp-setup.py build Install it (notice the sudo command!): sudo python3 apex-mp-setup.py install Usage under UbuntuAPEX must be configured prior to the usage of most of its scripts; only in rare cases default values of configuration options will be acceptable. All APEX scripts are located in the folder: /usr/local/bin/ To run an APEX script either with default option values or with option values given in the configuration file (apex.conf): script_name.py To run an APEX script with temporary user-defined option values without changing them in the configuration file and overriding the default values: script_name.py option1=value option2=value Some APEX scripts require or allow parameters on command line, e.g.: apex_geo_ephem.py 2019-03-18 20:00 Full usage description of each APEX script is given in the docstring section (text section between triple quotation marks: """text""") of the corresponding .py file; to view the .py file open it in any ASCII editor, e.g.: gedit /usr/local/bin/apex_calibrate.py Some of the APEX scripts allow to view their docstrings from the terminal by: script_name.py -? Upgrade under UbuntuTo upgrade installed APEX to a newer version, update all dependent Python packages and repeat the same installation steps for each required APEX package as in the first-time installation. During the upgrade the configuration file will be automatically updated. last updated: 04.04.2022 |