|
|
|
Glance requires a Unix-like system such as Linux or Mac OSX and python 2.7.
|
|
|
|
Glance requires a Unix-like system such as Linux or Mac OSX and python 3.6.
|
|
|
|
|
|
|
|
Setting up the Environment for Glance
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
Glance relies on python 2.7 and several freely available libraries. There are multiple ways to get these prerequisites, but we recommend that you try the Anaconda installation instructions first.
|
|
|
|
Glance relies on python 3.6 and several freely available libraries. There are multiple ways to get these prerequisites, but we recommend that you try the Anaconda installation instructions first.
|
|
|
|
|
|
|
|
If you are working on an SSEC server there may already be a pre-built installation of Glance's prerequisites available. Check with TC for your specific server if you are unsure.
|
|
|
|
|
| ... | ... | @@ -12,29 +12,36 @@ You will also need to install the appropriate python modules to load the sorts o |
|
|
|
Installing Glance Using Anaconda
|
|
|
|
--------------------------------
|
|
|
|
|
|
|
|
You will need to have the python 2.7 version of Anaconda installed for these instructions. You can download a desktop version of Anaconda here (https://www.continuum.io/downloads).
|
|
|
|
You will need to have the python 3.7 version of Anaconda installed for these instructions. You can download a desktop version of Anaconda here (https://www.anaconda.com/products/individual).
|
|
|
|
|
|
|
|
On SSEC servers you use this command to load a pre-installed version of Anaconda:
|
|
|
|
|
|
|
|
module load anaconda27
|
|
|
|
|
|
|
|
If this does not work on an SSEC server you can also try:
|
|
|
|
|
|
|
|
module load miniconda/2.7-base
|
|
|
|
If you are working on the SSEC servers there may be a pre-installed version o Anaconda available. Check with TC if you aren't sure what's on the server you're using.
|
|
|
|
|
|
|
|
Once you have Anaconda installed, run the following commands on the command line:
|
|
|
|
|
|
|
|
conda create -n glance python=2.7 anaconda
|
|
|
|
source activate glance
|
|
|
|
conda remove navigator-updater
|
|
|
|
conda install basemap netcdf4 h5py pyqt=4.11.4 mock scipy pillow
|
|
|
|
conda install -c http://sips.ssec.wisc.edu/conda python-hdf4
|
|
|
|
# on Mac OSX, you will need to use "conda install -c NSIDC python-hdf4" instead
|
|
|
|
conda create -n glance python=3.6 anaconda
|
|
|
|
conda activate glance
|
|
|
|
|
|
|
|
conda install numpy matplotlib mako mock scipy pillow
|
|
|
|
conda install -c conda-forge cartopy
|
|
|
|
|
|
|
|
# if you want to use the gui
|
|
|
|
conda install pyqt
|
|
|
|
|
|
|
|
# install some or all of these libraries for opening various types of files
|
|
|
|
# for hdf 4 files (.hdf)
|
|
|
|
conda install -c conda-forge pyhdf
|
|
|
|
# for netCDF files (.nc)
|
|
|
|
conda install netcdf4
|
|
|
|
# for hdf 5 files (.h5)
|
|
|
|
conda install h5py
|
|
|
|
# for GeoTIFF files (.tif)
|
|
|
|
conda install -c conda-forge gdal
|
|
|
|
|
|
|
|
python -m easy_install -U -vi http://larch.ssec.wisc.edu/eggs/repos uwglance
|
|
|
|
|
|
|
|
This will create an Anaconda environment called "glance" that can be used to run Glance at the command line. When you open a new terminal session with your computer to use glance you will need to activate this environment using the command:
|
|
|
|
|
|
|
|
source activate glance
|
|
|
|
conda activate glance
|
|
|
|
|
|
|
|
If you need a developer installation of Glance, you will follow most of the same instructions as above, but you will also need to be able to use git on the command line.
|
|
|
|
|
| ... | ... | @@ -45,6 +52,10 @@ Replace the final "python -m easy_install ..." command in the installation instr |
|
|
|
cd ./UW-Glance/pyglance
|
|
|
|
python setup.py develop
|
|
|
|
|
|
|
|
**Please note that Methods below this line may not work. They have not been tested since Glance moved to using Python 3.6.**
|
|
|
|
|
|
|
|
***************
|
|
|
|
|
|
|
|
Installing with Minimal Dependencies Using Pip
|
|
|
|
----------------------------------------------
|
|
|
|
|
| ... | ... | |
| ... | ... | |