UAV Solar-Sensor Angle Calculation
Table of Contents
About The Project
Calculating solar-sensor zenith and azimuth angles for hyperspectral images collected by UAVs are important in terms of conducting bi-directional reflectance function (BRDF) correction or radiative transfer modeling-based applications in remote sensing. These applications are even more necessary to perform high-throughput phenotyping and precision agriculture tasks. This study demonstrates an automated Python framework that can calculate the solar-sensor zenith and azimuth angles for a push-broom hyperspectral camera equipped in a UAV. First, the hyperspectral images were radiometrically and geometrically corrected. Second, the high-precision Global Navigation Satellite System (GNSS) and Inertial Measurement Unit (IMU) data for the flight path was extracted and corresponding UAV points for each pixel were identified. Finally, the angles were calculated using spherical trigonometry and linear algebra.
Built With
The project is built with many open source Python packages. However, following libraries are the backbone of the project:
Getting Started
To get a local copy up and running follow these simple example steps.
Prerequisites
For this project, anaconda
is suggested. Create a virtual environment in anaconda
using Python 3x
.
Set up the notebooks
- Create a separate environment in
conda
. - Install all the packages required using either
pip
orconda
. - Clone the repo
- Open the notebooks in the
notebooks
folder. Use the two notebooks chronologically.
Datasets
The dataset provided for testing the codes is provided in Google Drive. Please follow this link to download the dataset and then place it in the data folder of your repository. The folder contains a HSI cube and the IMU_GPS data in txt format.
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.