...
To use astro-software you should have these lines in your .bashrc so you will be able to see all the modulefiles for the configured workspaces and software.
Code Block | ||
---|---|---|
| ||
if [ -d "/cluster/apps/software/_profile" ]; then if [ -z $SOFTWARE ]; then source "/cluster/apps/software/_profile/globals.bash" fi fi if [ -d "/cluster/apps/software/.profile.d" ]; then if [ -z $SOFTWARE ]; then source "/cluster/apps/software/.profile.d/globals.bash" fi fi |
Run first ml ASTRO to load the ASTRO workspace. This will set the environment and make available the ASTRO software modulefiles for loading.
Code Block | ||
---|---|---|
| ||
#show available modules to load
[username@computername ~]$ ml av
----------------------------------------------- /cluster/apps/software/_profile/lmod/WORKSPACE -----------------------------------------
ASTRO CORE
----------------------------------------- /cluster/apps/spack/2022a/lmod/linux-fedora36-x86_64/Core ------------------------------------
# load the ASTRO module then show again the available modules
[username@computername ~]$ ml ASTRO
[username@computername ~]$ ml av
------------------------------------------- /cluster/apps/software/_profile/lmod/modulefiles/ASTRO -------------------------------------
CALDB conda+/ciao conda+/fermi (D) ds9/8.3 heasoft/6.30.1 heasoft/6.31 (D) iraf/2.17
starlink/fc36 starlink/2021A (D) trm
---------------------------------------------- /cluster/apps/software/_profile/lmod/WORKSPACE ------------------------------------------
ASTRO (L) CORE
----------------------------------------- /cluster/apps/spack/2022a/lmod/linux-fedora36-x86_64/Core ------------------------------------
anaconda3/2021.05 anaconda3/2022.05 (D) gcc/10.2.0 |
...
Some python packages are installed via anaconda (https://anaconda.cloud/package-categories/scientific). To load it type:
Code Block | ||
---|---|---|
| ||
[username@computername ~]$ ml anaconda3
#####################################################################################
#### Run "conda env list" to list all the environments
#### Load environment "conda activate env_name" where env_name is one from the list
#### Remember to run "conda deactivate" before unload/purge anaconda3
#### otherwise you will have to restart your shell to avoid possible issues
#################################################################################
[username@computername ~]$ init-conda[username@computername ~]$ conda env list
# conda environments:
#base /cluster/apps/software/anaconda3/2022.05
astroconda /cluster/apps/software/anaconda3/2022.05/envs/astroconda
astrosource /cluster/apps/software/anaconda3/2022.05/envs/astrosource
ciao /cluster/apps/software/anaconda3/2022.05/envs/ciao
fermitools /cluster/apps/software/anaconda3/2022.05/envs/fermitools
iraf /cluster/apps/software/anaconda3/2022.05/envs/iraf
phoebe /cluster/apps/software/anaconda3/2022.05/envs/phoebe
posydon /cluster/apps/software/anaconda3/2022.05/envs/posydon
python-2.7 /cluster/apps/software/anaconda3/2022.05/envs/python-2.7
[username@computername ~]$ conda activate astrosource
# after finishing your tasks either exit the terminal or, you must deactivate the
# environment before unloading/purging the loaded modulefiles
(astrosource) [username@computername ~]$ conda deactivate
[username@computername ~]$ ml purge
|
...