Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/03/04 18:04] – jypeter | other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/03/06 10:18] – jypeter |
---|
* Update with: ''pip install %%--%%upgrade dreqPy'' | * Update with: ''pip install %%--%%upgrade dreqPy'' |
* Get version number with:\\ <code>$ drq -v | * Get version number with:\\ <code>$ drq -v |
dreqPy version 01.00.06 [Version 01.00.06]</code> | dreqPy version 01.00.29 [Version 01.00.29]</code> |
| |
The following packages have no dependency problems and were installed (or updated) //later// | The following packages have no dependency problems and were installed (or updated) //later// |
| |
| * [[http://www.ifremer.fr/vacumm/|vacumm]]: Validation, Analysis, Comparison - Utilities written in Python to validate and analyze Multi-Model outputs, and compare them to observations |
| * ''conda install -n cdatm17_py2 -c conda-forge -c vacumm vacumm'' |
| |
* [[https://github.com/stefraynaud/spanlib|spanlib]]: Spectral Analysis Library | * [[https://github.com/stefraynaud/spanlib|spanlib]]: Spectral Analysis Library |
* ''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' '' |
| |
| ==== TODO ==== |
| |
| //Add here packages that would be useful and have not been installed yet, or have some problems that prevent their installation// |
| |
| * [[http://scitools.org.uk/iris/index.html|iris]]: A Python library for Meteorology and Climatology |
| * ''conda install -n cdatxxx -c conda-forge iris'' |
| |
* [[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 cdatm15 -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 cdatm15 -c conda-forge glances'' |
* [[https://github.com/nicolargo/glances|glances@github]] | * [[https://github.com/nicolargo/glances|glances@github]] |
| |
==== TODO ==== | |
| |
//Add here packages that would be useful but have some problems that prevent their installation// | |
| |
| |
* [[http://www.ifremer.fr/vacumm/|vacumm]]: Validation, Analysis, Comparison - Utilities written in Python to validate and analyze Multi-Model outputs, and compare them to observations | |
* As of August 08 2017, installing vacumm in 2.10 requires downgrading to 2.10 (see [[https://github.com/VACUMM/vacumm/issues/9|github issue]])! | |
* <wrap hi>Problem solved</wrap> with **vacumm 3.4.1-1** on August 31st! Installation was OK with\\ ''conda install -n cdatm15 -c conda-forge -c vacumm vacumm'' | |
| |
==== Other packages ==== | ==== Other packages ==== |
* 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 |
| |
==== Cleaning up things ==== | ==== Cleaning up things ==== |
| |
We check if some of the installed files are missing read access for the //group// or //other//, and we manually change the permissions | We check if some of the installed files are missing read access for the //group// or //other//, and we manually change the permissions |
<code>(cdatm15) bash-4.2$ find cdatm15 \! -perm /g+r,o+r -ls | <code> >find /home/share/unix_files/cdat/miniconda3/envs \! -perm /g+r,o+r -ls |
[...] | # Everything OK!</code> |
(cdatm15) bash-4.2$ chmod -R a+r cdatm15/lib/python2.7/site-packages/cdp* | |
(cdatm15) bash-4.2$ find cdatm15 \! -perm /g+r,o+r -ls</code> | |
| |
| |
* [[https://rpy2.readthedocs.io/en/version_2.8.x/|rpy2]]: providing simple and robust access to R from within Python | * [[https://rpy2.readthedocs.io/en/version_2.8.x/|rpy2]]: providing simple and robust access to R from within Python |
* [[http://matplotlib.org/cmocean/|cmocean]]: beautiful colormaps for oceanography | * [[http://matplotlib.org/cmocean/|cmocean]]: beautiful colormaps for oceanography |
* [[http://scitools.org.uk/iris/index.html|iris]]: A Python library for Meteorology and Climatology | |
* [[http://www.gdal.org/|OSGeo/GDAL]]: Geospatial Data Abstraction Library. GDAL is a translator library for raster and vector geospatial data formats | * [[http://www.gdal.org/|OSGeo/GDAL]]: Geospatial Data Abstraction Library. GDAL is a translator library for raster and vector geospatial data formats |
* [[https://pcjericks.github.io/py-gdalogr-cookbook/|Python GDAL/OGR Cookbook]] | * [[https://pcjericks.github.io/py-gdalogr-cookbook/|Python GDAL/OGR Cookbook]] |
* [[https://github.com/stefraynaud/spanlib|spanlib]]: Spectral Analysis Library | * [[https://github.com/stefraynaud/spanlib|spanlib]]: Spectral Analysis Library |
* [[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 | |
* [[https://glances.readthedocs.io/en/stable/index.html|glances]]: a cross-platform monitoring tool (similar to ''top'') | |
* [[https://ajdawson.github.io/windspharm/latest/|windspharm]]: spherical harmonic wind analysis in Python | * [[https://ajdawson.github.io/windspharm/latest/|windspharm]]: spherical harmonic wind analysis in Python |
| |
| |
^ Environment\\ name ^ Server ^ ''conda list'' ^ | ^ Environment\\ name ^ Server ^ ''conda list'' ^ |
| uvcdat-2.10 | LSCE | {{ |package list}} | | | cdat-8.0_py2 | LSCE\\ ciclad | | |
| cdatm15 | LSCE | {{ |package list}} | | | cdatm17_py2 | LSCE\\ ciclad | | |
| | cdat-nightly_py2 | LSCE\\ ciclad | | |
| | cdatm-nightly_py2 | LSCE\\ ciclad | | |
| |
/* standard page footer */ | /* standard page footer */ |