Skip to content

Commit

Permalink
Merge pull request #29 from datapartnership/routes-cleanup
Browse files Browse the repository at this point in the history
Charts Cleanup
  • Loading branch information
Holly-Transport authored Apr 11, 2024
2 parents f0e8127 + cef9c35 commit edf8a4a
Show file tree
Hide file tree
Showing 52 changed files with 2,105 additions and 709 deletions.
35 changes: 23 additions & 12 deletions notebooks/chokepoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,32 @@ Finally, we provide some aggregate statistics (average values) per area for each

The tables below are also accessible through the [Project's Sharepoint Folder](https://worldbankgroup.sharepoint.com/:x:/r/teams/DevelopmentDataPartnershipCommunity-WBGroup/Shared%20Documents/Projects/Data%20Lab/Red%20Sea%20Maritime%20Monitoring/tables/summary-tables-chokepoints.xlsx?d=wd056773265624429b55f7ddf0e7e1f10&csf=1&web=1&e=3Ozsl5).

```{figure} ../../reports/chokepoints/summary-table.png
---
align: center
---
Daily Average Values by Time Period
```
### Daily Average Values by Time Period

| Area of Interest | Period | Tankers | Cargo | Total | Capacity |
|----------------------|----------------------|-----------|---------|---------|------------|
| Bab el-Mandeb Strait | Reference | 23.91 | 46.86 | 70.77 | 4,823,326 |
| Bab el-Mandeb Strait | Middle East Conflict | 25.95 | 51.58 | 77.53 | 5,305,603 |
| Bab el-Mandeb Strait | Red Sea Crisis | 15.34 | 27.61 | 42.95 | 2,585,144 |
| Cape of Good Hope | Reference | 9.34 | 36.68 | 46.01 | 4,380,133 |
| Cape of Good Hope | Middle East Conflict | 10.03 | 39.2 | 49.23 | 4,813,646 |
| Cape of Good Hope | Red Sea Crisis | 15.03 | 53.92 | 68.95 | 6,224,209 |
| Suez Canal | Reference | 23.09 | 46.98 | 70.07 | 4,737,291 |
| Suez Canal | Middle East Conflict | 25.2 | 51.64 | 76.83 | 5,246,677 |
| Suez Canal | Red Sea Crisis | 16.06 | 32.79 | 48.85 | 2,947,435 |

### Daily Average Values by Time Period, % Change from Baseline

The following table shows the difference in average values (% change from baseline period).

```{figure} ../../reports/chokepoints/summary-table-pct.png
---
align: center
---
Daily Average Values by Time Period, % Change from Baseline
```
| Area of Interest | Period | Tankers | Cargo | Total | Capacity |
|----------------------|----------------------|-----------|---------|---------|------------|
| Bab el-Mandeb Strait | Middle East Conflict | 8.56% | 10.08% | 9.56% | 10.00% |
| Bab el-Mandeb Strait | Red Sea Crisis | -35.83% | -41.07% | -39.30% | -46.40% |
| Cape of Good Hope | Middle East Conflict | 7.42% | 6.87% | 6.98% | 9.90% |
| Cape of Good Hope | Red Sea Crisis | 61.03% | 47.01% | 49.85% | 42.10% |
| Suez Canal | Middle East Conflict | 9.12% | 9.91% | 9.65% | 10.75% |
| Suez Canal | Red Sea Crisis | -30.46% | -30.20% | -30.29% | -37.78% |

## Implementation

Expand Down
274 changes: 170 additions & 104 deletions notebooks/chokepoints/red-sea-chokepoints.ipynb

Large diffs are not rendered by default.

1,108 changes: 517 additions & 591 deletions notebooks/ports/red-sea-ports.ipynb

Large diffs are not rendered by default.

1,394 changes: 1,394 additions & 0 deletions notebooks/routes/4-aggregate.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion notebooks/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Time Traveled by Red Sea Vessels, % Change from Baseline
| % Change Distance Travel | 38.6% | 33.1% | 53.6% |
| % Change Time Travel | 31.9% | 31.7% | 51.5% |

### Tanker Vessels
#### Tanker Vessels

| | 2024-01 | 2024-02 | 2024-03 |
|:-------------------------|:----------|:----------|:----------|
Expand Down
Binary file modified reports/chokepoints/transit-calls-chokepoints-historical.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/chokepoints/transit-calls-chokepoints-pct.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/chokepoints/transit-calls-chokepoints-ref.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/chokepoints/transit-calls-chokepoints.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/export-difference.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/export-pct-change.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/import-difference.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/import-pct-change.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port1081.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port1408.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port18.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port19.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port191.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port27.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port294.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port304.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port305.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port321.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port518.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port519.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port570.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port71.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port828.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports-ref-monthly/estimated-trade-port9.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports/estimated-trade-port1081.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified reports/ports/estimated-trade-port1408.jpeg
Binary file modified reports/ports/estimated-trade-port18.jpeg
Binary file modified reports/ports/estimated-trade-port19.jpeg
Binary file modified reports/ports/estimated-trade-port191.jpeg
Binary file modified reports/ports/estimated-trade-port27.jpeg
Binary file modified reports/ports/estimated-trade-port294.jpeg
Binary file modified reports/ports/estimated-trade-port304.jpeg
Binary file modified reports/ports/estimated-trade-port305.jpeg
Binary file modified reports/ports/estimated-trade-port321.jpeg
Binary file modified reports/ports/estimated-trade-port518.jpeg
Binary file modified reports/ports/estimated-trade-port519.jpeg
Binary file modified reports/ports/estimated-trade-port570.jpeg
Binary file modified reports/ports/estimated-trade-port71.jpeg
Binary file modified reports/ports/estimated-trade-port828.jpeg
Binary file modified reports/ports/estimated-trade-port9.jpeg
Binary file modified reports/routes/distance-traveled-bab.jpeg
Binary file modified reports/routes/distance-traveled-cape.jpeg
Binary file modified reports/routes/distance-traveled-pct.jpeg
Binary file modified reports/routes/oecd-historical.jpeg
Binary file modified reports/routes/oecd.jpeg
Binary file modified reports/routes/time-traveled-pct.jpeg
1 change: 0 additions & 1 deletion src/red_sea_monitoring/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def get_ports():
return df


# build function to get chokepoint data based on code above for multiple offests
def get_port_data(ports):
url_base = "https://services9.arcgis.com/weJ1QsnbMYJlCHdG/arcgis/rest/services/Daily_Trade_Data/FeatureServer/0/query?where="
for port in ports:
Expand Down

0 comments on commit edf8a4a

Please sign in to comment.