Both sides previous revision Previous revision Next revision | Previous revision |
en:software:howto_gdl_install [2015/01/18 03:25] – rhainich | en:software:howto_gdl_install [2024/10/09 08:09] (current) – Adjusts name of laboratory computer rhainich |
---|
===== Installation of GDL ===== | ===== Installation of GDL ===== |
| |
The software package GNU Data Language (GDL) can be downloaded at the project's homepage [[http://gnudatalanguage.sourceforge.net/|(link)]], then follow the instructions for Win / Mac / Linux to install. In common Linux distibutions (Ubuntu, Debian, ...) one can use the package management, too: | The software package //GNU Data Language// (GDL) can be downloaded from the project's [[http://gnudatalanguage.sourceforge.net/|homepage ]]. However, it is recommend to use the package manager of your Linux/Mac/BSD. On Ubuntu/Debian and their derivatives just execute: |
<code>sudo apt-get install gnudatalanguage </code> | <code>sudo apt-get install gnudatalanguage </code> |
| |
For the use in the Laboratory Courses the IDL Astro Library is also required. It can be downloaded at: | ===== IDL Astro Library ===== |
| |
| For the use in the lab courses the //IDL Astro Library// is also required. It can be downloaded at: |
| |
[[http://idlastro.gsfc.nasa.gov/homepage.html]] | [[http://idlastro.gsfc.nasa.gov/homepage.html]] |
| |
In the next step the following directories | In the next step the following directory |
| |
<code> | <code> |
/home/betreuer/opt/gdl-astrolib/astron/ | /home/user/opt/gdl-astrolib/astron/ |
</code> | </code> |
| |
should be created. Afterwards the archive (//astron//) can be unpacked there. Furthermore, it is necessary to change the following lines of the file //readfits.pro// in the directory ''pro'': | should be created. Here and in the following, ''user'' should be replaced by the name of the corresponding user account. Afterwards the archive (//astron//) can be unpacked there. Furthermore, it is necessary to change the following lines of the file //readfits.pro// in the directory ''pro'': |
| |
<code> | <code> |
</code> | </code> |
| |
in the directory ''/home/betreuer/opt/gdl-astrolib/''. Moreover, all routines that are additionally required for C7 and N2 (//correl_images.pro//, //newremove.pro//, //newsrcor.pro//, //la_cosmic.pro//, //mxaddpar.pro//, and //datatype.pro// which all can be found in the SVN) should be placed here. /*The directory //astron// and the file //fitsconvert.pro// can now be moved to an arbitrary place.*/ To use the AstroLib, create an additional start-up script that exports the paths of the libraries. This script can e.g. be saved as hidden file in the home directory (e.g. ''$HOME/.gdl_startup''). If the directory ''astron'' and the file //fitsconvert.pro// are placed in ''/home/praktikum/opt/gdl-astrolib'', the start-up script would look like: | in the directory ''/home/user/opt/gdl-astrolib/''. |
| |
| ++++ Additional routines for the lab course | |
| For the astrophysical lab course (especially for C7 and N2) the following routines are additionally required and should also be placed in ''/home/user/opt/gdl-astrolib/'': //correl_images.pro//, //newremove.pro//, //newsrcor.pro//, //la_cosmic.pro//, //mxaddpar.pro//, and //datatype.pro// (all can be found in our SVN). |
| ++++ |
| |
| === Start-up script === |
| |
| To use the //AstroLib//, create an additional start-up script that exports the paths of the libraries. This script can e.g. be saved as hidden file in the home directory (e.g. ''$HOME/.gdl_startup''). If the directory ''astron'' and the file //fitsconvert.pro// are placed in ''/home/user/opt/gdl-astrolib'', the start-up script would look like: |
| |
/*!PATH=!PATH + ':/usr/share/doc/gnudatalanguage/examples/pro'*/ | |
<code> | <code> |
!PATH=!PATH + ':/usr/bin/' | !PATH=!PATH + ':/usr/bin/' |
!PATH=!PATH + ':/home/betreuer/opt/gdl-astrolib/astron/pro' | !PATH=!PATH + ':/home/user/opt/gdl-astrolib/astron/pro' |
!PATH=!PATH + ':/home/betreuer/opt/gdl-astrolib' | !PATH=!PATH + ':/home/user/opt/gdl-astrolib' |
loadct,0, ncolor=255; | loadct,0, ncolor=255; |
!P.BACKGROUND=255; | !P.BACKGROUND=255; |
</code> | </code> |
| |
/*The first two lines contain links to the programs that were installed as example gdl programs and the executable gdl file.*/ The first line contains the link to the executable gdl file. The second/third line contains the path to the //.pro// files in the ''astron'' directory and the file //fitsconvert.pro// (adjust paths as needed). | The first line contains the link to the executable gdl file. The second/third line contains the path to the //.pro// files in the ''astron'' directory and the file //fitsconvert.pro// (adjust paths as needed). |
| |
If the start-up script is in the directory ''/home/betreuer/'', prepare it for the usage in the Bash-Shell by adding the following line | Is the start-up script located in the directory ''/home/user/'', one can prepare it for the usage in the Bash shell by adding the following line |
| |
<code> | <code> |
export GDL_STARTUP=/home/betreuer/.gdl_startup | export GDL_STARTUP=/home/user/.gdl_startup |
</code> | </code> |
| |
to the //.bashrc// script in the home directory (on a12 the last step needs to be repeated for the ''/home/praktikum/'' directory). | to the //.bashrc// script in the home directory. |
| |
| ++++ Final advice for the usage in the lab course | |
| For the laboratory computer //columba//, the installation should take place under the ''pollux'' account, while the very last step of the setup needs to be executed for the student accounts as well. Note that also for these accounts ''user'' musst be replace by ''pollux''. |
| ++++ |