需求分析:
1、多个子网的单天H文件合。也就是同一天的H文件都排列到一起,并在文件地址 后面 加上一个符号 “+”,而在单天内最后一个文件不加该符号。
文件特征:
h1704051200_igs1.glx h1706291200_igs7.glx h1709211200_igs6.glx
h1704051200_igs2.glx h1706291200_igs8.glx h1709211200_igs7.glx
h1704051200_igs3.glx h1706301200_igs1.glx h1709211200_igs8.glx
h1704051200_igs4.glx h1706301200_igs2.glx h1709221200_igs1.glx
h1704051200_igs5.glx h1706301200_igs3.glx h1709221200_igs2.glx
h1704051200_igs6.glx h1706301200_igs4.glx h1709221200_igs3.glx
h1704051200_igs7.glx h1706301200_igs5.glx h1709221200_igs4.glx
h1704051200_igs8.glx h1706301200_igs6.glx h1709221200_igs5.glx
h1704061200_igs1.glx h1706301200_igs7.glx h1709221200_igs6.glx
h1704061200_igs2.glx h1706301200_igs8.glx h1709221200_igs7.glx
h1704061200_igs3.glx h1707011200_igs1.glx h1709221200_igs8.glx
如上所示,每个文件都是以.glx后缀结尾;第一个字符是h,然后是10位的日期,例如:1704051200,表示2017年4月5日12点0分,然后是一个下划线,然后是4个字符的子网代码。
最终效果:
h1704051200_igs1.glx +
h1704051200_igs4.glx +
h1704051200_igs5.glx
h1706291200_igs7.glx +
h1706291200_igs8.glx
-------------------------------------------------------------------------------------------------
python代码如下:
------------------------------------------------------
```
```
---------------------------------------------------------