add CMIP6 FWI ingest - #110
Open
Joshdpaul wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Prefect flow to ingest CMIP6 Fire Weather Index (FWI) Rasdaman coverages by cloning the rasdaman-ingest repository and running ingest recipes from a designated directory.
Changes:
- Introduces
cmip6_fwiPrefect flow that clonesua-snap/rasdaman-ingest(defaulting to thecmip6_fwi_testbranch) and ingests all JSON recipes in the CMIP6 FWI ingest directory. - Adds a
__main__block that serves the flow as a Prefect deployment with preset parameters/tags.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+3
| from prefect import flow | ||
| import os | ||
| import ingest_tasks |
Comment on lines
+16
to
+23
| ingest_files = [ | ||
| f | ||
| for f in os.listdir(ingest_directory) | ||
| if os.path.isfile(os.path.join(ingest_directory, f)) and f.endswith(".json") | ||
| ] | ||
|
|
||
| for ingest_file in ingest_files: | ||
| ingest_tasks.run_ingest(ingest_directory, ingest_file) |
|
|
||
| if __name__ == "__main__": | ||
| cmip6_fwi.serve( | ||
| name="Rasdaman Coverages: cmip6_dc, cmip6_dmc, cmip6_ffmc, cmip6_bui, cmip6_fwi, cmip6_isi", |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the ingestion flow for the CMIP6 Fire Weather (FWI) data. To test, log into Zeus as the
snapdatauser, check out this branch of the prefect repo, and reviewrasdaman/cmip6_fwi.py. You will see that the code calls thecmip6_fwi_testbranch of therasdaman-ingestrepo: this is a throwaway testing branch where the coverage names differ frommain(they have a "_test" suffix) but there are no other differences.Start the
cmip6_fwi.pyflow usingpython rasdaman/cmip6_fwi.pyand run it with the default parameters. The flow should ingest 6 coverages, each taking ~30 minutes. Confirm that each coverage gets fully ingested into Rasdaman, and then delete the test coverages from Rasdaman.After testing, let me know and I will delete the existing production coverages from Rasdaman, change the
rasdaman-ingestbranch name incmip6_fwi.pytomain, and re-run the prefect flow to ingest the production coverages using this process. Once that's completed successfully, I'll merge this prefect branch.