Skip to content

Commit

Permalink
When a file is provided in nc_pps_l2, just read this file.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Nov 19, 2014
1 parent 872803a commit dfc1297
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mpop/satin/nc_pps_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ def load(self, satscene, *args, **kwargs):
self.load(satscene, *args, **kwargs)
return
elif (prodfilename and
os.path.basename(prodfilename).startswith('S_NWC') and
os.path.basename(prodfilename).split("_")[2] == NEW_PRODNAMES[product]):
filename = prodfilename
os.path.basename(prodfilename).startswith('S_NWC')):
if os.path.basename(prodfilename).split("_")[2] == NEW_PRODNAMES[product]:
filename = prodfilename
else:
continue
else:
filename = conf.get(satscene.instrument_name + "-level3", "filename",
raw=True)
Expand Down

0 comments on commit dfc1297

Please sign in to comment.