Commit 209f8dad authored by mickael's avatar mickael

renforce code to skip no date found in filename

parent cb60724e
......@@ -76,6 +76,8 @@ def getoutputlines(inputfile,outputbase,source):
"""
linelist=[]
m = re.search('-(\d{8})t(\d{6})',inputfile)
if m is None:
return linelist
mydate = datetime.datetime.strptime(m.group(1),'%Y%m%d')
year = str(mydate.year).zfill(4)
doy = str(mydate.timetuple().tm_yday).zfill(3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment