You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been attempting to download a .grib file from the CDS api. I intend to modify some of the values before feeding it into the ai-model. I was wondering if anyone had found a way to do this such that it can then be fed into the ai models? Every way I try to do this I get the following value error when I try to run fourcastnet with this file.
ValueError: operands could not be broadcast together with shapes (1,8,720,1440) (1,26,1,1)
It seems to me like there's pre-processing I need to do before feeding this file into the ai-models package, but I haven't been able to determine exactly what that is.
Does anyone know, or has anyone had success getting .grib files from CDS and then running fourcastnet or another ai model in this package on those files?
The code I'm using to obtain a grib file is as follows:
Hello,
I've been attempting to download a .grib file from the CDS api. I intend to modify some of the values before feeding it into the ai-model. I was wondering if anyone had found a way to do this such that it can then be fed into the ai models? Every way I try to do this I get the following value error when I try to run fourcastnet with this file.
ValueError: operands could not be broadcast together with shapes (1,8,720,1440) (1,26,1,1)
It seems to me like there's pre-processing I need to do before feeding this file into the ai-models package, but I haven't been able to determine exactly what that is.
Does anyone know, or has anyone had success getting .grib files from CDS and then running fourcastnet or another ai model in this package on those files?
The code I'm using to obtain a grib file is as follows:
import cdsapi
c = cdsapi.Client()
c.retrieve(
'reanalysis-era5-single-levels', # Dataset name
{'date': 20230110,
'time': 0,
'param': ['10u', '10v', '2t', 'sp', 'msl', 'tcwv', '100u', '100v'],
'level': [1000, 850, 500, 250, 50],
'grid': [0.25, 0.25],
'area': [90, 0, -90, 359.75],
'product_type': 'reanalysis'
}, 'Outputv3.grib')
The text was updated successfully, but these errors were encountered: