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

24 lines
948 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
project_id: 991bd0b4-6f60-47c0-8e47-1bb256c04653
memory_type: decision
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:03:09.036821+00:00'
updated_at: '2026-09-23T15:03:09.036876+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 即停止。