Skip to content

Instantly share code, notes, and snippets.

@lakshmanok
Last active January 13, 2022 06:55
Show Gist options
  • Save lakshmanok/77a1452f0b3d147aee01ad3fde495bc7 to your computer and use it in GitHub Desktop.
Save lakshmanok/77a1452f0b3d147aee01ad3fde495bc7 to your computer and use it in GitHub Desktop.
Downloading ERA5 temperature and precipitation
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[parameters]
client=cds
dataset=reanalysis-era5-single-levels
target_path=gs://YOUR-BUCKET-GOES-HERE/era5/{}/{}/{}.nc
partition_keys=
year
month
day
api_url=https://cds.climate.copernicus.eu/api/v2
api_key=YOUR-KEY-GOES-HERE
[selection]
product_type=reanalysis
format=netcdf
variable=
2m_temperature
total_precipitation
year=
2018
month=
01
06
day=
01
15
time=
00:00
06:00
12:00
18:00
area=
46
-79
35
-69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment