Skip to content

Commit

Permalink
Add the save method to 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 255d5eb commit b7a6bbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mpop/satin/nc_pps_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ def __init__(self, filename=None):
self.name = "CMA"


def save(self, filename, old=False):
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 PrecipitationClouds(NwcSafPpsChannel):

def __init__(self, filename=None):
Expand Down

0 comments on commit b7a6bbe

Please sign in to comment.