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

snapshot...

parent 96fd157c
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ class GFSfiles(Files):
class AMVFiles:
def __init__(self, files_path, file_time_span, pattern, band='14', elem_name=None, line_name=None, lat_name=None,
lon_name=None, params=None, out_params=None, meta_dict=None, qc_params=None):
lon_name=None, press_name=None, params=None, out_params=None, meta_dict=None, qc_params=None):
self.flist = glob.glob(files_path + pattern)
if len(self.flist) == 0:
......@@ -277,6 +277,7 @@ class AMVFiles:
self.line_name = line_name
self.lon_name = lon_name
self.lat_name = lat_name
self.press_name = press_name
self.params = params
self.out_params = params
if out_params is not None:
......@@ -493,14 +494,16 @@ class NOAA_txt(AMVFiles):
line_name = None
lon_name = 'lon'
lat_name = 'lat'
press_name = 'PW'
params = ['pressure', 'wind_speed', 'wind_direction']
# params = ['pressure', 'wind_speed', 'wind_direction']
params = ['BOX','SRCH','SPD','DIR','PW','LLCM','SPDG','DIRG','TBALB','MAXC','TRKM','PERR','HAMD','QINF','QIWF','QIC']
out_params = ['Lon', 'Lat', 'Element', 'Line'] + params
meta_dict = {'Lon': ('degrees east', 'f4'), 'Lat': ('degrees north', 'f4'), 'Element': (None, 'i4'), 'Line': (None, 'i4'),
'pressure': ('hPa', 'f4'), 'wind_speed': ('m s-1', 'f4'), 'wind_direction': ('degrees', 'f4')}
super().__init__(files_path, file_time_span, 'ASCII_AMV*.CT', band=band, elem_name=elem_name, params=params,
line_name=line_name, lat_name=lat_name, lon_name=lon_name, out_params=out_params, meta_dict=meta_dict)
line_name=line_name, lat_name=lat_name, lon_name=lon_name, press_name=press_name, out_params=out_params, meta_dict=meta_dict)
def get_navigation(self):
return GEOSNavigation(sub_lon=-75.0)
......
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