Skip to content

Commit

Permalink
Merge pull request #9 from trondactea/patch-1
Browse files Browse the repository at this point in the history
Update ECMWF_convert_to_ROMS.py
  • Loading branch information
trondkr authored Jul 26, 2022
2 parents 563284a + 5fa1d03 commit f8ce8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ECMWF_convert_to_ROMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def write_to_ROMS_netcdf_file(self, config_ecmwf: ECMWF_query, data_array, var_u
longitude = ds.variables['longitude'][:]
latitude = ds.variables['latitude'][:]
time, time_units, time_calendar = self.change_reference_date(ds, config_ecmwf)
netcdf_roms_filename = f"{out_filename[0:-3]}_roms.nc"
netcdf_roms_filename = f"{netcdf_file[0:-3]}_roms.nc"
if os.path.exists(netcdf_roms_filename):
os.remove(netcdf_roms_filename)
logging.info(
Expand Down

0 comments on commit f8ce8da

Please sign in to comment.