Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix netcdf IO #43

Open
wants to merge 1 commit into
base: pre-master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions mpop/satout/cfscene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"}
Expand All @@ -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"}
Expand Down