ERA5-ROMS icon indicating copy to clipboard operation
ERA5-ROMS copied to clipboard

There may exist a bug in ECMWF_convert_to_ROMS.py

Open LI-EM-Rj opened this issue 1 year ago • 3 comments

Thanks for this great project, but I encountered a small issue while using the code. In the ECMWF_convert_to_ROMS.py, line 99, function write_to_ROMS_netcdf_file is defined and netcdf_file is used as a parameter, which gives the name of the netcdf file to be written in line 120. However, in line 120,the code is netcdf_roms_filename = f"{out_filename[0:-3]}_roms.nc", which use out_filename instead of netcdf_file, causing the problem: NameError: name 'out_filename' is not defined. I wonder if the code may need to be modified. Looking for reply. Thanks

LI-EM-Rj avatar Jul 26 '22 01:07 LI-EM-Rj