Skip to content
Snippets Groups Projects
Commit c488d3ad authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 4b3b13f6
Branches
No related tags found
No related merge requests found
......@@ -143,8 +143,9 @@ class CLAVRx_VIIRS(Files):
def get_datetime(self, pathname):
filename = os.path.split(pathname)[1]
toks = filename.split('.')
so = re.search('\\d{11}', toks[4])
dt_str = so.group()
# so = re.search('\\d{11}', toks[4])
# dt_str = so.group()
dt_str = toks[1] + toks[2]
dto = datetime.datetime.strptime(dt_str, '%Y%j%H%M').replace(tzinfo=timezone.utc)
return dto
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment