-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from aodn/RenameParquetDataQueries
RenameParquetDataQueries
- Loading branch information
Showing
164 changed files
with
8,135 additions
and
11,578 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .lib import ParquetDataQuery | ||
from .lib import DataQuery | ||
from .bin import create_aws_registry_dataset | ||
|
||
__all__ = ["ParquetDataQuery", "create_aws_registry_dataset"] | ||
__all__ = ["DataQuery", "create_aws_registry_dataset"] |
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,78 +1,47 @@ | ||
#!/usr/bin/env python3 | ||
import subprocess | ||
import sys | ||
|
||
ORGS = [ | ||
"csiro", | ||
"kordi", | ||
"bodc", | ||
"coriolis", | ||
"csio", | ||
"incois", | ||
"jma", | ||
"aoml", | ||
"nmdis", | ||
"meds", | ||
"kma", | ||
] | ||
|
||
|
||
def main(): | ||
# splitting the path in a few commands so that the clusters are being recreated to avoid memory issues: | ||
# task 1 | ||
# command = [ | ||
# "generic_cloud_optimised_creation", | ||
# "--paths", | ||
# "IMOS/Argo/dac/csiro", | ||
# "IMOS/Argo/dac/kordi", | ||
# "IMOS/Argo/dac/bodc", | ||
# "IMOS/Argo/dac/csio", | ||
# "IMOS/Argo/dac/incois", | ||
# "IMOS/Argo/dac/jma", | ||
# "--suffix", | ||
# "_prof.nc", | ||
# "--dataset-config", | ||
# "argo.json", | ||
# # "--clear-existing-data", | ||
# "--force-previous-parquet-deletion", | ||
# "--cluster-mode", | ||
# "coiled", | ||
# ] | ||
# | ||
# # Run the command | ||
# subprocess.run(command, check=True) | ||
|
||
# task 2 | ||
command = [ | ||
"generic_cloud_optimised_creation", | ||
"--paths", | ||
"IMOS/Argo/dac/coriolis", | ||
"--suffix", | ||
"_prof.nc", | ||
"--dataset-config", | ||
"argo.json", | ||
"--force-previous-parquet-deletion", | ||
"--cluster-mode", | ||
"coiled", | ||
] | ||
subprocess.run(command, check=True) | ||
for i, org in enumerate(ORGS): | ||
command = [ | ||
"generic_cloud_optimised_creation", | ||
"--paths", | ||
f"IMOS/Argo/dac/{org}", | ||
"--suffix", | ||
"_prof.nc", | ||
"--dataset-config", | ||
"argo.json", | ||
"--force-previous-parquet-deletion", | ||
"--cluster-mode", | ||
"coiled", | ||
] | ||
|
||
# Add the `--clear-existing-data` flag if `i == 0` | ||
if i == 0: | ||
command.append("--clear-existing-data") | ||
|
||
# Run the command | ||
subprocess.run(command, check=True) | ||
|
||
# task 2 | ||
command = [ | ||
"generic_cloud_optimised_creation", | ||
"--paths", | ||
"IMOS/Argo/dac/aoml", | ||
"IMOS/Argo/dac/nmdis", | ||
"IMOS/Argo/dac/meds", | ||
"IMOS/Argo/dac/kma", | ||
"--suffix", | ||
"_prof.nc", | ||
"--dataset-config", | ||
"argo.json", | ||
"--force-previous-parquet-deletion", | ||
"--cluster-mode", | ||
"coiled", | ||
] | ||
subprocess.run(command, check=True) | ||
|
||
# task 3 | ||
command = [ | ||
"generic_cloud_optimised_creation", | ||
"--paths", | ||
"IMOS/Argo/dac/nmdis", | ||
"IMOS/Argo/dac/meds", | ||
"IMOS/Argo/dac/kma", | ||
"--suffix", | ||
"_prof.nc", | ||
"--dataset-config", | ||
"argo.json", | ||
"--force-previous-parquet-deletion", | ||
"--cluster-mode", | ||
"coiled", | ||
] | ||
subprocess.run(command, check=True) | ||
if __name__ == "__main__": | ||
main() | ||
sys.exit(0) |
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 |
---|---|---|
|
@@ -16,3 +16,7 @@ def main(): | |
|
||
# Run the command | ||
subprocess.run(command, check=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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 |
---|---|---|
|
@@ -23,3 +23,7 @@ def main(): | |
|
||
# Run the command | ||
subprocess.run(command, check=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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 |
---|---|---|
|
@@ -23,3 +23,7 @@ def main(): | |
|
||
# Run the command | ||
subprocess.run(command, check=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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 |
---|---|---|
|
@@ -23,3 +23,7 @@ def main(): | |
|
||
# Run the command | ||
subprocess.run(command, check=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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
Oops, something went wrong.