Skip to content

Commit f8eaf92

Browse files
authored
Merge branch whannah1-update-domain-tool-nc-engine (PR #8500)
specify engine='netcdf4' for generate_domain_files_E3SM.py to fix problem with latest version of E3SM unified env [BFB]
2 parents 5f06696 + f01266b commit f8eaf92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/generate_domain_files/generate_domain_files_E3SM.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)