Skip to content
114 changes: 74 additions & 40 deletions data/weather/fetchAlcantara.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,89 @@

c = cdsapi.Client()

years = ['2015', '2016', '2017', '2018']
years = ["2015", "2016", "2017", "2018"]

for year in years:
print()
print(year)
print()
c.retrieve(
'reanalysis-era5-pressure-levels',
"reanalysis-era5-pressure-levels",
{
'product_type':'reanalysis',
'format':'netcdf',
'variable':[
'geopotential','temperature','u_component_of_wind',
'v_component_of_wind'
"product_type": "reanalysis",
"format": "netcdf",
"variable": [
"geopotential",
"temperature",
"u_component_of_wind",
"v_component_of_wind",
],
'pressure_level':[
'600',
'650','700','750',
'775','800','825',
'850','875','900',
'925','950','975',
'1000'
"pressure_level": [
"600",
"650",
"700",
"750",
"775",
"800",
"825",
"850",
"875",
"900",
"925",
"950",
"975",
"1000",
],
'year':[
year
"year": [year],
"month": [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
],
'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",
],
'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'
],
'time':[
'00:00','06:00','12:00',
'18:00'
],
'area': '1.5/314.25/-3.75/317.25'
"time": ["00:00", "06:00", "12:00", "18:00"],
"area": "1.5/314.25/-3.75/317.25",
},
'Alcantara_' + year + '_ERA-5.nc')
"Alcantara_" + year + "_ERA-5.nc",
)
114 changes: 74 additions & 40 deletions data/weather/fetchCLBI.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,89 @@

c = cdsapi.Client()

years = ['2015', '2016', '2017', '2018']
years = ["2015", "2016", "2017", "2018"]

for year in years:
print()
print(year)
print()
c.retrieve(
'reanalysis-era5-pressure-levels',
"reanalysis-era5-pressure-levels",
{
'product_type':'reanalysis',
'format':'netcdf',
'variable':[
'geopotential','temperature','u_component_of_wind',
'v_component_of_wind'
"product_type": "reanalysis",
"format": "netcdf",
"variable": [
"geopotential",
"temperature",
"u_component_of_wind",
"v_component_of_wind",
],
'pressure_level':[
'600',
'650','700','750',
'775','800','825',
'850','875','900',
'925','950','975',
'1000'
"pressure_level": [
"600",
"650",
"700",
"750",
"775",
"800",
"825",
"850",
"875",
"900",
"925",
"950",
"975",
"1000",
],
'year':[
year
"year": [year],
"month": [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
],
'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",
],
'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'
],
'time':[
'00:00','06:00','12:00',
'18:00'
],
'area': '-4.5/324/-7.5/326.25'
"time": ["00:00", "06:00", "12:00", "18:00"],
"area": "-4.5/324/-7.5/326.25",
},
'CLBI_' + year + '_ERA-5.nc')
"CLBI_" + year + "_ERA-5.nc",
)
114 changes: 74 additions & 40 deletions data/weather/fetchSpaceportAmerica.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,89 @@

c = cdsapi.Client()

years = ['2015', '2016', '2017', '2018']
years = ["2015", "2016", "2017", "2018"]

for year in years:
print()
print(year)
print()
c.retrieve(
'reanalysis-era5-pressure-levels',
"reanalysis-era5-pressure-levels",
{
'product_type':'reanalysis',
'format':'netcdf',
'variable':[
'geopotential','temperature','u_component_of_wind',
'v_component_of_wind'
"product_type": "reanalysis",
"format": "netcdf",
"variable": [
"geopotential",
"temperature",
"u_component_of_wind",
"v_component_of_wind",
],
'pressure_level':[
'600',
'650','700','750',
'775','800','825',
'850','875','900',
'925','950','975',
'1000'
"pressure_level": [
"600",
"650",
"700",
"750",
"775",
"800",
"825",
"850",
"875",
"900",
"925",
"950",
"975",
"1000",
],
'year':[
year
"year": [year],
"month": [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
],
'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",
],
'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'
],
'time':[
'00:00','06:00','12:00',
'18:00'
],
'area': '34.5/252/31.5/254.25'
"time": ["00:00", "06:00", "12:00", "18:00"],
"area": "34.5/252/31.5/254.25",
},
'SpaceportAmerica_' + year + '_ERA-5.nc')
"SpaceportAmerica_" + year + "_ERA-5.nc",
)
Loading