On-Water Processing module for Python
Conda is an open-source package management and environment management system that runs on Windows, macOS, and Linux. Follow the steps below to install Conda:
-
Download the Conda Installer:
- Go to the Miniconda download page.
- Download the installer for your operating system.
-
Run the Installer:
- Windows:
- Double-click the
.exe
file you downloaded. - Follow the instructions in the setup wizard.
- Double-click the
- macOS:
- Open the Terminal.
- Run the following command:
bash ~/Downloads/Miniconda3-latest-MacOSX-x86_64.sh
- Follow the prompts on the installer screens.
- Linux:
- Open the Terminal.
- Run the following command:
bash ~/Downloads/Miniconda3-latest-Linux-x86_64.sh
- Follow the prompts on the installer screens.
- Windows:
-
Verify the Installation:
- Open a new terminal or command prompt.
- Run the following command to verify that Conda is installed:
conda --version
- Navigate to the Project Directory:
- Open a terminal or command prompt.
- Navigate to the directory containing the
environment.yml
file:
sh cd path/to/your/project
- Create the Conda Environment:
- Run the following command to create the environment from the
environment.yml
file:
sh conda env create -f environment.yml
- Activate the Conda Environment:
- Run the following command to activate the environment:
conda activate pyowp
- Run the following command to activate the environment:
-
Check Installed Packages:
- Run the following command to list the installed packages and verify that the environment is set up correctly:
conda list
- Run the following command to list the installed packages and verify that the environment is set up correctly:
-
Deactivate the Environment:
- When you are done working in the environment, you can deactivate it by running:
conda deactivate
- When you are done working in the environment, you can deactivate it by running:
- Updating the Environment:
- If you need to update the environment with new dependencies, modify the
environment.yml
file and run:
sh conda env update -f environment.yml
- Removing the Environment:
-
If you need to remove the environment, run:
conda env remove -n pyowp
-
For more information on using Conda, refer to the official Conda documentation.
With the pyowp enviroment activated open a new terminal and run the following to get helptext.
'''
python onWaterRadiometry.py -h '''
or the following to process data
''' python OnWaterRadiometryProcessing.py -i exampleData.xlsx -o processedData.xlsx '''
You have to organize your data as shown in 'exampleData.xlsx'