ecmwf: try new way to extract values
1 files changed, 2 insertions(+), 2 deletions(-)

M meteo_scraper/ecmwf_scraper.py
M meteo_scraper/ecmwf_scraper.py +2 -2
@@ 108,7 108,7 @@ def exploit_grib_file_hres(tsa, gribfile
     for param, unit in PARAMETERS.values():
         print(f'retrieving {param} for zones...')
         gt = gribfile[param]
-        values = gt.values()
+        values = mv.values(gt)
         index = np.unique(mv.valid_date(gt))
 
         for zone in ZONES:

          
@@ 134,7 134,7 @@ def exploit_grib_file_ens(tsa, gribfile)
         print(f'retrieving {param} for zones...')
         gt = gribfile[param]
         print(f'subset for param {param} ready')
-        values = gt.values()
+        values = mv.values(gt)
         print(f'values for param {param} ready')
         index = np.unique(mv.valid_date(gt))