Hello everyone,
I'm trying to run the Python script era5_to_int to convert ERA5 model level and surface netCDF data into WPS intermediate file format, but the script fails.
I'm working with RDA datasets d633006 - 'ERA5 Reanalysis Model Level Data' and d633000 - 'ERA5 Reanalysis (0.25 Degree Latitude-Longitude Grid)'.
Each file has this name format:
SP.e5.oper.an.ml.128_134_sp.regn320sc.2020092500_2020092505.nc
SSTK.e5.oper.an.sfc.128_034_sstk.ll025sc.2020100100_2020103123.nc
I located all the relevant scripts (WPSUtil.py and fortran_io.py) in my WPS folder and checked that all the required modules were available and adequately installed/loaded.
From the WPS folder, I call the command:
python era5_to_int.py --path 2020_ERA5complete/model_levels/era5 2020-04-01_00 2020-10-31_23
The result is the following:
datetime = 2020-04-01 00:00:00
until_datetime = 2020-10-31 23:00:00
interval_hours = 6:00:00
Processing time record 2020-04-01_00
Traceback (most recent call last):
File "/onyx/clim/users/gvourro/AMEN/WPS-4.5/ERA5/era5_to_int.py", line 449, in <module>
idx = find_time_index(e5filename, initdate)
File "/onyx/clim/users/gvourro/AMEN/WPS-4.5/ERA5/era5_to_int.py", line 300, in find_time_index
with Dataset(ncfilename) as f:
File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -74] NetCDF: Malformed URL: b''
What am I doing wrong or missing?
Can you please help me to fix the issue?
Thanks in advance for any help you could provide
I'm trying to run the Python script era5_to_int to convert ERA5 model level and surface netCDF data into WPS intermediate file format, but the script fails.
I'm working with RDA datasets d633006 - 'ERA5 Reanalysis Model Level Data' and d633000 - 'ERA5 Reanalysis (0.25 Degree Latitude-Longitude Grid)'.
Each file has this name format:
SP.e5.oper.an.ml.128_134_sp.regn320sc.2020092500_2020092505.nc
SSTK.e5.oper.an.sfc.128_034_sstk.ll025sc.2020100100_2020103123.nc
I located all the relevant scripts (WPSUtil.py and fortran_io.py) in my WPS folder and checked that all the required modules were available and adequately installed/loaded.
From the WPS folder, I call the command:
python era5_to_int.py --path 2020_ERA5complete/model_levels/era5 2020-04-01_00 2020-10-31_23
The result is the following:
datetime = 2020-04-01 00:00:00
until_datetime = 2020-10-31 23:00:00
interval_hours = 6:00:00
Processing time record 2020-04-01_00
Traceback (most recent call last):
File "/onyx/clim/users/gvourro/AMEN/WPS-4.5/ERA5/era5_to_int.py", line 449, in <module>
idx = find_time_index(e5filename, initdate)
File "/onyx/clim/users/gvourro/AMEN/WPS-4.5/ERA5/era5_to_int.py", line 300, in find_time_index
with Dataset(ncfilename) as f:
File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -74] NetCDF: Malformed URL: b''
What am I doing wrong or missing?
Can you please help me to fix the issue?
Thanks in advance for any help you could provide