Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There may exist a bug in ECMWF_convert_to_ROMS.py #8

Open
LI-EM-Rj opened this issue Jul 26, 2022 · 3 comments
Open

There may exist a bug in ECMWF_convert_to_ROMS.py #8

LI-EM-Rj opened this issue Jul 26, 2022 · 3 comments

Comments

@LI-EM-Rj
Copy link

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

@trondkr
Copy link
Owner

trondkr commented Jul 26, 2022

This should be fixed now

@LI-EM-Rj
Copy link
Author

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.

@trondkr
Copy link
Owner

trondkr commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants