The SPyIce package is a software tool that enables 1D finite difference simulation for vertical transport equations. It specifically focuses on thermal-solute advection-diffusion with the influence of desalination mechanisms and physical properties. The package utilizes a 1D finite differences numerical algorithm solver. With SPyIce, users can model and analyze the behavior of temperature, salinity, and other relevant variables in a vertical system. It provides a comprehensive framework for studying the thermal diffusion process and its interaction with salinity in various scenarios. Hydra is used to automate the simulation runs of the Sea-Ice Model. It is used to manage and run sea ice simulations, making it easier for users to explore different scenarios and optimize their models. You can also model microalgae bloom near the sea ice-ocean interface and how nutrient transport, sunlight and radiation affects its growth with this package. Here is the link to the full documentation of SPyIce package: SPyIce documentation.
Before installing Spyice, make sure you have the following prerequisites installed:
-
Python 3.11 or above: Spyice requires Python 3.11 or above to run. You can download the latest version of Python from the official website.
-
Hatch: Hatch is a Python package manager that we'll use to create a virtual environment for Spyice. You can install Hatch by following the instructions on the official website.
-
Sphinx: Sphinx is a documentation generator that we'll use to build the Spyice documentation. You can install Sphinx using the appropriate package manager for your system by following the instructions on the official website.
Follow these steps to install Spyice and set up the environment using hatch:
-
Clone this project repository to your local machine.
-
(Optional) The required wheels can be built with the help of
hatchwithout the worries of cross-compilation and native architecture support.hatch build
This command will build the wheels for the project and store them under the name
dist/spyice-1.0.0.dev0-py3-none-any.whl -
Create a the new default python virtual environment
hatch env create hatch shell
The project will be automatically installed in editable mode by
hatchwhen the environment is created. Confirm the installation by runningpip show spyicein the shell. -
You're all set! You can now start using Spyice.
-
You can get started with SPyIce by running the following command in the terminal:
python main_config.py
You can use the
--helpflag to see the available options and arguments.
Enter into the spyice virtual environment using hatch (mentioned in the previous steps) and enter the following commands on the terminal. You can now find the spyice package renamed as spyice-jupyter as a kernel option.
$pip install ipykernel
$python -m ipykernel install --user --name spyice --display-name "Python (spyice-jupyter)"