---
jupytext:
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.12
    jupytext_version: 1.7.1
kernelspec:
  display_name: Python 3
  language: python
  name: python3
platform: ATR

flight_id: ATR-20240820a
takeoff: "2024-08-20 14:33:00Z"
landing: "2024-08-20 18:03:00Z"
departure_airport: GVAC
arrival_airport: GVAC
crew:
  - name: Guillaume Seurat
    job: Pilot
  - name: Jean-François Bourdinot
    job: Pilot
  - name: Maxen André
    job: Mechanics
  - name: Clément Bezier
    job: Expé Principal
  - name: Greg Ehses
    job: Expé 
  - name: Marie Lothon
    job: PI
  - name: Kevin Huet
    job: LNG
  - name: Frédérique Laly
    job: aWALI
  - name: Antoine Baudoux
    job: Microphys 1
  - name: Thierry Latchimy
    job: Microphys 2
  - name: Julien Delanoë
    job: RASTA
  - name: Sophie Bounissou
    job: BASTA
orphan: true
categories: [ec_under]

---

# Flight plan - {front}`flight_id`

```{badges}
```

## Flight plan
* The flight is planned to take off at {front}`takeoff` UTC and land at {front}`landing` UTC.
* Normal MAESTRO flight pattern with first leg at about FL200, next two legs at cloud base, and final leg in the boundary layer.
* Coordination with EarthCare.
```{code-cell} python3
:tags: [hide-input]
from orcestra.flightplan import sal, bco, LatLon, IntoCircle, path_preview, plot_cwv
from datetime import datetime
import intake

cat = intake.open_catalog("https://tcodata.mpimet.mpg.de/internal.yaml")

from orcestra.flightplan import sal, bco, LatLon, IntoCircle, path_preview, plot_cwv
from datetime import datetime
import intake

cat = intake.open_catalog("https://tcodata.mpimet.mpg.de/internal.yaml")

date_time = datetime(2024, 8, 17, 12, 0, 0)
date_time_str = date_time.strftime('%Y-%m-%d')
flight_time = datetime(2024, 8, 20, 12, 0, 0)

airport = sal
wp1 = LatLon(lat=18.574, lon=-24.765, label='wp1')
wp2 = LatLon(lat=17.706, lon=-25.035, label='wp2')
ec_meeting_pt = LatLon(lat=18.149, lon=-24.947, label='EC_meeting_pt')
wp3 = LatLon(lat=18.594, lon=-24.858, label='wp3')
wp4 = LatLon(lat=17.723, lon=-25.128, label='wp4')
path = [airport, wp1, wp2, ec_meeting_pt, wp3, wp4, airport]

ds = cat.HIFS(refdate=date_time_str, reftime=date_time.hour).to_dask()
cwv_flight_time = ds["tcwv"].sel(time=flight_time, method = "nearest")

ax = path_preview(path)
plot_cwv(cwv_flight_time)


```
<!-- ![Flight Levels](./LEVELS-ATR-20240820b.jpg) -->

* SAFIRE Flight Plan submitted to Air Traffic Control (ATC)

![Page 1](./SAFIRE-ATR-20240820a.jpg)

```{code-cell} python3
:tags: [hide-input]
import pandas as pd
from dataclasses import asdict

pd.DataFrame.from_records(map(asdict, path)).set_index("label")
```

## Crew

```{crew}
```