...
Use the filename, or part of it, as the locationId for the TimeSeries that will be imported, using Regular Expressions. When a match of the pattern in the filename is found, this will overrule the location Id for the timeseries being imported.
examples
file name | pattern | location id |
---|---|---|
PObs-1234.txt | [^-][-](.*).{4} | 1234 |
H1234.txt | .{1}(.*).{4} | 1234 |
BAFU-2021-PegelRadarSchacht.csv | (.*)[-][^-]* | BAFU-2021 |
Pegel-Radar-Schacht-BAFU2021.csv | ([^-]*)\.csv | BAFU2021 |
You can test and build your expression with
...
Available since 2020.02. Default is false. If it is set to true, FileNotFound warnings are only logged in debug mode. This is a useful options in cases where a fixed list of files is sourced (eg one file per location in a locationSet), but where incidentally files are not available.
idMapId
ID of the IdMap used to convert external parameterId's and locationId's to internal parameter and location Id's. Each of the formats specified will have a unique method of identifying the id in the external format. See section on configuration for Mapping Id's units and flags.
...