change main

This commit is contained in:
赵敬皓 2022-11-10 16:14:49 +08:00
parent a7f122b623
commit 7c96c73893
1 changed files with 5 additions and 5 deletions

10
main.py
View File

@ -2,7 +2,7 @@ import os
import Download_AOD as Daod
import datetime as dt
today = dt.date(2022, 8, 1)
today = dt.date(2022, 7, 22)
print(today)
_yearNum = today.year
_monNum = today.month
@ -10,7 +10,7 @@ _dayNum = today.day
_yearStr = ""
_monStr = ""
_dayStr = ""
_hourStr = [f"0{x}"if x < 10 else str(x) for x in range(23)]
_hourStr = [f"0{x}"if x < 10 else str(x) for x in range(24)]
if __name__ == "__main__":
# 传入IP地址
@ -75,16 +75,16 @@ if __name__ == "__main__":
ftp.DownLoadFileTree(Download_Path, ftp_filePath, _choice)
elif _choice == 3:
while today <= dt.date.today():
while today <= dt.date(2022,7,31):
_yearNum = today.year
_monNum = today.month
_dayNum = today.day
_yearStr = ""
_monStr = ""
_dayStr = ""
_hourStr = [f"0{x}" if x < 10 else str(x) for x in range(23)]
_hourStr = [f"0{x}" if x < 10 else str(x) for x in range(24)]
_yearStr, _monStr, _dayStr = Daod.getDateStr(_yearNum, _monNum, _dayNum)
ftp_filePath = "/pub/himawari/L2/PAR/020" + "/" + _yearStr + _monStr + "/" + _dayStr + "/"
ftp_filePath = "/pub/himawari/L2/PAR/010" + "/" + _yearStr + _monStr + "/" + _dayStr + "/"
dst_filePath = dst_filePath_root + "/" + dt.datetime.strftime(today, '%Y-%m-%d')
Download_Path = dst_filePath + "/PAR_Minutes_Download"
if not os.path.exists(Download_Path):