/
lisa.conf
171 lines (141 loc) · 4.83 KB
/
lisa.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# -------------------------------------------------------------------
# - NAME: lisa.conf
# - AUTHOR: Reto Stauffer
# - DATE: 2017-08-04
# -------------------------------------------------------------------
# - DESCRIPTION: This is one of the config files I've used to download
# some reforecast data. You can use this file as a
# template for your own bulk actions if needed.
# -------------------------------------------------------------------
# - EDITORIAL: 2017-08-04, RS: Created file on thinkreto.
# -------------------------------------------------------------------
# - L@ST MODIFIED: 2017-08-20 10:46 on pc24-c707
# -------------------------------------------------------------------
[main]
# Sleep between two downloads to try to avoid getting
# blacklisted (too many request per time interval)
sleeptime = 10
# Where to store the files
outfile = data/%Y/%m/GFSV2_%Y%m%d%H_<param>_<type>.grib2
# Date range for which the forecasts should be downloaded.
# Have to be in format YYYY-mm-dd.
from = 2017-07-01
to = 2017-07-01
# Integer. If set it has to be 1-12. If 1 only January forecasts
# would be downloaded for instance.
# NOTE: this is the default config file wherefore they are not
# set here. If you create your own config file you can specify
# the date range for downloading the data.
only = 7
# The forecast steps which have to be downloaded. List of integers.
steps = 6,9,12,15,18,21,24,27,30
# For subsetting after downloading (requires wgrib2)
lonmin = 5
lonmax = 17
latmin = 45
latmax = 54
# -------------------------------------------------------------------
# PyCurl settings
# -------------------------------------------------------------------
# Curl settings
[curl]
# Where to log (delete if not required)
logfile = curl.log
# Timeout for the curl requests
timeout = 600
# Number of retries if download fails
retries = 0
# Sleep between two retries
sleeptime = 10
# -------------------------------------------------------------------
# FTP specifications
# -------------------------------------------------------------------
[ftp]
# %Y/%m/%d/%H will be replaced by the date specified.
# <type> will be replaced by the type, e.g,. c00 for control run
# or p01/.../p10 for the perturbations. Or, if set, only
# mean and sprd.
baseurl = ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/%Y/%Y%m/%Y%m%d%H/<type>/latlon
# Similar for file name
filename = <param>_%Y%m%d%H_<type>.grib2
# Defines the types of files which have to be downloaded if
# the [data xxxx] config "members" is TRUE or FALSE.
if_members = c00,p01,p02,p03,p04,p05,p06,p07,p08,p09,p10
ifnot_members = mean,sprd
# -------------------------------------------------------------------
# The [data xxx] blocks define what to download. 'xxx' here represents
# a parameter (or variable).
# The variable information of the GFSv2 can be found here:
# - https://www.esrl.noaa.gov/psd/forecasts/reforecast2/README.GEFS_Reforecast2.pdf
# Last accessed: 2017-08-05, Reto.
#
# Each of these blocks has two options. 'members' is required,
# 'levels' optional and only for pressure level data. Two examples:
#
# [data cape_sfc]
# members = TRUE
#
# ... will download surface cape, member by member (control run and
# the ten ensemble members of the GFS reforecast v2).
#
# [data tmp_pres]
# members = FALSE
# levels = 850,700,500
#
# ... will download temperature on pressure levels, mean and spread
# only for the three levels 850/700/500 millibars or hectopascal.
#
# NOTE: this is the default config file. The default config file
# has no data/variable definition at all. However, if you create
# a personal config file you can specify them as shown below
# (simply uncomment some of the blocks or deifne your own).
# -------------------------------------------------------------------
# Temperature on pressure levels
[data tmp_pres]
members = FALSE
levels = 850,700,500
# Zonal wind component on pressure levels
[data ugrd_pres]
members = FALSE
levels = 700,500
# Meridional wind component on pressure levels
[data vgrd_pres]
members = FALSE
levels = 700,500
# Geopotential height on pressure levels
[data hgt_pres]
members = FALSE
levels = 850,700,500
# Surface cape
[data cape_sfc]
members = TRUE
# 3h-maximum temperature in 2m above ground
[data tmax_2m]
members = FALSE
# Acumulated Precipitation
[data apcp_sfc]
members = TRUE
# Downward shortwave radiation flux
[data dswrf_sfc]
members = FALSE
# Mean sea level pressure
[data pres_msl]
members = FALSE
# Precip water
[data pwat_eatm]
members = FALSE
# Sunshine surface
[data suns_sfc]
members = FALSE
# Total column integrated condensate
[data tcolc_eatm]
members = FALSE
# Total cloud cover in percent
[data tcdc_eatm]
members = FALSE
# Porential vorticity on q=320K isentropic surf
[data pvort_isen]
members = FALSE
# Vertical velocity at 850 hPa
[data vvel_850]
members = FALSE