User Tools

Site Tools


other:uvcdat:cdat_conda:cdat_8_0_py2

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
Previous revision
Next revision Both sides next revision
other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/03/04 17:23]
jypeter
other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/03/13 13:54]
jypeter
Line 382: Line 382:
     * ''​conda install -n cdatm17_py2 -c stefraynaud -c conda-forge spanlib''​     * ''​conda install -n cdatm17_py2 -c stefraynaud -c conda-forge spanlib''​
     * Test: ''​python -c 'from spanlib.analyzer import Analyzer'​ ''​     * Test: ''​python -c 'from spanlib.analyzer import Analyzer'​ ''​
 +  ​
 +  * [[https://​climaf.readthedocs.io/​en/​latest/​|CliMAF]]:​ a Climate Model Assessment Framework
 +    * [[other:​uvcdat:​cdat_conda:​climaf_install|Installation notes]]
  
 ==== TODO ==== ==== TODO ====
Line 391: Line 394:
  
   * [[http://​wrf-python.readthedocs.io/​en/​latest/​|wrf-python]]:​ A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model   * [[http://​wrf-python.readthedocs.io/​en/​latest/​|wrf-python]]:​ A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model
-    * ''​conda install -n cdatm15 ​-c conda-forge wrf-python''​+    * ''​conda install -n cdatxxx ​-c conda-forge wrf-python''​
    
   * [[https://​glances.readthedocs.io/​en/​stable/​index.html|glances]]:​ a cross-platform monitoring tool (similar to ''​top''​)   * [[https://​glances.readthedocs.io/​en/​stable/​index.html|glances]]:​ a cross-platform monitoring tool (similar to ''​top''​)
-    * ''​conda install -n cdatm15 ​-c conda-forge glances''​+    * ''​conda install -n cdatxxx ​-c conda-forge glances''​
     * [[https://​github.com/​nicolargo/​glances|glances@github]]     * [[https://​github.com/​nicolargo/​glances|glances@github]]
  
Line 408: Line 411:
  
   * [[https://​cmor.llnl.gov/​|CMOR]]   * [[https://​cmor.llnl.gov/​|CMOR]]
-    * Update with: ''​conda update -n cdatm15 ​-c conda-forge -c pcmdi -c uvcdat cmor''​+    * Update with: ''​conda update -n cdatxxx ​-c conda-forge -c pcmdi -c uvcdat cmor''​
       * Get version number with: ''​python -c 'from cmor import *; print CMOR_VERSION_MAJOR,​ CMOR_VERSION_MINOR,​ CMOR_VERSION_PATCH'​ ''​       * Get version number with: ''​python -c 'from cmor import *; print CMOR_VERSION_MAJOR,​ CMOR_VERSION_MINOR,​ CMOR_VERSION_PATCH'​ ''​
  
Line 414: Line 417:
     * Update with: ''​pip install %%--%%upgrade dreqPy''​     * Update with: ''​pip install %%--%%upgrade dreqPy''​
       * Get version number with: ''​drq -v''​       * Get version number with: ''​drq -v''​
 +
 +==== Installing CLIMAF ====
 +
 +The [[https://​climaf.readthedocs.io/​|CLIMAF]] installation is a special case, because we may want to use it with the Python installed for CDAT, but it is not installed using conda
 +
 +We follow the steps for the [[https://​climaf.readthedocs.io/​en/​latest/​installing.html#​installing-climaf-if-you-are-not-at-cnrm-on-ciclad-or-climserv|installation of a non-standard server]]
 +
 +  * Go to the appropriate installation directory (we choose the directory where we have also installed miniconda3):​
 +    * LSCE: ''​cd /​home/​share/​unix_files/​cdat''​
 +    * ciclad: ''/​data/​jypmce/​cdat/''​
 +  * ''​git clone https://​github.com/​senesis/​climaf climaf''​
 +  * Add CLIMAF to the PYTHONPATH environment variable
 +    * LSCE & tcsh: ''​setenv PYTHONPATH ${PYTHONPATH}:/​home/​share/​unix_files/​cdat/​climaf''​
 +    * LSCE & bash: ''​export PYTHONPATH=${PYTHONPATH}:/​home/​share/​unix_files/​cdat/​climaf''​
 +    * ciclad: same as above, using ''/​data/​jypmce/​cdat/​climaf''​
 +  * Test the installation
 +    * make sure the [[https://​climaf.readthedocs.io/​en/​latest/​requirements.html#​requirements|Requirements]] are available:
 +      * LSCE: ''​module load netcdf/4 nco cdo ncl ncview''​
 +      * ciclad: ''​module load netcdf4 nco cdo ncl/​6.3.0''​
 +      * optional: start an X server
 +      * <​code>​cd climaf/​testing
 +./​test_install.sh</​code>​
 +  * Once the tests are OK, add the required //module load// and environment variables definitions to the ''​.basrc''​ and ''​.cshrc''​ files. <wrap hi>Note: maybe these lines should go to the ''​.profile''​ and ''​.login''​ files...(check [[https://​www.gnu.org/​software/​bash/​manual/​html_node/​Bash-Startup-Files.html|Bash Startup Files]])</​wrap> ​
 +    * LSCE: add to your .cshrc
 +      * <​code>#​ Prerequisites for using CLIMAF
 +module load netcdf/4 nco cdo ncl ncview
 +
 +# CLIMAF environment variables
 +setenv CLIMAF /​home/​share/​unix_files/​cdat/​climaf
 +setenv PYTHONPATH "​${PYTHONPATH}:​${CLIMAF}"​
 +#setenv PYTHONPATH $CLIMAF
 +setenv PATH "​${PATH}:​${CLIMAF}/​bin"​
 +setenv CLIMAF_CACHE "/​home/​scratch01/​${USER}/​climaf_cache"​
 +setenv TMPDIR $CLIMAF_CACHE
 +setenv CLIMAF_LOG_DIR $CLIMAF_CACHE
 +
 +#conda activate cdatm-nightly_py2</​code>​
 +    * ciclad: add to your .bashrc
 +      * <​code>#​ Prerequisites for using CLIMAF when not using the 
 +# default '​module load climaf'​
 +module load netcdf4 nco cdo ncl/6.3.0
 +
 +# CLIMAF environment variables
 +export CLIMAF=/​data/​jypmce/​cdat/​climaf
 +#export PYTHONPATH=$PYTHONPATH:​$CLIMAF
 +export PYTHONPATH=$CLIMAF
 +export PATH=$PATH:​$CLIMAF/​bin
 +export CLIMAF_CACHE=/​data/​jypmce/​climaf_cache
 +export TMPDIR=$CLIMAF_CACHE
 +export CLIMAF_LOG_DIR=$CLIMAF_CACHE
 +
 +#conda activate cdatm-nightly_py2
 +</​code>​
 +  * Open a new shell and <wrap em>run the tests again</​wrap>​. If there is an error that was not there, check what you have added to the shell init files
 +  * [[other:​uvcdat:​cdat_conda:​climaf_test|Test CLIMAF on ciclad]]
  
 ==== Cleaning up things ==== ==== Cleaning up things ====
Line 461: Line 519:
  
 ^  Environment\\ name  ^  Server ​ ^  ''​conda list'' ​ ^ ^  Environment\\ name  ^  Server ​ ^  ''​conda list'' ​ ^
-| cdat-8.0_py2 |  LSCE\\ ciclad ​ | | +| cdat-8.0_py2 |  LSCE  | | 
-| cdatm17_py2 |  LSCE\\ ciclad  ​| |+| cdatm17_py2 |  LSCE | |
 | cdat-nightly_py2 |  LSCE\\ ciclad ​ | | | cdat-nightly_py2 |  LSCE\\ ciclad ​ | |
 | cdatm-nightly_py2 |  LSCE\\ ciclad ​ | | | cdatm-nightly_py2 |  LSCE\\ ciclad ​ | |
other/uvcdat/cdat_conda/cdat_8_0_py2.txt · Last modified: 2021/02/27 13:55 by jypeter