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

snapshot...

parent b297a0fc
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,7 @@ class CLAVRx(Files): ...@@ -164,6 +164,7 @@ class CLAVRx(Files):
return GEOSNavigation(sub_lon=-75.0, CFAC=5.6E-05, COFF=-0.101332, LFAC=-5.6E-05, LOFF=0.128212, num_elems=2500, num_lines=1500) return GEOSNavigation(sub_lon=-75.0, CFAC=5.6E-05, COFF=-0.101332, LFAC=-5.6E-05, LOFF=0.128212, num_elems=2500, num_lines=1500)
# filename must begin with 'clavrx_H08_YYYYMMDD_HHMM'
class CLAVRx_H08(Files): class CLAVRx_H08(Files):
def __init__(self, files_path): def __init__(self, files_path):
super().__init__(files_path, 10, 'clavrx_H08*.level2.nc') super().__init__(files_path, 10, 'clavrx_H08*.level2.nc')
...@@ -171,7 +172,8 @@ class CLAVRx_H08(Files): ...@@ -171,7 +172,8 @@ class CLAVRx_H08(Files):
def get_datetime(self, pathname): def get_datetime(self, pathname):
filename = os.path.split(pathname)[1] filename = os.path.split(pathname)[1]
dto = datetime.datetime.strptime(filename, 'clavrx_H08_%Y%m%d_%H%M_B01_FLDK_R.level2.nc').replace(tzinfo=timezone.utc) dt_str = filename[11:24]
dto = datetime.datetime.strptime(dt_str, '%Y%m%d_%H%M').replace(tzinfo=timezone.utc)
return dto return dto
def get_parameters(self): def get_parameters(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment