---
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-20240901a
takeoff: "2024-09-01 13:30:00Z"
landing: "2024-09-01 17:00:00Z"
departure_airport: GVAC
arrival_airport: GVAC
crew:
  - name: Guillaume Seurat
    job: Pilot
  - name: Dominique Duchanoy
    job: Pilot
  - name: Maxens André
    job: Mechanics
  - name: Claude Lainard
    job: Expé Principal
  - name: Hubert Bellec
    job: Expé 
  - name: Marie Lothon
    job: PI
  - name: Emmeline François
    job: LNG
  - name: Valentin Guillet
    job: aWALI
  - name: Alfons Schwarzenboeck
    job: Microphys 1
  - name: Guy Lefebvre
    job: Microphys 2
  - name: Christophe Legac
    job: RASTA
  - name: Marius Rixen
    job: BASTA
categories: []
orphan: true
---

{logo}`MAESTRO`

# 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.
* Flight track not yet available.
* 'Millefeuille' flight pattern (lower-troposphere only, multiple levels) to better sample shallow convection

```{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")

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


airport = sal
wp1 = LatLon(lat=16.76, lon=-22.62, label='wp1')
wp2 = LatLon(lat=14.42, lon=-22.10, label='wp2')
wp3 = LatLon(lat=15.5,lon=-22.348, label='wp3')


path = [airport, wp1, wp2, wp3, wp2, wp3, wp2, wp1, 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)
ax.set_extent([-24, -20, 13.5, 17])

plot_cwv(cwv_flight_time)


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

<!-- <!-- * SAFIRE Flight Plan submitted to Air Traffic Control (ATC) -->

<!-- ![Page 1](./SAFIRE-ATR-20240829a.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}
```