Compare commits
2 commits
ee81af22f0
...
c158ab159a
Author | SHA1 | Date | |
---|---|---|---|
c158ab159a | |||
231ae2dcca |
2 changed files with 9 additions and 3 deletions
|
@ -36,13 +36,13 @@ for path in getattr(args, 'csv-report-details'):
|
||||||
for key in bucket.each_matching_key(radars, report.timestamp_start, report.timestamp_end):
|
for key in bucket.each_matching_key(radars, report.timestamp_start, report.timestamp_end):
|
||||||
if archive.is_downloaded(key):
|
if archive.is_downloaded(key):
|
||||||
if not args.quiet:
|
if not args.quiet:
|
||||||
print(f"event {report.id} key {key} already archived")
|
print(f"event {report.id} key {key} type {report.event_type} already archived")
|
||||||
else:
|
else:
|
||||||
if not args.quiet:
|
if not args.quiet:
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
print(f"event {report.id} key {key} would archive")
|
print(f"event {report.id} key {key} type {report.event_type} would archive")
|
||||||
else:
|
else:
|
||||||
print(f"event {report.id} key {key} archiving")
|
print(f"event {report.id} key {key} type {report.event_type} archiving")
|
||||||
|
|
||||||
if not args.dry_run:
|
if not args.dry_run:
|
||||||
archive.download(key)
|
archive.download(key)
|
||||||
|
|
|
@ -29,6 +29,12 @@ create table nexrad_storm_report (
|
||||||
tornado_f_rating TEXT
|
tornado_f_rating TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create index nexrad_storm_report_episode_id_idx on nexrad_storm_report (episode_id);
|
||||||
|
create index nexrad_storm_report_event_type_idx on nexrad_storm_report (event_type);
|
||||||
|
create index nexrad_storm_report_wfo_idx on nexrad_storm_report (wfo);
|
||||||
|
create index nexrad_storm_report_timestamp_start_idx on nexrad_storm_report (timestamp_start);
|
||||||
|
create index nexrad_storm_report_timestamp_end_idx on nexrad_storm_report (timestamp_end);
|
||||||
|
|
||||||
select
|
select
|
||||||
AddGeometryColumn('nexrad_storm_report', 'coord_start', 4326, 'POINT', 'XY', 0),
|
AddGeometryColumn('nexrad_storm_report', 'coord_start', 4326, 'POINT', 'XY', 0),
|
||||||
CreateSpatialIndex('nexrad_storm_report', 'coord_start');
|
CreateSpatialIndex('nexrad_storm_report', 'coord_start');
|
||||||
|
|
Loading…
Add table
Reference in a new issue