...

/

Getting Airfoil Coordinates

Getting Airfoil Coordinates

Develop an airfoil plotter.

You need to use the Requests and Matplotlib libraries:

import requests
import matplotlib.pyplot as plt

Organizing the program

First, you will define a get_airfoil_coordinates() function that will:

  • accept an airfoil name as an argument
  • scrape the UIUC website
  • get the results and clean the data
  • return the x coordinates, the y coordinates, and the airfoil name as elements of a tuple

To build this function, you will use the NACA 2412 airfoil to ensure that the program works.

Understanding airfoil coordinates

The URL of each airfoil’s coordinates in the UIUC airfoil database follows the same format: https://m-selig.ae.illinois.edu/ads/coord/{airfoil_name}.dat. Each time you query the database, you will replace {airfoil_name} ...