Ask Your Question
1

Python scripts to download ERA5 datasets from CDS

asked 2021-02-10 22:23:56 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >5 is welcome to improve it.

I would like to share with you my Python scripts to download ECMWF ERA5 reanalysis datasets from the Copernicus Climate Data Store (CDS) https://cds.climate.copernicus.eu, required by the CROCO model to perform simulations with atmospheric forcing. The Git-Hub repository is https://github.com/d4viddonoso/ERA5-r...

Please, let me know if you have any comment or issue using them.

Cheers, David.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2021-04-12 23:03:28 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >5 is welcome to improve it.

Hi Beaufort,

I'm glad to hear that the code is useful to you and I appreciate your feedback :-)

Regards, David.

edit flag offensive delete link more
0

answered 2021-05-25 21:07:50 +0200

Thank you very much! Your code was very useful for me too.

However, did you notice any change in the magnitude of the SSR values when comparing ERA-Interim and ERA5 for the same month? I am using ERA5 for an interannual simulation and my simulation is cooling down too much because of the smaller values of SSR in ERA5. I am wondering if this happened to someone else or if I downloaded something wrong when adapting your code. The other variables used for the blk files have the same magnitude in ERA5 and ERA-interim.

Thank you! All the best, Caique.

edit flag offensive delete link more

Comments

I noticed that you are downloading mean fluxes instead of the surface solar radiation as in the original ERA-interimrequest.py. Is there a reason for that?

Caique Dias Luko gravatar imageCaique Dias Luko ( 2021-05-25 21:14:12 +0200 )edit

Hi Caique, please, take a look into "ERA5_variables.json" file. There you will find the variable SSR (surface net solar radiation [J m-2]), are you using this one to build your bulk files?

ddonoso gravatar imageddonoso ( 2021-05-25 23:21:22 +0200 )edit

Yes, I am using this one to build my bulk files. I searched for the variables that had the same name in the original ERAInterimrequest.py. However, I am having this problem with the magnitude of the SSR... Is there a reason you chose the mean fluxes variables? Maybe this can fix my problem too.

Caique Dias Luko gravatar imageCaique Dias Luko ( 2021-05-25 23:29:42 +0200 )edit

The SSR's parameter ID ("176.128") is the same between my code and of "ERA-Interim_request.py", so the variables should be the same. A good test for you would be to download a little example file of SSR from ERA5 at the CDS website and then compare it with the downloaded using the ERA-Interim code.

ddonoso gravatar imageddonoso ( 2021-05-26 00:04:58 +0200 )edit

And I'm sorry, I'm not pretty sure why you ask me for "mean fluxes variables", may you explain me that in a more detailed way?

ddonoso gravatar imageddonoso ( 2021-05-26 00:07:31 +0200 )edit
0

answered 2021-04-09 22:31:29 +0200

Just wanted to say thanks - this is a lot neater than the code I bashed together so thank you for making this available! Seems to work very well.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-02-10 22:23:56 +0200

Seen: 905 times

Last updated: May 25