Skip to content

Commit

Permalink
Bugfix: satellite name in msg_hdf now supports missing number.
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 May 13, 2015
1 parent 0e5f83c commit 19178ac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions mpop/satin/msg_hdf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, 2012, 2014.
# Copyright (c) 2010, 2012, 2014, 2015.

# SMHI,
# Folkborgsvägen 1,
Expand Down Expand Up @@ -1405,8 +1405,7 @@ def load(scene, **kwargs):
"product": "CTTH_"})
ct_chan = MsgCTTH()
ct_chan.read(get_best_product(filename, area_extent))
ct_chan.satid = (scene.satname.capitalize() +
str(int(scene.number)).rjust(2))
ct_chan.satid = (scene.fullname.capitalize())
ct_chan.resolution = ct_chan.area.pixel_size_x
scene.channels.append(ct_chan)

Expand All @@ -1420,8 +1419,7 @@ def load(scene, **kwargs):
ct_chan.read(products[-1])
LOG.debug("Uncorrected file: %s", products[-1])
ct_chan.name = "CloudType"
ct_chan.satid = (scene.satname.capitalize() +
str(int(scene.number)).rjust(2))
ct_chan.satid = (scene.fullname.capitalize())
ct_chan.resolution = ct_chan.area.pixel_size_x
scene.channels.append(ct_chan)
if "CloudType_plax" in scene.channels_to_load:
Expand All @@ -1433,8 +1431,7 @@ def load(scene, **kwargs):
LOG.debug("Parallax corrected file: %s", products[0])
ct_chan_plax.read(products[0])
ct_chan_plax.name = "CloudType_plax"
ct_chan_plax.satid = (scene.satname.capitalize() +
str(int(scene.number)).rjust(2))
ct_chan_plax.satid = (scene.fullname.capitalize())
ct_chan_plax.resolution = ct_chan_plax.area.pixel_size_x
scene.channels.append(ct_chan_plax)

Expand Down

0 comments on commit 19178ac

Please sign in to comment.