2025-02-15 01:18:18 -05:00
|
|
|

|
|
|
|
|
2025-02-12 10:06:31 -05:00
|
|
|
# NEXRAD Level II Archive Tool
|
|
|
|
|
2025-02-15 19:45:28 -05:00
|
|
|
This tool uses
|
|
|
|
[Spatialite](https://www.gaia-gis.it/fossil/libspatialite/index)
|
|
|
|
in conjunction with the
|
|
|
|
[NCEI Storm Events Database](https://www.ncei.noaa.gov/pub/data/swdi/stormevents/csvfiles/)
|
2025-02-12 10:06:31 -05:00
|
|
|
to archive only NEXRAD Level II data for which storms were recorded
|
|
|
|
by the National Weather Service. Using the start and end times and
|
2025-02-17 11:05:21 -05:00
|
|
|
coordinates of a given storm event, this tool is able to query and
|
2025-02-15 19:45:28 -05:00
|
|
|
filter objects in the
|
|
|
|
[NEXRAD Level II Amazon bucket](https://registry.opendata.aws/noaa-nexrad/),
|
|
|
|
allowing one to only archive volume scans for which storms were noted,
|
|
|
|
from the appropriate radar sites.
|
2025-02-12 10:06:31 -05:00
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
Simply run `make` to produce a Docker image pre-populated with the
|
|
|
|
NEXRAD radar site database.
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
Invoke `sh run.sh` to run this archival tool, passing two arguments:
|
|
|
|
|
|
|
|
* The path to a storm events database CSV export file, whose name
|
|
|
|
as obtained from the NCEI begins with `StormEvents_details_`. Only
|
|
|
|
these files contain the start and end coordinates of a storm which
|
|
|
|
are used to select data from the correct radar sites.
|
|
|
|
|
|
|
|
* A path to a destination directory where archived data shall be
|
|
|
|
downloaded. Note that files downloaded under this directory will
|
|
|
|
be organized in the `YYYY/MM/DD/SITE/` hierarchy.
|
|
|
|
|
|
|
|
Other optional arguments will be passed through to the
|
|
|
|
`bin/nexrad-archive` executable within the Docker image:
|
|
|
|
|
|
|
|
* `--dry-run`
|
|
|
|
|
|
|
|
This will avoid actually performing any archiving; instead, the
|
2025-02-12 14:04:45 -05:00
|
|
|
tool will indicate what actions it would take.
|
2025-02-12 10:06:31 -05:00
|
|
|
|
|
|
|
* `--quiet`
|
|
|
|
|
|
|
|
Suppresses standard output.
|
2025-02-15 21:51:22 -05:00
|
|
|
|
|
|
|
* `--exclude="Event Type"`
|
|
|
|
|
|
|
|
Exclude one or more event types from consideration for archival.
|
|
|
|
These event types are
|
|
|
|
[documented](https://www.ncei.noaa.gov/pub/data/swdi/stormevents/csvfiles/Storm-Data-Bulk-csv-Format.pdf)
|
2025-02-17 10:41:09 -05:00
|
|
|
by the NCEI. Cannot be specified alongside `--type`. Can be
|
|
|
|
specified more than once.
|
2025-02-16 11:13:41 -05:00
|
|
|
|
|
|
|
* `--type="Event Type"`
|
|
|
|
|
2025-02-16 11:59:28 -05:00
|
|
|
Explicitly specify which event types to archive. Cannot be
|
2025-02-17 10:41:09 -05:00
|
|
|
specified alongside `--exclude`. Can be specified more than once.
|