Skip to content

Commit

Permalink
Fix orbit as int in nc_pps loader.
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 Dec 8, 2014
1 parent 6a025be commit 92ab0e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mpop/satin/nc_pps_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def load(self, satscene, *args, **kwargs):
raw=True,
vars=os.environ)
filename_tmpl = (satscene.time_slot.strftime(geoname_tmpl)
% {"orbit": orbit.zfill(5) or "*",
% {"orbit": str(orbit).zfill(5) or "*",
"area": area_name,
"satellite": satscene.satname + satscene.number})

Expand Down Expand Up @@ -315,7 +315,7 @@ def load(self, satscene, *args, **kwargs):
orbit = satscene.orbit

filename_tmpl = (satscene.time_slot.strftime(pathname_tmpl)
% {"orbit": orbit.zfill(5) or "*",
% {"orbit": str(orbit).zfill(5) or "*",
"area": area_name,
"satellite": satscene.satname + satscene.number,
"product": product})
Expand All @@ -326,7 +326,7 @@ def load(self, satscene, *args, **kwargs):
LOG.info("No " + str(product) +
" product in old format matching")
filename_tmpl = (satscene.time_slot.strftime(pathname_tmpl)
% {"orbit": orbit.zfill(5) or "*",
% {"orbit": str(orbit).zfill(5) or "*",
"area": area_name,
"satellite": satscene.satname + satscene.number,
"product": product_name})
Expand Down

0 comments on commit 92ab0e3

Please sign in to comment.