Skip to content

Commit

Permalink
Remove phase palette from msg products to avoid confusion.
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 Jun 3, 2015
1 parent 115cb42 commit 8bd9f56
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mpop/satin/msg_hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,19 @@ def convert2pps(self):
retv.cloudtype.data = self.cloudtype.astype('B')
retv._projectables.append("cloudtype")

retv.PHASE_PALETTE = InfoObject()
retv.PHASE_PALETTE.data = self.cloudphase_palette
retv.PHASE_PALETTE.info["CLASS"] = np.string_("PALETTE")
retv.PHASE_PALETTE.info["PAL_COLORMODEL"] = np.string_("RGB")
retv.PHASE_PALETTE.info["PAL_TYPE"] = np.string_("STANDARD8")
retv.PHASE_PALETTE.info["PAL_VERSION"] = np.string_("1.2")
retv._keys.append("PHASE_PALETTE")
# retv.PHASE_PALETTE = InfoObject()
# retv.PHASE_PALETTE.data = self.cloudphase_palette
# retv.PHASE_PALETTE.info["CLASS"] = np.string_("PALETTE")
# retv.PHASE_PALETTE.info["PAL_COLORMODEL"] = np.string_("RGB")
# retv.PHASE_PALETTE.info["PAL_TYPE"] = np.string_("STANDARD8")
# retv.PHASE_PALETTE.info["PAL_VERSION"] = np.string_("1.2")
# retv._keys.append("PHASE_PALETTE")

retv.phase_flag = InfoObject()
retv.phase_flag.info["output_value_nameslist"] = phase_lut
retv.phase_flag.info["CLASS"] = np.string_("IMAGE")
retv.phase_flag.info["IMAGE_VERSION"] = np.string_("1.2")
retv._refs[("phase_flag", "PALETTE")] = np.string_("PHASE_PALETTE")
# retv.phase_flag.info["CLASS"] = np.string_("IMAGE")
# retv.phase_flag.info["IMAGE_VERSION"] = np.string_("1.2")
# retv._refs[("phase_flag", "PALETTE")] = np.string_("PHASE_PALETTE")
retv.phase_flag.info["description"] = np.string_(
'MSG SEVIRI Cloud phase flags')
retv.phase_flag.data = self.cloudphase.astype('B')
Expand Down

0 comments on commit 8bd9f56

Please sign in to comment.