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
=====================================
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.
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:
# install some or all of these libraries for opening various types of files
# 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
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:
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:
conda activate glance
Development Install Using MambaForge
----------------------------------
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: