Problemas para descargar datos de ERA-5

Trato de descargar variables de temperatura y humedad especifica pero me tira un error y no se como solucionarlo

ERROR:

runcell(‘DESCARGA DE TEMPERATURA (t) Y HUMEDAD ESPECIFICA (q)’, ‘D:/METEO/SEMESTRES/TESIS/Codigo Tesis Series de tiempo/untitled1.py’)
2024-08-19 13:53:54,263 INFO Welcome to the CDS.
As per our announcements on the Forum, this instance of CDS will soon be decommissioned.
Please update your cdsapi package to a version >=0.7.0, create an account on CDS-Beta and update your .cdsapirc file. We strongly recommend users to check our Guidelines at
The current legacy system will be kept for a while, but we will reduce resources gradually until full decommissioning in September 2024.
2024-08-19 13:53:54,264 WARNING MOVE TO CDS-Beta
2024-08-19 13:53:54,265 INFO Sending request to mplete
2024-08-19 13:53:54,592 INFO Request is queued
2024-08-19 13:56:48,820 INFO Request is failed
2024-08-19 13:56:48,821 ERROR Message: an internal error occurred processing your request
2024-08-19 13:56:48,822 ERROR Reason: mars - ERROR - 20240819.175601 - Exception: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
mars - ERROR - 20240819.175601 - MIR: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
mars - ERROR - 20240819.175601 - Interpolation failed (-2)
mars - ERROR - 20240819.175603 - Mars server task finished in error
mars - ERROR - 20240819.175603 - Double buffer error: Assertion failed: length == buffers_[i].length_ in run, line 292 of /home/cds/git/mars-server/eckit/src/eckit/io/DblBuffer.cc [cdsfdb]
mars - ERROR - 20240819.175603 - Error code is -2
mars - ERROR - 20240819.175603 - Request failed
mars - ERROR - 20240819.175603 - Some errors reported (last error -2)
2024-08-19 13:56:48,823 ERROR Traceback (most recent call last):
2024-08-19 13:56:48,824 ERROR File “/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py”, line 59, in handle_request
2024-08-19 13:56:48,825 ERROR result = cached(context.method, proc, context, context.args, context.kwargs)
2024-08-19 13:56:48,826 ERROR File “/opt/cdstoolbox/cdscompute/cdscompute/caching.py”, line 108, in cached
2024-08-19 13:56:48,827 ERROR result = proc(context, *context.args, **context.kwargs)
2024-08-19 13:56:48,828 ERROR File “/opt/cdstoolbox/cdscompute/cdscompute/services.py”, line 124, in call
2024-08-19 13:56:48,830 ERROR return p(*args, **kwargs)
2024-08-19 13:56:48,830 ERROR File “/opt/cdstoolbox/cdscompute/cdscompute/services.py”, line 60, in call
2024-08-19 13:56:48,831 ERROR return self.proc(context, *args, **kwargs)
2024-08-19 13:56:48,833 ERROR File “/home/cds/cdsservices/services/mars/mars.py”, line 53, in external
2024-08-19 13:56:48,834 ERROR return mars(context, request, **kwargs)
2024-08-19 13:56:48,835 ERROR File “/home/cds/cdsservices/services/mars/mars.py”, line 20, in mars
2024-08-19 13:56:48,836 ERROR execute_mars(context, requests, info)
2024-08-19 13:56:48,836 ERROR File “/home/cds/cdsservices/services/mars/execute_mars.py”, line 74, in execute_mars
2024-08-19 13:56:48,837 ERROR raise Exception(error_lines)
2024-08-19 13:56:48,838 ERROR Exception: mars - ERROR - 20240819.175601 - Exception: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
2024-08-19 13:56:48,838 ERROR mars - ERROR - 20240819.175601 - MIR: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
2024-08-19 13:56:48,839 ERROR mars - ERROR - 20240819.175601 - Interpolation failed (-2)
2024-08-19 13:56:48,840 ERROR mars - ERROR - 20240819.175603 - Mars server task finished in error
2024-08-19 13:56:48,843 ERROR mars - ERROR - 20240819.175603 - Double buffer error: Assertion failed: length == buffers_[i].length_ in run, line 292 of /home/cds/git/mars-server/eckit/src/eckit/io/DblBuffer.cc [cdsfdb]
2024-08-19 13:56:48,845 ERROR mars - ERROR - 20240819.175603 - Error code is -2
2024-08-19 13:56:48,846 ERROR mars - ERROR - 20240819.175603 - Request failed
2024-08-19 13:56:48,847 ERROR mars - ERROR - 20240819.175603 - Some errors reported (last error -2)
Traceback (most recent call last):

