This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:uvcdat:extra [2015/09/11 14:05] jypeter |
other:uvcdat:extra [2015/10/16 12:56] jypeter Added the PIL/pillow section |
||
---|---|---|---|
Line 3: | Line 3: | ||
This page lists the packages (usually) installed in the LSCE-IPSL CDAT versions that are not available in the standard UV-CDAT (i.e. there are no //ccmake// configuration switches to get them installed). | This page lists the packages (usually) installed in the LSCE-IPSL CDAT versions that are not available in the standard UV-CDAT (i.e. there are no //ccmake// configuration switches to get them installed). | ||
+ | |||
+ | ===== PIL and pillow ===== | ||
+ | |||
+ | FIXME **Clean this section!** FIXME | ||
+ | |||
+ | PIL does not seem to be maintained any longer and should be replaced by pillow | ||
+ | |||
+ | * Web site: https://pillow.readthedocs.org/ | ||
+ | * Required by: basemap | ||
+ | * implicitely used by basemap to [[http://matplotlib.org/basemap/users/geography.html|plot etopo, bluemarble, etc]] | ||
+ | |||
+ | === Replacing PIL with pillow === | ||
+ | |||
+ | [[http://stackoverflow.com/questions/8915296/python-image-library-fails-with-message-decoder-jpeg-not-available-pil|More information]] | ||
+ | |||
+ | <code>pip uninstall PIL | ||
+ | pip install pillow | ||
+ | </code> | ||
+ | |||
+ | === Testing === | ||
+ | |||
+ | Check the installed version with | ||
+ | |||
+ | <code>python -c 'import PIL; print dir(PIL)' | ||
+ | ['PILLOW_VERSION', 'VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_plugins'] | ||
+ | </code> | ||
+ | |||
+ | Use one of the [[http://matplotlib.org/basemap/users/geography.html|basemap examples]] to check if everything is working | ||
+ | |||
+ | <code>from mpl_toolkits.basemap import Basemap | ||
+ | import matplotlib.pyplot as plt | ||
+ | # setup Lambert Conformal basemap. | ||
+ | # set resolution=None to skip processing of boundary datasets. | ||
+ | m = Basemap(width=12000000,height=9000000,projection='lcc', | ||
+ | resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.) | ||
+ | m.bluemarble() | ||
+ | plt.show() | ||
+ | </code> | ||
===== python-dateutil ===== | ===== python-dateutil ===== | ||
Line 13: | Line 51: | ||
^ UV-CDAT\\ version ^ JYP\\ installation ^ Package\\ version ^ Date ^ | ^ UV-CDAT\\ version ^ JYP\\ installation ^ Package\\ version ^ Date ^ | ||
| 1.5.1 | LSCE_10 | <del>1.5-mpl</del>\\ 2.4.2 | ? (//bundled?//)\\ Sep 11 2015 (with pandas) | | | 1.5.1 | LSCE_10 | <del>1.5-mpl</del>\\ 2.4.2 | ? (//bundled?//)\\ Sep 11 2015 (with pandas) | | ||
- | | 1.5.1 | VB_10 | 1.5-mpl | ? (//bundled?//) | | + | | 1.5.1 | VB_10 | <del>1.5-mpl</del>\\ 2.4.2 | <del>? (//bundled?//)</del>\\ Sep 11 2015 (with pandas) | |
| 2.1.0 | LSCE_13 | 2.2 | ? (//bundled?//) | | | 2.1.0 | LSCE_13 | 2.2 | ? (//bundled?//) | | ||
| 2.1.0 | VB_13 | 2.2 | ? (//bundled?//) | | | 2.1.0 | VB_13 | 2.2 | ? (//bundled?//) | | ||
Line 19: | Line 57: | ||
==== Installing ==== | ==== Installing ==== | ||
- | //Bundled?// | + | * //Bundled with another package?// |
+ | * A newer version of python-dateutil was installed during [[#pandas]] installation in the //old// CDAT 1.5.1... | ||
==== Testing ==== | ==== Testing ==== | ||
Line 54: | Line 93: | ||
^ UV-CDAT\\ version ^ JYP\\ installation ^ Package\\ version ^ Date ^ | ^ UV-CDAT\\ version ^ JYP\\ installation ^ Package\\ version ^ Date ^ | ||
- | | 1.5.1 | LSCE_10 | | | | + | | 1.5.1 | LSCE_10 | 0.16.2 | Sep 11 2015 | |
- | | 1.5.1 | VB_10 | | | | + | | 1.5.1 | VB_10 | 0.16.2 | Sep 11 2015 | |
- | | 2.1.0 | LSCE_13 | | | | + | | 2.1.0 | LSCE_13 | 0.16.2 | Sep 11 2015 | |
- | | 2.1.0 | VB_13 | | | | + | | 2.1.0 | VB_13 | 0.16.2 | Sep 11 2015 | |
=== Installing === | === Installing === | ||
- | * dependencies: | + | * Dependencies: |
* [[#numpy]] >= 1.7.0 | * [[#numpy]] >= 1.7.0 | ||
* [[#python_dateutil]] >= 1.5 | * [[#python_dateutil]] >= 1.5 | ||
* [[#pytz]] | * [[#pytz]] | ||
+ | * Optional dependencies (http://pandas.pydata.org/pandas-docs/version/0.16.2/install.html#dependencies): not checked! | ||
* ''pip install pandas'' | * ''pip install pandas'' | ||
* JYP install: ''setenv mydate `date +"%Y%m%d_%H%M"` ; setenv mylogf $ALL_LOGS_DIR/pandas_install_${CDAT_ID}_${mydate}.log ; ( /usr/bin/nohup /usr/bin/time pip install pandas > & $mylogf & ) ; sleep 10 ; tail -n +1 -f $mylogf'' | * JYP install: ''setenv mydate `date +"%Y%m%d_%H%M"` ; setenv mylogf $ALL_LOGS_DIR/pandas_install_${CDAT_ID}_${mydate}.log ; ( /usr/bin/nohup /usr/bin/time pip install pandas > & $mylogf & ) ; sleep 10 ; tail -n +1 -f $mylogf'' | ||
Line 71: | Line 111: | ||
=== Testing === | === Testing === | ||
+ | Check the installed version with: ''python -c 'import pandas; print pandas.%%__version__%%' '' | ||
===== rpy2 ===== | ===== rpy2 ===== |