Skip to content

tomchor/pynanigans

Repository files navigation

pynanigans

Python scripts for Oceananigans.jl NetCDF output

Installation

Using pip

You can install pynanigans directly from the repository:

pip install git+https://github.com/yourusername/pynanigans.git

Or install from a local clone:

git clone https://github.com/yourusername/pynanigans.git
cd pynanigans
pip install -e .

Using conda

If you prefer using conda, you can create an environment with all dependencies:

# Clone the repository
git clone https://github.com/yourusername/pynanigans.git
cd pynanigans

# Create and activate conda environment
conda env create -f environment.yml
conda activate p39

# Install the package
pip install -e .

Dependencies

The package requires:

  • Python >= 3.9
  • numpy
  • xarray
  • xgcm
  • matplotlib

Development

To set up a development environment:

  1. Clone the repository:
git clone https://github.com/yourusername/pynanigans.git
cd pynanigans
  1. Create a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
  1. Install development dependencies:
pip install pytest pytest-cov
  1. Run tests:
pytest tests/

License

See the LICENSE file for details.

About

Python scripts for Oceananigans.jl NetCDF output

Resources

License

Stars

Watchers

Forks

Packages

No packages published