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

snapshot...

parent 62db52c4
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import datetime, os ...@@ -2,6 +2,7 @@ import datetime, os
from datetime import timezone from datetime import timezone
import glob import glob
import numpy as np import numpy as np
import re
from aeolus.geos_nav import GEOSNavigation from aeolus.geos_nav import GEOSNavigation
from util.util import GenericException from util.util import GenericException
...@@ -51,6 +52,18 @@ class Files: ...@@ -51,6 +52,18 @@ class Files:
return None, None, None return None, None, None
class CLAVRx(Files):
def __init__(self, files_path):
super().__init__(files_path, 10, 'clavrx_OR_ABI-L1b*.level2.nc')
def get_datetime(self, pathname):
filename = os.path.split(pathname)[1]
so = re.search('_s\\d{11}', filename)
dt_str = so.group()
dto = datetime.datetime.strptime(dt_str, '_s%Y%j%H%M').replace(tzinfo=timezone.utc)
return dto
class RAOBfiles(Files): class RAOBfiles(Files):
def __init__(self, files_path): def __init__(self, files_path):
super().__init__(files_path, 10, 'raob_soundings*.cdf') super().__init__(files_path, 10, 'raob_soundings*.cdf')
......
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