This project is an internship project realized at Tecgraf PUC-Rio, Rio de Janeiro, Brazil. It is based on Opendrift, a Python framework which allows simulations of oil drifting in the ocean (https://opendrift.github.io/index.html)
A module designed to:
- Run a large number of oil drift simulations
- Use YAML configuration files to define all simulation parameters
- Study the optimal time step for numerical integration
- Process simulation outputs and compute convergence criteria
Example on Windows OS:
py -m venv env_nameExample on Windows OS:
.\env_name\Scripts\activateInstall all the built-in packages from the requirements.txt file:
pip install -r requirements.txtInstall the required external packages:
- Opendrift (https://github.com/OpenDrift/opendrift);
- AdiosDB (https://github.com/NOAA-ORR-ERD/adios_oil_database);
- PyNUCOS (https://github.com/NOAA-ORR-ERD/PyNUCOS).
To do so:
Clone it using its HTTPS URL into a folder, named packages for example:
cd ./packages/git clone <HTTPS_URL>Navigate to the cloned package folder:
cd ./opendrift/Install it into your virtual environment (don't forget the final point):
pip install -e .Cloning the Opendrift package is sufficient as it will automatically install its dependencies, including the other two packages.