Page info |
---|
infoType | Modified date |
---|
prefix | Last modified on |
---|
type | Flat |
---|
|
Show If |
---|
|
Major modification in progress for this article - please DO NOT UPDATE THIS PAGE or your edits will get overwritten when the new modified article will be published. Please edit the working copy of this page in the In Progress New Knowledge Base articles section. |
Note |
---|
title | ERA-Interim production stopped on 31st August 2019 |
---|
|
For the time being and until further notice, ERA-Interim (1st January 1979 to 31st August 2019) shall continue to be accessible access through the ECMWF Web API stopped on 01 June 2023 Its successor . ERA5 is now available from the Climate Data Store (CDS) (What are the changes from ERA-Interim to ERA5?) and users are strongly advised to migrate to ERA5 (How to download ERA5). |
...
For those users who still need access to ERA-Interim after 01 June 2023 (subject to further notice), they can do so via the Climate Data Store (CDS) API. |
Info |
---|
icon | false |
---|
title | Table of Contents |
---|
|
|
Daily data
When extracting ERA-Interim daily data from the data archive at ECMWF you archive you can specify:
A single date, for example the 1st of January 2015:
...
Monthly data
When you extract monthly means, the monthly means are timestamped to the first day of the month, and you have to extract for exactly these dates. So to extract monthly means for all of 2015 you need to use this syntax to specify dates:
...
Code Block |
---|
language | py |
---|
title | Code example |
---|
linenumbers | true |
---|
collapse | true |
---|
|
#!/usr/bin/env python
# This script extracts the average daily precipitation for each month.
from datetime import datetime, timedelta
# Change the start and end dates to your desired date range. Monthly data is specified as the 1st of the month.
# For example, to get January 1979 to December 1980, use (1979, 1, 1) and (1980, 12, 1), respectively
start = datetime(1979, 1, 1)
end = datetime(1980, 12, 1)
datelist = [start.strftime('%Y-%m-%d')]
while start <= end:
start += timedelta(days=32)
datelist.append( datetime(start.year, start.month, 1).strftime('%Y-%m-%d') )
datestring = "/".join(datelist)
from ecmwfapi import ECMWFDataServer
serverc = ECMWFDataServercdsapi.Client()
serverc.retrieve({
"class": "ei",
"dataset": "interim",'reanalysis-era-interim',{
"'date"': datestring,
"expver": "1",
"grid": "'grid': '0.75/0.75"',
"'levtype"': "'sfc"',
"'param"': "'tp"',
"'step"': "'0-/12"',
"'stream"': "'mdfa"',
"'type"': "'fc"',
"'area" ': "'75/-15/30/35"',
"'format"': "'netcdf"',
"target": ",
},'tp-mdfa-197901to198012.nc",
}') |
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | CKB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("era-interim","python") |
---|
labels | era-interim python |
---|
|
...