User Tools

Site Tools


other:newppl:starting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
other:newppl:starting [2019/04/24 09:58]
jypeter Started the which/module section
other:newppl:starting [2019/04/24 14:45]
jypeter [Which programs should you use?] Improved section
Line 323: Line 323:
 ===== Which programs should you use? ===== ===== Which programs should you use? =====
  
-Your advisor will let you know which (version of which) programs you should use. Some programs are available by default, and you have to use the ''​module''​ command to access other programs+Your advisor will let you know which (version of which) programs you should use. Some programs are available by default, and you have to use the ''​module''​ command to access other programs.
  
-At any time, you can use the ''​which''​ command to determine where a program is located. The option to get the version information of a program may vary (launch the program without arguments, with ''​-v''​ or ''​%%--%%v''​+==== Which program am I using? ==== 
 + 
 +At any time, you can use the ''​which''​ command to determine where a program is located. The option to get the //version// information of a program may vary (launch the program without arguments, with ''​-v''​ or ''​%%--%%v''​, ...).
  
 <​code>​ > which ncdump <​code>​ > which ncdump
Line 335: Line 337:
 netcdf library version 4.3.3.1 of Dec 10 2015 16:44:18 $ netcdf library version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 + > which python
 +/​usr/​bin/​python
 +
 + > python --version
 +Python 2.7.5
 </​code>​ </​code>​
 +
 +==== Using module to access optional programs ====
 +
 +Main ''​module''​ options:
 +  * ''​module list'':​ list the currently loaded modules
 +  * ''​module avail'':​ list the available modules
 +  * ''​module load module_a ... module_n'':​ load modules (automatically including dependencies)
 +    * ''​module load module_a'':​ load default version of //​module_a//​
 +    * ''​module load module_a/​vvv'':​ load ''​vvv''​ version of //​module_a//​
 +  * ''​module purge'':​ remove all modules
 +
 +Detailed example:
 +<​code>​ > which ncview
 +ncview: Command not found.
 +
 + > module list
 +No Modulefiles Currently Loaded.
 +
 + > module avail
 +[...]
 +batch_env ​         grib_api/​1.14.0 ​   netcdf/​4 ​          ​python/​3.6
 +[...]
 +glost/​0.3.1 ​       ncview/​2.1.7 ​      ​python/​2.7
 +
 + > module load ncview netcdf/4
 +
 + > module list
 +Currently Loaded Modulefiles:​
 +  1) ncview/​2.1.7 ​  2) netcdf/4
 +  ​
 + > which ncview
 +/​usr/​local/​install/​ncview-2.1.7/​bin/​ncview
 +
 + > which ncdump
 +/​usr/​local/​install/​netcdf-4.3.2/​bin/​ncdump</​code>​
 +
 ===== Useful documentation for beginners ===== ===== Useful documentation for beginners =====
  
other/newppl/starting.txt · Last modified: 2024/04/24 12:37 by jypeter