/
trollstalker_config.ini_template
136 lines (112 loc) · 5.09 KB
/
trollstalker_config.ini_template
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
# This config is used in Trollstalker.
[noaa_hrpt]
# posttroll message topic that provides information on new files
# This could follow the pytroll standard:
# https://github.com/mraspaud/pytroll/wiki/Metadata
topic=/HRPT/l1b/dev/mystation
# input directory that trollstalker watches
directory=/path/to/satellite/data/
# filepattern of the input files for trollstalker
# uses the trollsift syntax:
# http://trollsift.readthedocs.org/en/latest/index.html
filepattern={path}hrpt_{platform_name}_{start_time:%Y%m%d_%H%M}_{orbit_number:05d}.l1b
# instrument names for mpop
instruments=avhrr/3,mhs,amsu-b,amsu-a,hirs/3,hirs/4
# logging config for trollstalker. Comment out to log to console instead.
stalker_log_config=/usr/local/etc/pytroll/trollstalker_logging.ini
# logging level, if stalker_log_config is not set above. Possible values are:
# DEBUG, INFO, WARNING, ERROR, CRITICAL
loglevel=DEBUG
# inotify events that trigger trollstalker to send messages
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
# port to send the posttroll messages to, optional so use "0" to take a random
# free port.
posttroll_port=0
# nameserver hosts to register publisher
# WARNING:
# if nameservers option is set, address broadcasting via multicasting is not used any longer.
# The corresponding nameserver has to be started with command line option "--no-multicast".
#nameservers=localhost
# use an alias to convert from platform in the filename to OSCAR naming
alias_platform_name = noaa18:NOAA-18|noaa19:NOAA-19
# Keep 10 last events in history, and process only if the new event
# isn't in this history. If option not given, or set to zero (0), all
# matching events will be processed
history=10
[hrit]
topic=/HRIT/topic/or/something/
directory=/path/to/satellite/data/
filepattern={path}H-000-{platform_name:4s}__-{orig_platform_name:4s}________-{channel_name:_<9s}-{segment:_<9s}-{start_time:%Y%m%d%H%M}-__
instruments=seviri
stalker_log_config=/usr/local/etc/pytroll/trollstalker_logging.ini
loglevel=DEBUG
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
posttroll_port=0
alias_platform_name = MSG2:Meteosat-9|MSG3:Meteosat-10
[himawari8]
topic=/H8/topic/or/something/
directory=/path/to/satellite/data/
filepattern = {path}IMG_{platform_name:4s}{channel:3s}_{time:%Y%m%d%H%M}_{segment}
# define new variable "platform_name" because it is not included in the filepattern
var_platform_name = himawari8
# define new datetime variable aligned/ceiled to 15 minutes intervals
# (Himawari filename timestampes are not constant for a timeslot)
var_h8_gather_time={time:%Y%m%d%H%M|align(15)}
# override start_time and end_time because default values are derived from {time} in
# filepattern and that is not constant for all files of a timeslot
# "end_time" should be 1 interval after start_time (3rd parameter of align function)
var_start_time = {time:%Y%m%d%H%M%S|align(15)}
var_end_time = {time:%Y%m%d%H%M%S|align(15,0,1)}
instruments = ahi
stalker_log_config=/usr/local/etc/pytroll/trollstalker_logging.ini
loglevel=DEBUG
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
posttroll_port=0
[avhrrl0]
topic=/new/file/yay
# /HRPT/L1b/dev/hki
directory=/home/lahtinep/data/satellite/polar/hrpt
publish_port=
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
loglevel=DEBUG
stalker_log_config=/home/lahtinep/Software/pytroll/config_files/stalker_logging.ini
filepattern={path}AVHR_HRP_00_{platform_name}_{start_time:%Y%m%d%H%M%S}Z_{end_time:%Y%m%d%H%M%S}Z_N_O_{processing_time:%Y%m%d%H%M%S}Z
instruments=avhrr-3
alias_platform_name=M01:Metop-B|M02:Metop-A|noaa15:NOAA-15|noaa16:NOAA-16|noaa18:NOAA-18|noaa19:NOAA-19|metop01:Metop-B
history=0
[amsual0]
topic=/new/file/yay
# /HRPT/L1b/dev/hki
directory=/home/lahtinep/data/satellite/polar/hrpt
publish_port=
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
loglevel=DEBUG
stalker_log_config=/home/lahtinep/Software/pytroll/config_files/stalker_logging.ini
filepattern={path}AMSA_HRP_00_{platform_name}_{start_time:%Y%m%d%H%M%S}Z_{end_time:%Y%m%d%H%M%S}Z_N_O_{processing_time:%Y%m%d%H%M%S}Z
instruments=amsu-a
alias_platform_name=M01:Metop-B|M02:Metop-A|noaa15:NOAA-15|noaa16:NOAA-16|noaa18:NOAA-18|noaa19:NOAA-19|metop01:Metop-B
history=0
[mhsl0]
topic=/new/file/yay
# /HRPT/L1b/dev/hki
directory=/home/lahtinep/data/satellite/polar/hrpt
publish_port=
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
loglevel=DEBUG
stalker_log_config=/home/lahtinep/Software/pytroll/config_files/stalker_logging.ini
filepattern={path}MHSx_HRP_00_{platform_name}_{start_time:%Y%m%d%H%M%S}Z_{end_time:%Y%m%d%H%M%S}Z_N_O_{processing_time:%Y%m%d%H%M%S}Z
instruments=mhs
alias_platform_name=M01:Metop-B|M02:Metop-A|noaa15:NOAA-15|noaa16:NOAA-16|noaa18:NOAA-18|noaa19:NOAA-19|metop01:Metop-B
history=0
[hirsl0]
topic=/new/file/yay
# /HRPT/L1b/dev/hki
directory=/home/lahtinep/data/satellite/polar/hrpt
publish_port=
event_names=IN_CLOSE_WRITE,IN_MOVED_TO
loglevel=DEBUG
stalker_log_config=/home/lahtinep/Software/pytroll/config_files/stalker_logging.ini
filepattern={path}HIRS_HRP_00_{platform_name}_{start_time:%Y%m%d%H%M%S}Z_{end_time:%Y%m%d%H%M%S}Z_N_O_{processing_time:%Y%m%d%H%M%S}Z
instruments=hirs
alias_platform_name=M01:Metop-B|M02:Metop-A|noaa15:NOAA-15|noaa16:NOAA-16|noaa18:NOAA-18|noaa19:NOAA-19|metop01:Metop-B
history=0