File D:\Anaconda\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File d:\meteo\semestres\tesis\codigo tesis series de tiempo\untitled1.py:34
c.retrieve(‘reanalysis-era5-complete’, {

File D:\Anaconda\Lib\site-packages\cdsapi\api.py:381 in retrieve
result = self._api(“%s/resources/%s” % (self.url, name), request, “POST”)

File D:\Anaconda\Lib\site-packages\cdsapi\api.py:536 in _api
raise Exception(

Exception: an internal error occurred processing your request. mars - ERROR - 20240819.175601 - Exception: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
mars - ERROR - 20240819.175601 - MIR: Serious Bug: Representation::crop() not implemented for SphericalHarmonics[truncation=639]
mars - ERROR - 20240819.175601 - Interpolation failed (-2)
mars - ERROR - 20240819.175603 - Mars server task finished in error
mars - ERROR - 20240819.175603 - Double buffer error: Assertion failed: length == buffers_[i].length_ in run, line 292 of /home/cds/git/mars-server/eckit/src/eckit/io/DblBuffer.cc [cdsfdb]
mars - ERROR - 20240819.175603 - Error code is -2
mars - ERROR - 20240819.175603 - Request failed
mars - ERROR - 20240819.175603 - Some errors reported (last error -2).

CODIGO

#%% DESCARGA DE TEMPERATURA (t) Y HUMEDAD ESPECIFICA (q)

import cdsapi
c = cdsapi.Client()

Especificaciones de la descarga de datos:

clss = “ea” # no cambiar
expver = “1” # no cambiar
levtype = “ml” # no cambiar # Tipo de nivel (ml = model level)
stream = “oper” # no cambiar
date = “2024-06-21” # fecha: Especifica una sola fecha como “2018-01-01” o un período como “2018-08-01/to/2018-01-31”. Para períodos > 1 mes, consulta
tp = “an” # tipo: Usa “an” (análisis) a menos que tengas una razón particular para usar “fc” (pronóstico).
time = “00:00:00/to/23:00:00/by/1” # hora: Los datos de ERA5 son por hora. Especifica una hora única como “00:00:00”, o un rango como “00:00:00/01:00:00/02:00:00” o “00:00:00/to/23:00:00/by/1”.

c.retrieve(‘reanalysis-era5-complete’, {
‘class’ : clss,
‘date’ : date,
‘expver’ : expver,
‘levelist’: ‘1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/111/112/113/114/115/116/117/118/119/120/121/122/123/124/125/126/127/128/129/130/131/132/133/134/135/136/137’, # Para cada uno de los 137 niveles del modelo
‘levtype’ : ‘ml’, # Tipo de nivel (ml = model level)
‘param’ : ‘130/133’, # Temperatura (t) y humedad específica (q)
‘stream’ : stream,
‘time’ : time,
‘type’ : tp,
‘grid’ : [0.25/0.25], # Rejilla de latitud/longitud: resolución este-oeste (longitud) y norte-sur (latitud). Predeterminado: 0.25 x 0.25
‘area’ : [-39,-73,-39.9,-70.9], #ejemplo: [60, -10, 50, 2], # Norte, Oeste, Sur, Este. Predeterminado: global
}, ‘tq_ml.grib’)

Hi Ian,

I have looked in the catalogue, and ERA5 complete (expver=1) for June onwards is not yet available.
Can you try some date in May and check if that works?

Best regards,
Milana