Hyperion as sensor option.
@@ -116,7 +116,7 @@ def main(rawargs=None):
args = parser.parse_args(rawargs)
- if args.sensor not in ['ang', 'avcl', 'neon', 'prism', 'emit']:
+ if args.sensor not in ['ang', 'avcl', 'neon', 'prism', 'emit', 'hyp']:
if args.sensor[:3] != 'NA-':
raise ValueError('argument sensor: invalid choice: "NA-test" (choose from '
'"ang", "avcl", "neon", "prism", "emit", "NA-*")')
@@ -175,6 +175,8 @@ def main(rawargs=None):
dt = datetime.strptime(paths.fid[:19], 'emit%Y%m%dt%H%M%S')
elif args.sensor[:3] == 'NA-':
dt = datetime.strptime(args.sensor[3:], '%Y%m%d')
+ elif args.sensor == 'hyp':
+ dt = datetime.strptime(paths.fid[10:17], '%Y%j')
dayofyear = dt.timetuple().tm_yday
@@ -382,6 +384,8 @@ class Pathnames():
self.fid = split(args.input_radiance)[-1][:19]
elif args.sensor[:3] == 'NA-':
self.fid = os.path.splitext(os.path.basename(args.input_radiance))[0]
+ elif args.sensor == 'hyp':
+ self.fid = split(args.input_radiance)[-1][:22]
# Names from inputs
self.aerosol_climatology = args.aerosol_climatology_path
