Skip to content

Commit

Permalink
Adding copyright and removing __main__
Browse files Browse the repository at this point in the history
  • Loading branch information
galleon authored and g-poveda committed Oct 20, 2022
1 parent 585b024 commit 95f53a4
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions notebooks/flightplanning_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) AIRBUS and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import time
from datetime import datetime, timedelta
from math import asin, atan2, cos, degrees, radians, sin, sqrt
Expand Down Expand Up @@ -470,19 +474,3 @@ def plot_trajectory(
# data = base64.b64encode(buf.getbuffer()).decode("ascii")

return fig


if __name__ == "__main__":
import matplotlib.pyplot as plt

# wr = WeatherRetrieverFromEcmwf()
# now = datetime.now()
# print(now - timedelta(days=7))
# file = wr.get(now - timedelta(days=7))

file_path = "/Users/alleon_g/code/flight-planning/data/tmpm36v2epw.grib"
# file_path = f"{file.name}"
interpolator: WindInterpolator = WindInterpolator(file_path)
# interpolator.plot_wind(plot_wind=True, t=[3600 * i for i in range(7)], alt=10000.0)
interpolator.plot_wind(plot_wind=True, t=[0])
plt.show()

0 comments on commit 95f53a4

Please sign in to comment.