Skip to content
Snippets Groups Projects
Commit 36917231 authored by Paolo Veglio's avatar Paolo Veglio
Browse files

barebone template on the function to write the output file

parent ae315f28
No related branches found
No related tags found
No related merge requests found
import xarray as xr
def save_output(fname):
d = {
'varname_1': {
'dims': (),
'data': 0,
'attrs': {
'units': '',
'long_name': '',
'description': '',
},
},
'varname_2': {
'dims': (),
'data': 0,
'attrs': {
'units': '',
'long_name': '',
'description': '',
},
},
}
out_data = xr.Dataset.from_dict(d)
out_data.to_netcdf(fname)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment