Skip to content

Commit

Permalink
Add saving to the cloudtype object.
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 21, 2014
1 parent b7a6bbe commit cfd3d7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mpop/satin/nc_pps_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,14 @@ def __init__(self, filename=None):
NwcSafPpsChannel.__init__(self, filename)
self.name = "CT"

def save(self, filename, old=True, **kwargs):
del kwargs
if old:
from nwcsaf_formats.ppsv2014_to_oldformat import write_cloudtype
write_cloudtype(self, filename)

else:
raise NotImplementedError("Can't save to new pps format yet.")

class CloudTopTemperatureHeight(NwcSafPpsChannel):

Expand Down

0 comments on commit cfd3d7f

Please sign in to comment.