【python】【GNSS】对RINEX长文件名CRX进行重新命名以及D文件转O文件





# -*- coding: utf-8 -*-
"""
Created on Tue Sep 18 17:29:30 2018

@author: OYMJ
"""

#coding:utf8
import os

path=os.getcwd()
for file in os.listdir(path):
    if len(file)>30:
        oldname=file
        newname=file[0:4]+"2300.18d"
        os.rename(oldname,newname)
    else:
        pass
    
    
for file in os.listdir(path):
  
    if len(file)==12  and  file.find("18o"): 
        os.system("crx2rnx {0}".format(file))
        os.remove(file)
        
        pass

 

你可能感兴趣的:(GNSS,python)