feat: 统计一公里内高干扰小区
This commit is contained in:
@@ -21,14 +21,16 @@ For every run, the script also reads the latest filename-dated XLSX from each co
|
||||
The summary columns are:
|
||||
|
||||
```text
|
||||
hour_start,hour_end,network_type,cgi,cell_name,interference_dbm,longitude,latitude,azimuth
|
||||
hour_start,hour_end,network_type,cgi,cell_name,interference_dbm,longitude,latitude,azimuth,nearby_count
|
||||
```
|
||||
|
||||
`network_type` is derived from the seven source types: both `5G...` sources are `2.6G`, both `700M...` sources are `700M`, and SDR/反开 sources are `4G`. The summary and database keep only high-interference rows: `2.6G >= -107 dBm` and `700M/4G >= -110 dBm`. Converted source CSV files remain full source conversions.
|
||||
|
||||
`nearby_count` is the number of other high-interference cells from the same selected hour within 1 km, across all network types. The cell itself is excluded, the 1 km boundary is included, and rows without coordinates use `0`. Candidate cells are found through a 1 km spatial grid index and confirmed with exact Haversine distance.
|
||||
|
||||
The script never modifies or deletes source storage files. By default it writes the complete selected hour through the Metrix Database API and keeps only that hour in the target table.
|
||||
|
||||
The database table contains one time column, `metric_time DATETIME`, which is the source KPI start time, `network_type VARCHAR(16)`, nullable `longitude` and `latitude` columns, and `azimuth DECIMAL(6,2) NOT NULL DEFAULT 0`. A same-hour rerun replaces that whole batch. After a successful insert, rows for every other hour are deleted in the same transaction. The script refuses to replace a newer database hour with an older source hour.
|
||||
The database table contains one time column, `metric_time DATETIME`, which is the source KPI start time, `network_type VARCHAR(16)`, nullable `longitude` and `latitude` columns, `azimuth DECIMAL(6,2) NOT NULL DEFAULT 0`, and `nearby_count INT NOT NULL DEFAULT 0`. A same-hour rerun replaces that whole batch. After a successful insert, rows for every other hour are deleted in the same transaction. The script refuses to replace a newer database hour with an older source hour.
|
||||
|
||||
CGI is generated with fixed rules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user