From 43f686e1ec30ae22bd60a8b6b7d20ba031e8e241 Mon Sep 17 00:00:00 2001 From: Lars Orum Rasmussen Date: Fri, 20 Jan 2017 14:52:47 +0000 Subject: [PATCH] Use local variable fill_value Make nc_reader happy, by joining name and number with a '-' --- mpop/satout/cfscene.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mpop/satout/cfscene.py b/mpop/satout/cfscene.py index cebde370..9c3c42b9 100644 --- a/mpop/satout/cfscene.py +++ b/mpop/satout/cfscene.py @@ -76,8 +76,9 @@ def __init__(self, scene, dtype=np.int16, band_axis=2, # Other global attributes self.info["Conventions"] = "CF-1.5" - #self.info["platform"] = scene.satname + "-" + str(scene.number) - self.info["platform"] = scene.fullname + # MPOP's nc_reader, expect a '-' to split name and number. + self.info["platform"] = scene.satname + "-" + str(scene.number) + #self.info["platform"] = scene.fullname self.info["instrument"] = scene.instrument_name if scene.variant: self.info["service"] = scene.variant @@ -247,7 +248,7 @@ def __init__(self, scene, dtype=np.int16, band_axis=2, "var_data": lons.data, "var_dim_names": ("y" + str_arc, "x" + str_arc), - "_FillValue": lons.data.fill_value, + "_FillValue": fill_value, "units": "degrees east", "long_name": "longitude coordinate", "standard_name": "longitude"} @@ -264,7 +265,7 @@ def __init__(self, scene, dtype=np.int16, band_axis=2, "var_data": lats.data, "var_dim_names": ("y" + str_arc, "x" + str_arc), - "_FillValue": lats.data.fill_value, + "_FillValue": fill_value, "units": "degrees north", "long_name": "latitude coordinate", "standard_name": "latitude"}