-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update requirements and python3 instructions (#92)
* update requirements and python3 instructions * update GitHub actions * update ES8 settings * fix ref * use ES keyword parameters * remove setup step from README * f-strings housekeeping * fixes * Update search.py * ES: remove option for index basename * Order query results of get-bps-metadata.sh - Add pypandoc as requirements-dev.txt * Update default.env for ES8 setup * Use WDR_SEARCH_INDEX_BASENAME config in search.py * Bump version to 0.2.dev0 * Remove'_ type': '_doc'c'; removed in ES8 * Minor README.md fixes * Improve registry.py logging and revised save function for consistent error handling * Added missing commands in data-registry-ingest.sh - remove double print(count) * Syntax fix in UVIndex.get_waf_path() * Typo fix for UVIndex.station.gaw_id * Uncomment commands in data-registry-ingest.sh meant for testing * Flake8 fixes and formatting adjustments * flake8 fix * Update debian/control to reflect dependency changes * Update requirements-dev.txt --------- Co-authored-by: Kevin Ngai <ngaik@woudc-px-dev3.cmc.ec.gc.ca>
- Loading branch information
1 parent
27cfe72
commit ad9fa68
Showing
35 changed files
with
492 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,60 @@ | ||
# The purpose of this script is to ingest all of the operational WOUDC Archive datasets and rename the generated ingest reports to avoid overwriting | ||
# Inital setup and table initialization of WOUDC Data Registry is required to run this script | ||
# Replace YYYY-MM-DD with today's date before proceeding | ||
|
||
woudc-data-registry data ingest /path/to/TotalOzone_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/TotalOzone_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/TotalOzone_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/TotalOzone_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzone_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzone_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/TotalOzone_2.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/TotalOzone_2.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/TotalOzone_2.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/TotalOzone_2.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzone_2.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzone_2.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Broad-band_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Broad-band_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Broad-band_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Broad-band_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Broad-band_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Broad-band_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Broad-band_2.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Broad-band_2.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Broad-band_2.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Broad-band_2.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Broad-band_2.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Broad-band_2.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Lidar_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Lidar_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Lidar_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Lidar_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Lidar_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Lidar_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Multi-band_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Multi-band_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Multi-band_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Multi-band_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Multi-band_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Multi-band_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/RocketSonde_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/RocketSonde_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/RocketSonde_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/RocketSonde_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/RocketSonde_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/RocketSonde_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/OzoneSonde_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/OzoneSonde_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/OzoneSonde_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/OzoneSonde_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/OzoneSonde_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/OzoneSonde_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/TotalOzoneObs_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/TotalOzoneObs_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/TotalOzoneObs_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/TotalOzoneObs_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzoneObs_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/TotalOzoneObs_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Spectral_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Spectral_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Spectral_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Spectral_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Spectral_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Spectral_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/Spectral_2.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/Spectral_2.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/Spectral_2.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/Spectral_2.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/Spectral_2.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/Spectral_2.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/UmkehrN14_1.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/UmkehrN14_1.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/UmkehrN14_1.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/UmkehrN14_1.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/UmkehrN14_1.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/UmkehrN14_1.0_1_run_report | ||
|
||
woudc-data-registry data ingest /path/to/UmkehrN14_2.0_1 -y -r /path/to/operator/report | ||
mv /path/to/operator/report/operator-report.csv /path/to/operator/report/UmkehrN14_2.0_1.csv | ||
mv /path/to/operator/report/run_report /path/to/operator/report/UmkehrN14_2.0_1_run_report | ||
woudc-data-registry data ingest /apps/data/web/woudc-archive/Archive-NewFormat/UmkehrN14_2.0_1 -y -r /apps/data/wdr-ingest/YYYY-MM-DD | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/operator-report.csv /apps/data/wdr-ingest/YYYY-MM-DD/UmkehrN14_2.0_1.csv | ||
mv /apps/data/wdr-ingest/YYYY-MM-DD/run_report /apps/data/wdr-ingest/YYYY-MM-DD/UmkehrN14_2.0_1_run_report | ||
|
||
## Table generation process into registry for totalozone, uv-index and ozonesonde | ||
woudc-data-registry product totalozone generate -y /apps/data/web/woudc-archive/Archive-NewFormat/ | ||
woudc-data-registry product uv-index generate -y /apps/data/web/woudc-archive/Archive-NewFormat/ | ||
woudc-data-registry product ozonesonde generate -y /apps/data/web/woudc-archive/Archive-NewFormat/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.