Closed peterdesmet closed 6 years ago
You mean adding a last modified date like this?
Unfortunately, directories are not objects (with properties) in S3, so we can't add a property like last modified
. As mentioned in this stackoverflow we'd need to keep our own log file to have that kind of information. Since we upload daily, we could have an automatically updated file radars.csv
in the root with:
bejab 2018-01-01
bewid 2017-12-06
...
Would that be sufficient?
Yes filling out your red box is what I meant. But one file with latest modification date for each radar would be good enough too.
I'll let @stijnvanhoey answer what deadline is possible for creating (and updating) such a file. 😊
I can quickly provide the following information:
last modified
(as this can be an historical file due to manual update/changes), but just the file with the most recent date in the filename.integration with the coverage action: coverage AND most recent file is deduced (looping once over the entire bucket)
@peterdesmet any preference in file naming? most_recent.csv
?
The code to create a file radars.csv
is integrated with the coverage procedure. Needs further testing and will be available asap. The file looks as follows:
countryradar,datetime
bejab,2016-10-09 23:50
bewid,2018-01-13 17:00
bezav,2016-10-09 23:50
bgvar,2016-10-09 23:55
ctcdv,2016-10-09 23:56
ctpda,2016-10-09 23:56
czbrd,2016-10-09 23:45
czska,2016-10-09 23:45
deboo,2018-01-15 07:30
...
First version of the file uploaded with the library (not yet the pipeline): check http://enram.github.io/data-repository/
The creation of the radars.csv
file is part of the daily data pipeline as well and running as required. We can later extend the functionality (automatic alerts,...), but closing this topic for now.
thanks for sorting this out so quickly!
Nice! Would maybe update header datetime
to datetime_latest_data
?
Hi guys,
I had a look at the repo to see if data is coming in regularly. The coverage.csv does come in handy then. One question though: what is the number you get in the column vp_files? The total number of vp's for the last day data was transferred? Or the total number of vp's that's available on the repo for that radar?
it's by day
Pretty sure it is the number of vp files for that date.
Thx!
By @adokter: