Installation Guide#

This section provides instructions for installing the xIndices module.

Requirements#

  • Python 3.10 - 3.12

  • numpy >= 1.26, <2.0

  • xarray

  • xeofs

  • xesmf (if needed for regridding)

  • Other dependencies can be installed automatically via pip.

Installing xIndices#

You can install xIndices directly using conda and pip both. However, we recommend conda driven installation for xIndices. Run the following command in your terminal:

Using conda (recommended):

conda create -n x_indices -c conda forge python=3.11             ##(OPTIONAL)
conda activate x_indices
conda install -c jiveshdixit -c conda-forge xindices

Using pip:

conda create -n x_indices -c conda forge python=3.11 xesmf       ##(MANDATORY)
conda activate x_indices
pip install xIndices

This will download and install the latest version of xIndices and its dependencies.

Setting Up the Development Environment#

If you want to work on xIndices’s source code or contribute to its development, you may want to clone the repository and install it in “editable” mode:

  1. Clone the repository:

    git clone https://github.com/JiveshDixit/xIndices.git
    cd xIndices
    
  2. Create and activate a virtual environment (optional but recommended):

    python -m venv env
    source env/bin/activate  # On Windows, use `env\Scripts\activate`
    

Uninstalling xIndices#

If you wish to remove xIndices from your environment, you can do so using:

pip uninstall xIndices