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

snapshot...

parent ed7000de
No related branches found
No related tags found
No related merge requests found
...@@ -488,7 +488,7 @@ class OPS(AMVFiles): ...@@ -488,7 +488,7 @@ class OPS(AMVFiles):
return dto return dto
class NOAA_txt(AMVFiles): class AMV_Intercompare(AMVFiles):
def __init__(self, files_path, file_time_span, band='14'): def __init__(self, files_path, file_time_span, band='14'):
elem_name = None elem_name = None
line_name = None line_name = None
...@@ -496,7 +496,6 @@ class NOAA_txt(AMVFiles): ...@@ -496,7 +496,6 @@ class NOAA_txt(AMVFiles):
lat_name = 'lat' lat_name = 'lat'
press_name = 'PW' press_name = 'PW'
# params = ['pressure', 'wind_speed', 'wind_direction']
params = ['BOX','SRCH','SPD','DIR','PW','LLCM','SPDG','DIRG','TBALB','MAXC','TRKM','PERR','HAMD','QINF','QIWF','QIC'] params = ['BOX','SRCH','SPD','DIR','PW','LLCM','SPDG','DIRG','TBALB','MAXC','TRKM','PERR','HAMD','QINF','QIWF','QIC']
out_params = ['Lon', 'Lat', 'Element', 'Line'] + params out_params = ['Lon', 'Lat', 'Element', 'Line'] + params
meta_dict = {'Lon': ('degrees east', 'f4'), 'Lat': ('degrees north', 'f4'), 'Element': (None, 'i4'), 'Line': (None, 'i4'), meta_dict = {'Lon': ('degrees east', 'f4'), 'Lat': ('degrees north', 'f4'), 'Element': (None, 'i4'), 'Line': (None, 'i4'),
...@@ -555,8 +554,8 @@ class CarrStereo(AMVFiles): ...@@ -555,8 +554,8 @@ class CarrStereo(AMVFiles):
def get_datasource(files_path, source, file_time_span=10, band='14'): def get_datasource(files_path, source, file_time_span=10, band='14'):
if source == 'OPS': if source == 'OPS':
return OPS(files_path, file_time_span, band=band) return OPS(files_path, file_time_span, band=band)
elif source == 'NOAA_TXT': elif source == 'AMV_TXT':
return NOAA_txt(files_path, file_time_span, band=band) return AMV_Intercompare(files_path, file_time_span, band=band)
elif source == 'FMWK': elif source == 'FMWK':
return Framework(files_path, file_time_span, band=band) return Framework(files_path, file_time_span, band=band)
elif source == 'CARR': elif source == 'CARR':
......
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