Skip to content

add CMIP6 FWI ingest - #110

Open
Joshdpaul wants to merge 1 commit into
mainfrom
add_cmip6_fwi_ingest
Open

add CMIP6 FWI ingest#110
Joshdpaul wants to merge 1 commit into
mainfrom
add_cmip6_fwi_ingest

Conversation

@Joshdpaul

Copy link
Copy Markdown
Contributor

This PR adds the ingestion flow for the CMIP6 Fire Weather (FWI) data. To test, log into Zeus as the snapdata user, check out this branch of the prefect repo, and review rasdaman/cmip6_fwi.py. You will see that the code calls the cmip6_fwi_test branch of the rasdaman-ingest repo: this is a throwaway testing branch where the coverage names differ from main (they have a "_test" suffix) but there are no other differences.

Start the cmip6_fwi.py flow using python rasdaman/cmip6_fwi.py and 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-ingest branch name in cmip6_fwi.py to main, 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_fwi Prefect flow that clones ua-snap/rasdaman-ingest (defaulting to the cmip6_fwi_test branch) 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 thread rasdaman/cmip6_fwi.py
Comment on lines +1 to +3
from prefect import flow
import os
import ingest_tasks
Comment thread rasdaman/cmip6_fwi.py
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)
Comment thread rasdaman/cmip6_fwi.py

if __name__ == "__main__":
cmip6_fwi.serve(
name="Rasdaman Coverages: cmip6_dc, cmip6_dmc, cmip6_ffmc, cmip6_bui, cmip6_fwi, cmip6_isi",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants