From b7a6bbe22366b302b432d5b7811273f7bdab429b Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Fri, 21 Nov 2014 15:48:01 +0100 Subject: [PATCH] Add the save method to cloudtype object. Signed-off-by: Martin Raspaud --- mpop/satin/nc_pps_l2.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mpop/satin/nc_pps_l2.py b/mpop/satin/nc_pps_l2.py index 41528b24..b6aac0f3 100644 --- a/mpop/satin/nc_pps_l2.py +++ b/mpop/satin/nc_pps_l2.py @@ -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):