Skip to content

Commit

Permalink
brackets around product_type keyword solved the truncated download is…
Browse files Browse the repository at this point in the history
…sue (super wierd) I was retrieving only to 6th septemebr on download attempt at 23 sept
  • Loading branch information
joelfiddes committed Sep 24, 2024
1 parent 40b8f6c commit e091500
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions TopoPyScale/fetch_era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,31 +155,7 @@ def era5_request_surf(dataset, year, month, bbox, target, product, time, output_
Store to disk dataset as indicated
"""
print( {'variable': ['geopotential', '2m_dewpoint_temperature', 'surface_thermal_radiation_downwards',
'surface_solar_radiation_downwards','surface_pressure',
'Total precipitation', '2m_temperature', 'TOA incident solar radiation',
'friction_velocity', 'instantaneous_moisture_flux', 'instantaneous_surface_sensible_heat_flux'
],
'product_type': [product],
"area": bbox,
'year': year,
'month': '%02d'%(month),
'day': ['01', '02', '03',
'04', '05', '06',
'07', '08', '09',
'10', '11', '12',
'13', '14', '15',
'16', '17', '18',
'19', '20', '21',
'22', '23', '24',
'25', '26', '27',
'28', '29', '30',
'31'
],
'time': time,
'grid': [0.25, 0.25],
'format': output_format
})

c = cdsapi.Client()
c.retrieve(
dataset,
Expand Down Expand Up @@ -232,7 +208,7 @@ def era5_request_plev(dataset, year, month, bbox, target, product, time, plevels
c.retrieve(
dataset,
{
'product_type': product,
'product_type': [product],
'format': output_format,
"area": bbox,
'variable': [
Expand Down

0 comments on commit e091500

Please sign in to comment.