Files
MemRelay/projects/991bd0b4-6f60-47c0-8e47-1bb256c04653/仅提取第一个measurement并合并GBK CSV.md
T

25 lines
997 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 仅提取第一个measurement并合并GBK CSV
type: decision
permalink: main/projects/991bd0b4-6f60-47c0-8e47-1bb256c04653/仅提取第一个-measurement-并合并-gbk-csv
stable_id: b882fb0f-554f-43fb-80d7-bd4855d3db2f
scope: project
memory_type: decision
project_id: 991bd0b4-6f60-47c0-8e47-1bb256c04653
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 1
request_id: mrotemp-20260813-decision-extract-first-meas
created_at: '2026-08-13T02:54:04.532579+00:00'
updated_at: '2026-08-13T02:54:04.532579+00:00'
tags:
- mro
- csv
- xml
---
只提取 MRO XML 中第一个 measurement 节点(服务/邻区 RSRP 等),忽略后续 PLR、RIP 等 measurement。
表头去掉 MR. 前缀。CSV 额外带 FileName, eNB, id, MmeUeS1apId, MmeCode, MmeGroupId, TimeStamp,否则批量合并后无法追溯 UE/小区/时间。
输入 source/*.xml,输出 output/MRO_YYYYMMDDHHMMSS.csv,GBK 编码。用 lxml iterparse,解到第二个 measurement 即停止。