@@ -259,7 +259,7 @@ def main():
259259 ds_out ['frac' ] = xr .DataArray ( ofrac .values .reshape ([nj ,ni ]), dims = ['nj' ,'ni' ])
260260 ds_out ['mask' ] = xr .DataArray ( omask .values .reshape ([nj ,ni ]), dims = ['nj' ,'ni' ])
261261
262- ds_out .to_netcdf (path = domain_file_ocn_on_ocn , mode = 'w' , format = output_netcdf_type )
262+ ds_out .to_netcdf (path = domain_file_ocn_on_ocn , mode = 'w' , format = output_netcdf_type , engine = 'netcdf4' )
263263
264264 print (f'successfully created domain file: { clr .MAGENTA } { domain_file_ocn_on_ocn } { clr .END } ' )
265265
@@ -334,7 +334,7 @@ def main():
334334
335335 add_metadata (ds_out )
336336
337- ds_out .to_netcdf (path = domain_file_lnd_on_atm , mode = 'w' , format = output_netcdf_type )
337+ ds_out .to_netcdf (path = domain_file_lnd_on_atm , mode = 'w' , format = output_netcdf_type , engine = 'netcdf4' )
338338
339339 print (f'successfully created domain file: { clr .MAGENTA } { domain_file_lnd_on_atm } { clr .END } ' )
340340
@@ -365,7 +365,7 @@ def main():
365365
366366 add_metadata (ds_out )
367367
368- ds_out .to_netcdf (path = domain_file_ocn_on_atm , mode = 'w' , format = output_netcdf_type )
368+ ds_out .to_netcdf (path = domain_file_ocn_on_atm , mode = 'w' , format = output_netcdf_type , engine = 'netcdf4' )
369369
370370 print (f'successfully created domain file: { clr .MAGENTA } { domain_file_ocn_on_atm } { clr .END } ' )
371371 print ()
0 commit comments