Subject: era5_to_int.py still requesting model-level data despite --isobaric flag
Dear Ming,
Thank you again for your support.
Following your guidance, I made good progress using era5_to_int.py. Specifically:
- I organized all ERA5 files under /home/nodo2/Descarga/ERA5/, ensuring both pressure-level (pl) and surface-level (sfc) files are placed in the same main folder, as I understood this is necessary for the script to locate all required inputs.
- I verified that all the relevant .nc files are present and valid using ncdump -h.
- I also downloaded additional surface variables that the script required (e.g., STLx, SWVLx, SKT, CI, etc.).
Then, I ran the script with:
python era5_to_int.py --path /home/nodo2/Descarga/ERA5 -i 2013-01-01_00 2013-01-01_18
The script began processing variables correctly, including TT, DEWPT, UU, VV, SMxxx, STxxx, SEAICE, SKINTEMP, etc. However, I later encountered this error:
Error: Could not find file e5.oper.an.ml.128_134_sp.regn320sc.2013010100_2013010105.nc needed for ERA5 variable SP
This is confusing, because:
- I’m running with -i (isobaric mode),
- I already have SP in the surface file:
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_134_sp.ll025sc.2013010100_2013013123.nc
So my questions are:
- Is the script supposed to look for SP in model-level (ml) files even when running in isobaric mode?
- Is there a way to force the script to use only pl and sfc data, ignoring ml dependencies?
- Could this be solved by modifying the code to allow SP to be read from the surface file directly?
Here’s a snippet of the log:
...
Converting PMSL at 2013-01-01_00:00:00
Error: Could not find file e5.oper.an.ml.128_134_sp.regn320sc.2013010100_2013010105.nc needed for ERA5 variable SP
Any clarification would be greatly appreciated, as we are trying to run a test case relying only on pressure-level and surface data.
and this is the process of the script:
datetime = 2013-01-01 00:00:00
until_datetime = 2013-01-01 18:00:00
interval_hours = 6:00:00
Processing time record 2013-01-01_00
/home/nodo2/Descarga/ERA5/e5.oper.an.pl.128_129_z.ll025sc.2013010100_2013010123.nc
Converting GEOPT at 2013-01-01_00:00:00
GEOPT is NOT being written to the intermediate file at level 100.0
Computing GHT at 100.0
GEOPT is NOT being written to the intermediate file at level 200.0
Computing GHT at 200.0
GEOPT is NOT being written to the intermediate file at level 300.0
Computing GHT at 300.0
GEOPT is NOT being written to the intermediate file at level 500.0
Computing GHT at 500.0
GEOPT is NOT being written to the intermediate file at level 700.0
Computing GHT at 700.0
GEOPT is NOT being written to the intermediate file at level 1000.0
Computing GHT at 1000.0
GEOPT is NOT being written to the intermediate file at level 2000.0
Computing GHT at 2000.0
GEOPT is NOT being written to the intermediate file at level 3000.0
Computing GHT at 3000.0
GEOPT is NOT being written to the intermediate file at level 5000.0
Computing GHT at 5000.0
GEOPT is NOT being written to the intermediate file at level 7000.0
Computing GHT at 7000.0
GEOPT is NOT being written to the intermediate file at level 10000.0
Computing GHT at 10000.0
GEOPT is NOT being written to the intermediate file at level 12500.0
Computing GHT at 12500.0
GEOPT is NOT being written to the intermediate file at level 15000.0
Computing GHT at 15000.0
GEOPT is NOT being written to the intermediate file at level 17500.0
Computing GHT at 17500.0
GEOPT is NOT being written to the intermediate file at level 20000.0
Computing GHT at 20000.0
GEOPT is NOT being written to the intermediate file at level 22500.0
Computing GHT at 22500.0
GEOPT is NOT being written to the intermediate file at level 25000.0
Computing GHT at 25000.0
GEOPT is NOT being written to the intermediate file at level 30000.0
Computing GHT at 30000.0
GEOPT is NOT being written to the intermediate file at level 35000.0
Computing GHT at 35000.0
GEOPT is NOT being written to the intermediate file at level 40000.0
Computing GHT at 40000.0
GEOPT is NOT being written to the intermediate file at level 45000.0
Computing GHT at 45000.0
GEOPT is NOT being written to the intermediate file at level 50000.0
Computing GHT at 50000.0
GEOPT is NOT being written to the intermediate file at level 55000.0
Computing GHT at 55000.0
GEOPT is NOT being written to the intermediate file at level 60000.0
Computing GHT at 60000.0
GEOPT is NOT being written to the intermediate file at level 65000.0
Computing GHT at 65000.0
GEOPT is NOT being written to the intermediate file at level 70000.0
Computing GHT at 70000.0
GEOPT is NOT being written to the intermediate file at level 75000.0
Computing GHT at 75000.0
GEOPT is NOT being written to the intermediate file at level 77500.0
Computing GHT at 77500.0
GEOPT is NOT being written to the intermediate file at level 80000.0
Computing GHT at 80000.0
GEOPT is NOT being written to the intermediate file at level 82500.0
Computing GHT at 82500.0
GEOPT is NOT being written to the intermediate file at level 85000.0
Computing GHT at 85000.0
GEOPT is NOT being written to the intermediate file at level 87500.0
Computing GHT at 87500.0
GEOPT is NOT being written to the intermediate file at level 90000.0
Computing GHT at 90000.0
GEOPT is NOT being written to the intermediate file at level 92500.0
Computing GHT at 92500.0
GEOPT is NOT being written to the intermediate file at level 95000.0
Computing GHT at 95000.0
GEOPT is NOT being written to the intermediate file at level 97500.0
Computing GHT at 97500.0
GEOPT is NOT being written to the intermediate file at level 100000.0
Computing GHT at 100000.0
/home/nodo2/Descarga/ERA5/e5.oper.an.pl.128_133_q.ll025sc.2013010100_2013010123.nc
Converting SPECHUMD at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.pl.128_130_t.ll025sc.2013010100_2013010123.nc
Converting TT at 2013-01-01_00:00:00
Computing RH at 100.0
Computing RH at 200.0
Computing RH at 300.0
Computing RH at 500.0
Computing RH at 700.0
Computing RH at 1000.0
Computing RH at 2000.0
Computing RH at 3000.0
Computing RH at 5000.0
Computing RH at 7000.0
Computing RH at 10000.0
Computing RH at 12500.0
Computing RH at 15000.0
Computing RH at 17500.0
Computing RH at 20000.0
Computing RH at 22500.0
Computing RH at 25000.0
Computing RH at 30000.0
Computing RH at 35000.0
Computing RH at 40000.0
Computing RH at 45000.0
Computing RH at 50000.0
Computing RH at 55000.0
Computing RH at 60000.0
Computing RH at 65000.0
Computing RH at 70000.0
Computing RH at 75000.0
Computing RH at 77500.0
Computing RH at 80000.0
Computing RH at 82500.0
Computing RH at 85000.0
Computing RH at 87500.0
Computing RH at 90000.0
Computing RH at 92500.0
Computing RH at 95000.0
Computing RH at 97500.0
Computing RH at 100000.0
/home/nodo2/Descarga/ERA5/e5.oper.an.pl.128_131_u.ll025uv.2013010100_2013010123.nc
Converting UU at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.pl.128_132_v.ll025uv.2013010100_2013010123.nc
Converting VV at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.invariant.128_172_lsm.ll025sc.1979010100_1979010100.nc
Converting LANDSEA at 1979-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_034_sstk.ll025sc.2013010100_2013013123.nc
Converting SST at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_235_skt.ll025sc.2013010100_2013013123.nc
Converting SKINTEMP at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_039_swvl1.ll025sc.2013010100_2013013123.nc
Converting SM000007 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_040_swvl2.ll025sc.2013010100_2013013123.nc
Converting SM007028 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_041_swvl3.ll025sc.2013010100_2013013123.nc
Converting SM028100 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_042_swvl4.ll025sc.2013010100_2013013123.nc
Converting SM100289 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_139_stl1.ll025sc.2013010100_2013013123.nc
Converting ST000007 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_170_stl2.ll025sc.2013010100_2013013123.nc
Converting ST007028 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_183_stl3.ll025sc.2013010100_2013013123.nc
Converting ST028100 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_236_stl4.ll025sc.2013010100_2013013123.nc
Converting ST100289 at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_031_ci.ll025sc.2013010100_2013013123.nc
Converting SEAICE at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_167_2t.ll025sc.2013010100_2013013123.nc
Converting TT at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_168_2d.ll025sc.2013010100_2013013123.nc
Converting DEWPT at 2013-01-01_00:00:00
DEWPT is NOT being written to the intermediate file at level 200100.0
Computing RH at 200100.0
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_165_10u.ll025sc.2013010100_2013013123.nc
Converting UU at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_166_10v.ll025sc.2013010100_2013013123.nc
Converting VV at 2013-01-01_00:00:00
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_033_rsn.ll025sc.2013010100_2013013123.nc
Converting SNOW_DEN at 2013-01-01_00:00:00
SNOW_DEN is NOT being written to the intermediate file at level 200100.0
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_141_sd.ll025sc.2013010100_2013013123.nc
Converting SNOW_EC at 2013-01-01_00:00:00
SNOW_EC is NOT being written to the intermediate file at level 200100.0
Computing SNOWH and SNOW
/home/nodo2/Descarga/ERA5/e5.oper.an.sfc.128_151_msl.ll025sc.2013010100_2013013123.nc
Converting PMSL at 2013-01-01_00:00:00
Error: Could not find file e5.oper.an.ml.128_134_sp.regn320sc.2013010100_2013010105.nc needed for ERA5 variable SP
Best regards,
William Oswaldo Riaño Acosta