This project computes the Field of View (FOV) and Ground Sampling Distance (GSD) for a space-borne sensor based on its sensor width, focal length, and altitude.
The calculations use the following equations:
$\text{FOV} = 2 \times \arctan\left(\frac{\text{sensor width}}{2 \times \text{focal length}}\right)$ - $\text{FOV}\text{deg} = \text{FOV}\text{rad} \times \frac{180}{\pi}$
$\text{GSD} = \text{altitude} \times \tan\left(\frac{\text{FOV}_\text{rad}}{2}\right)$
Clone the repository and install dependencies:
pip install -r requirements.txtRun the CLI script with sensor width (mm), focal length (mm), and altitude (m):
python fov_gsd_cli.py <sensor_width_mm> <focal_length_mm> <altitude_m>Example:
python fov_gsd_cli.py 36 50 500000Launch Jupyter and open field_of_view_Calcs.ipynb for an interactive version of the calculations.
The CLI example above outputs something like:
FOV: 39.60 degrees
GSD: 180000.00 m
Optionally, you can generate plots or screenshots from the notebook to visualize FOV and GSD relationships.