Installation¶
Coregix is published as a Python package and can be installed with pip.
Requirements¶
Coregix requires Python 3.9 or newer. Runtime dependencies are installed with the package:
rasterionumpyaffineitk-elastix
For most users, installing from PyPI is the right starting point.
Install From PyPI¶
1 | |
This installs the Python API and the vhr-align-image-pair command-line entrypoint.
Docker¶
Coregix can also be built and run as a Docker image:
1 | |
Release images are published to Docker Hub as iosefa/coregix:
1 | |
Run the alignment command by mounting a directory that contains your rasters:
1 2 3 4 5 6 | |
If you built the image locally, use coregix instead of iosefa/coregix:latest.
The container entrypoint is vhr-align-image-pair, so any CLI option can be passed directly after the image name.
Verify The Install¶
Check the command-line entrypoint:
1 | |
You can also run the CLI module directly:
1 | |
Developer Install¶
For local development, clone the repository and create the conda environment:
1 2 3 4 | |
The environment installs Coregix in editable mode with the documentation extra enabled:
1 | |
You do not need to run that command separately when using environment.yml.
If you already have a compatible environment and only want the editable package install:
1 | |
To include documentation dependencies in an existing environment:
1 | |
Preview The Documentation¶
Run the local documentation server from the repository root:
1 | |
Open http://127.0.0.1:8000 in a browser. MkDocs watches the documentation files and refreshes the site after edits.
To build the static site:
1 | |
The generated HTML is written to site/.