Error in Preparing ERA5 Reanalysis in SEN-ET for Evapotranspiration Calculation: unsupported operand NoneType

Hello everyone,

I’m currently working on preparing meteorological data from ERA5 for evapotranspiration (ET) calculations using SEN-ET. However, I’ve encountered an error related to the air_temperature data that I can’t seem to resolve.

Context:

  • I downloaded the ERA5 data using cdsapi. the cds api has changed recently.
  • I renamed the time variable in my data to valid_time since there was no time variable in the cds data.

When I run my script using the below command:

python et-scripts/ecmwf_data_preparation.py --elevation_map /home/ubuntu/senet/sharenaw/s2/strm_elevation.dim --ecmwf_data_file /home/ubuntu/senet/cds/data/data.nc --date_time_utc '2024-09-22 06:00' --time_zone 4 --output_file /home/ubuntu/senet/sharenaw/era5_reanalysis.dim

I receive the following error
`
python

timedate_UTC 2024-09-22 06:00:00
beforeI 30
afterI 30
frac 1
air_temperature
+++ None None nan
ERROR: unsupported operand type(s) for *: ‘float’ and ‘NoneType’
`

Has anyone else encountered this issue using cdsapi for downloading ERA5 data? I would greatly appreciate any guidance on how to resolve this error.

Thanks in advance for your help!