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

snapshot...

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