-
Notifications
You must be signed in to change notification settings - Fork 2
/
granules.yaml
107 lines (97 loc) · 3.8 KB
/
granules.yaml
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
# Connection and workspace settings
host: http://<geoserver URL>/geoserver/rest/
# Also possible via GEOSERVER_USER env variable. If neither are given, the default "admin" will be used
user: <geoserver username>
# Also possible via GEOSERVER_PASSWORD env variable. If neither are given, the default "geoserver" will be used
passwd: <geoserver password>
workspace: <name of the workspace>
store: <name of the layer>
# Internal path to directory within Geoserver where images are placed
geoserver_target_dir: /mnt/images/this/layers/own/directory
# Whether to keep the subpath given with the filename in program arguments
# This should be true if the images are placed in subdirectories of the target directory
keep_subpath: false
# For S3, use the https address of the bucket:
# geoserver_target_dir: https://<bucket name>.<host address>
# Path to the base of image directory _outside_ the Geoserver.
# This is used only with "posix" filesystems when:
# writing the WKT1 file, if configured
# deleting files from filesystem with delete_old_granules_and_files.py
# exposed_base_dir: /path/to/somewhere
# The pattern of the filenames
# 20200812_0911_Meteosat-10_EPSG3035_airmass.tif
# 20200812_0911_Meteosat-10_EPSG3035_ash.tif
# ... and so on
# This will be used to select the correct layer, and to check for
# identity (see below)
file_pattern: "{start_time:%Y%m%d_%H%M}_{platform_name}_{areaname}_{productname}.{format}"
# The filename part to use for layer identification
layer_id: productname
# OR use a template for the layer name with items from file_pattern
# if layer_id given, this is ignored
# layer_name_template: optclass_{radar_name}
# For delete_old_granules_and_files.py
# Maximum age for granules, in minutes
# max_age: 1440
# Delete also the files from filesystem. Default: False. Requires exposed_base_dir to be set
# delete_files: true
# Check for other file name parts for identity if there already is a file
# within the given time distance. Do not add the image if all other parts match
# identity_check_seconds: 300 # 5 minutes
# Write this WKT1 string to "/path/to/{file_basename}.prj". Optional.
# This is needed if there's no projection information (that is
# supported by Geoserver) in the image files.
# write_wkt: 'PROJCS["World_Eckert_IV",GEOGCS["WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["degree",0.017453292519943295],AXIS["Longitude",EAST],AXIS["Latitude",NORTH]],PROJECTION["Eckert_IV"],PARAMETER["semi_minor",6378137.0],PARAMETER["central_meridian",0.0],UNIT["m",1.0],AXIS["x",EAST],AXIS["y",NORTH],AUTHORITY["EPSG","54012"]]'
# Map layer_id's to the actual layer names
layers:
airmass: satellite_geo_europe_seviri-15min_airmass
ash: satellite_geo_europe_seviri-15min_ash
# Layer options for delete granule layers when using layer_name_template instead of layer_id
# delete_granule_layer_options:
# radar:
# [
# fivim,
# fikan,
# fikes,
# fikor,
# fikuo,
# filuo,
# finur,
# fipet,
# fiuta,
# fianj,
# fivih,
# ]
# quantity: [dbzh, vrad]
log_config:
version: 1
formatters:
fmt:
format: "[%(asctime)s %(levelname)-8s %(name)s] %(message)s"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: fmt
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
level: DEBUG
formatter: fmt
filename: /path/to/log/dir/granules.log
when: midnight
interval: 1
backupCount: 10
loggers:
"":
level: DEBUG
handlers: [console, file]
propagate: false
"georest":
level: DEBUG
handlers: [console, file]
propagate: false
"georest.utils":
level: DEBUG
handlers: [console, file]
propagate: false