# Adding  grid parameter raise  "cost limit exceeded” error. 

**URL:** <https://forum.ecmwf.int/t/adding-grid-parameter-raise-cost-limit-exceeded-error/13082>\
**Category:** API\
**Tags:** api, era5\
**Created:** [15 May 2025 10:54 UTC](https://forum.ecmwf.int/t/adding-grid-parameter-raise-cost-limit-exceeded-error/13082 "2025-05-15T10:54:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_shaaban](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Ahmed\_shaaban](https://forum.ecmwf.int/u/Ahmed_shaaban)\
**Post date:** [15 May 2025 10:54 UTC](https://forum.ecmwf.int/t/adding-grid-parameter-raise-cost-limit-exceeded-error/13082/1 "2025-05-15T10:54:18Z")

</div>

All,  
I am trying to dowload daily ERA5 on single level using the script below which works fine except when adding the grid parameter. I choosed to download 1x1 or 2x2 which should yield in smaller file size yet surprisngly, I got error of exceeding limit when adding “grid: [2,2,]” or [1,1].

> import cdsapi
> 
> client = cdsapi.Client()  
> client.retrieve(‘derived-era5-single-levels-daily-statistics’,  
> {  
> “product\_type”: “reanalysis”,  
> “variable”: [“10m\_u\_component\_of\_wind”],  
> “year”: “2023”,  
> “month”: [  
> “01”, “02”, “03”,  
> “04”, “05”, “06”,  
> “07”, “08”, “09”,  
> “10”, “11”, “12”  
> ],  
> “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”  
> ],  
> “daily\_statistic”: “daily\_mean”,  
> “time\_zone”: “utc+00:00”,  
> “frequency”: “1\_hourly”,  
> “area”: [90,-180,0,180], # north, west, south, and east  
> “grid”: [2,2], # latitude and longitude grid: east-west and north-south.
> 
> },
> 
> ```
> "test.nc")
> 
> ```

Any ideas.  
Thanks

---

<div class="post-metadata">

**Author:** ![Ahmed\_shaaban](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Ahmed\_shaaban](https://forum.ecmwf.int/u/Ahmed_shaaban)\
**Post date:** [22 May 2025 19:30 UTC](https://forum.ecmwf.int/t/adding-grid-parameter-raise-cost-limit-exceeded-error/13082/2 "2025-05-22T19:30:10Z")

</div>

This happend due to the syntax of the `grid: [2,2]` which raise issue sometimes, the safer choise is to use the following synatx `grid: "2/2"` .
