|
|
Glance requires a Unix-like system such as Linux or Mac OSX and python 3.6.
|
|
Glance requires a Unix-like system such as Linux or Mac OSX and python >=3.9 (preferably 3.11).
|
|
|
|
|
|
|
|
Setting up the Environment for Glance
|
|
Setting up the Environment for Glance
|
|
|
=====================================
|
|
=====================================
|
|
|
|
|
|
|
|
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.
|
|
Glance relies on python and several freely available libraries. There are multiple ways to get these prerequisites, but we recommend that you try the [MambaForge](https://github.com/conda-forge/miniforge#mambaforge) 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.
|
|
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.
|
|
|
|
|
|
|
|
You will also need to install the appropriate python modules to load the sorts of files you want Glance to analyze. If you do not install the netcdf4 module for example, Glance will not be able to open NetCDF files for analysis.
|
|
You will also need to install the appropriate python modules to load the sorts of files you want Glance to analyze. If you do not install the netcdf4 module for example, Glance will not be able to open NetCDF files for analysis.
|
|
|
|
|
|
|
|
Installing Glance Using Anaconda
|
|
Installing Glance Using MambaForge
|
|
|
--------------------------------
|
|
--------------------------------
|
|
|
|
|
|
|
|
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).
|
|
You will need to have the python 3.10 version of MambaForge installed for these instructions. You can download a pre-built version of here (https://github.com/conda-forge/miniforge#mambaforge).
|
|
|
|
|
|
|
|
If you are working on the SSEC servers there may be a pre-installed version of Anaconda available. Check with TC if you aren't sure what's on the server you're using.
|
|
If you are working on the SSEC servers there may be a pre-installed version of MambaForge or MiniForge 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:
|
|
Once you have MambaForge installed, run the following commands on the command line:
|
|
|
|
|
|
|
|
conda create -n glance python=3.6 anaconda
|
|
mamba create -n glance_user python=3.11 numpy matplotlib mako mock scipy pillow cartopy pyqt netcdf4 h5py pip
|
|
|
conda activate glance
|
|
mamba activate glance_user
|
|
|
|
|
pip install -v --extra-index-url https://larch.ssec.wisc.edu/eggs/repos uwglance
|
|
|
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
|
|
This will create an 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:
|
|
|
# for netCDF and hdf 4 files (.nc & .hdf)
|
|
|
|
|
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
|
|
mamba activate glance
|
|
|
|
|
|
|
|
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:
|
|
Development Install Using MambaForge
|
|
|
|
|
----------------------------------
|
|
|
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.
|
|
If you need a **developer installation** of Glance, you will follow similar instructions as above to install MambaForge, but you will also need to be able to use git on the command line.
|
|
|
|
|
|
|
|
Replace the final "python -m easy_install ..." command in the installation instructions above with:
|
|
Use the following installation instructions instead:
|
|
|
|
|
|
|
|
|
mamba create -n glance python=3.11 numpy matplotlib mako mock scipy pillow cartopy pyqt netcdf4 h5py pip build
|
|
|
|
mamba activate glance
|
|
|
(cd to the directory where you want the Glance code installed)
|
|
(cd to the directory where you want the Glance code installed)
|
|
|
git clone git@gitlab.ssec.wisc.edu:evas/UW-Glance.git
|
|
git clone git@gitlab.ssec.wisc.edu:evas/UW-Glance.git
|
|
|
cd ./UW-Glance/pyglance
|
|
cd ./UW-Glance
|
|
|
python setup.py develop
|
|
pip install -e .
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
**Note: Everything below is out of date.**
|
|
|
|
|
|
|
|
|
|
|
|
|
Development Install Using Anaconda
|
|
Development Install Using Anaconda
|
| ... | |
... | |
| ... | | ... | |