Skip to content

Commit 2d98906

Browse files
committed
add E-OBS
1 parent 3138969 commit 2d98906

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dataset,dataset_type,filename_variable,cds_request_variable,cds_years_start,cds_years_end,cds_product_type,cds_grid_resolution,cds_version,input_path,output_path,script,product_type,temporal_resolution,interpolation,interpolation_file
2+
insitu-gridded-observations-europe,observation,tp,mean_temperature,1950,2024,ensemble_mean,0_1deg,31_0e,CDS,/lustre/gmeteo/WORK/DATA/C3S-CDS/ERA5_temp/,scripts/download/insitu-gridded-observations-europe.py,raw,daily,native,None
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import sys
2+
sys.path.append('../utilities')
3+
from utils import download_files
4+
5+
6+
7+
8+
def get_output_filename(row,dataset,year):
9+
10+
var=row["filename_variable"]
11+
date=f"{year}"
12+
return f"{var}_{dataset}_{date}.nc"
13+
14+
def create_request(row,year):
15+
var=row["cds_request_variable"]
16+
product_type=row["cds_product_type"]
17+
grid_resolution=row["cds_grid_resolution"]
18+
version=row["cds_version"]
19+
#year=yea
20+
21+
22+
23+
return {
24+
"variable": [var],
25+
"product_type": product_type,
26+
"grid_resolution": grid_resolution,
27+
"period": "full_period",
28+
"version": version,
29+
}
30+
31+
def main():
32+
dataset = "insitu-gridded-observations-europe"
33+
variables_file_path = f"../../requests/{dataset}.csv"
34+
download_files(dataset, variables_file_path, create_request, get_output_filename)
35+
36+
if __name__ == "__main__":
37+
main()

0 commit comments

Comments
 (0)