You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I also have another suggestion.
When I try to use the forcing file generated, I was told that "swrad_time" is missing.
So I add: vnc.time = metadata['time_name'] while writing variable to the final netcdf file, and it works.
Maybe we can add this to avoid user to find the solution theirselves, for this little problem has been reported in ROMS Forum by others.
On 30 Jul 2022, 00:27 -0700, LI-EM-Rj ***@***.***>, wrote:
I also have another suggestion.
When I try to use the forcing file generated, I was told that "swrad_time" is missing.
So I add: vnc.time = metadata['time_name'] while writing variable to the final netcdf file, and it works.
Maybe we can add this to avoid user to find the solution theirselves, for this little problem has been reported in ROMS Forum by others.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
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
The text was updated successfully, but these errors were encountered: