# EECES demo samples — from Control Tower demo trips

Sample inputs for the Carta Energy Consumption & PCF Simulator (EECES), converted from two completed trips in the Control Tower (TMS3) demo dataset.

| File | Mode | Trip |
|---|---|---|
| `KR/eeces_plan_linehaul_KR.csv` · `NA/eeces_plan_linehaul_NA.csv` | MODE 1 Trip Planning (paste) | Linehaul, 2 legs — KR Busan → Daejeon → Incheon 464.9 km / NA Dallas → Memphis → Chicago 1,227.5 mi |
| `KR/eeces_plan_parcel_KR.csv` · `NA/eeces_plan_parcel_NA.csv` | MODE 1 Trip Planning (paste) | Parcel delivery, 6 legs (6 drop zones), 67.2 km / 41.8 mi |
| `KR/eeces_realtime_parcel_KR.csv` · `NA/eeces_realtime_parcel_NA.csv` | MODE 2 Real-time (file upload) | The same parcel trip as 10-second ticks, 1,158 ticks |

Use `KR` files with the **KOR** unit setting (km, km/h, kg, m) and `NA` files with **NA** (mile, mph, lb, ft). EECES reads the numbers in the current unit setting.

## How to use

1. **Pick the vehicle first.** In *Vehicle Configuration › Quick Vehicle Select*, choose
   - Linehaul: **Heavy Cargo 11t**
   - Parcel: **Porter/Bongo Box Truck (1t)**
2. **MODE 1** — *01 / Trip Planning › ② CSV/Text Batch Input*: paste the whole file, press *Parse CSV → Apply to Table*, then *Run Trip Planning Prediction*. The header row is reported as `skipped: 1`.
3. **MODE 2** — *02 / Real-time › ② JSON/CSV File Upload*: choose the realtime file and press *Start Playback* (about 1.5 minutes). The file has no cargo column, so enter the departure load in *Current Transport Leg › Cargo List* before playback if you want CO₂ allocation — KOR `PARCEL:643`, NA `PARCEL:1069.2`.
4. Run both and open *04 / 3-MODE Compare* to see plan vs. real-time.

## How the files were made

- One trip = one route. Each move between two stops = one transport leg with one driving segment: distance as recorded, average speed = distance ÷ moving time.
- Cargo of a leg = waybills on board for that move (`waybill ID:weight`), so the load drops as zones are served.
- Slope is 0 (the dataset has no elevation). Road type is Highway for linehaul and Urban for parcel; the files carry the canonical values (`고속도로`, `도시부`), which the English screen shows as *Highway* and *Urban*.
- The realtime file is **synthetic**: the dataset stores no dense GPS track, so each move is replayed as stop-and-go driving (a signal stop every ~800 m) that keeps the recorded distance and moving time. Stop work time is shortened to 30 seconds.

Generated by `tools/ct-samples.mjs` in `carta/carta-eeces` (source: `carta/carta-control-tower` demo dataset v1.12.0 KR / v1.13.0 NA, trips `TRP-260906-17` and `TRP-260906-15`).

---

## 한국어 요약

관제기(TMS3) 데모 데이터셋의 완료 운행 2건(간선 `TRP-260906-17`, 택배 `TRP-260906-15`)을 EECES 입력으로 바꾼 샘플입니다.

- **단위:** KR 파일은 KOR 단위 화면에서, NA 파일은 NA 단위 화면에서 씁니다. CSV 숫자는 현재 화면 단위로 읽힙니다.
- **차량:** *차종 빠른 선택*에서 먼저 고릅니다. 간선은 `대형 카고 11t`, 택배는 `포터/봉고 탑차 (1t)`입니다.
- **MODE 1:** *② CSV/텍스트 일괄 입력*에 붙여 넣고 파싱한 뒤 실행합니다. 헤더 1줄은 '건너뜀 1'로 나옵니다.
- **MODE 2:** *② JSON/CSV 파일 업로드*로 파일을 고르고 재생합니다(약 1분 30초). 화물 배분을 보려면 재생 전에 *현재 운송구간 화물목록*에 출발 화물을 넣습니다(KOR `PARCEL:643`, NA `PARCEL:1069.2`).
- **변환 규칙:**
  - 경유지 사이 이동 1회가 운송구간 1개입니다.
  - 화물은 그 이동 동안 실린 송장입니다.
  - 경사도는 0입니다(관제기 데이터에 고도가 없음).
  - 도로유형은 간선이 고속도로, 택배가 도시부입니다.
- **실시간 파일은 합성 주행입니다.** 관제기 데이터에 촘촘한 GPS 궤적이 없어서, 구간 거리와 이동 시간은 원본대로 두고 약 800 m마다 신호 대기 정차를 넣었습니다. 경유지 작업 시간은 30초로 줄였습니다.
- **다시 만들기:** `node tools/ct-samples.mjs`(관제기 저장소 `../carta-control-tower` 필요).
