Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update database creation and add GitHub action to summarise database changes #56

Merged
merged 14 commits into from
Jul 30, 2024
Merged
37 changes: 37 additions & 0 deletions .github/workflows/pr-comment-database-changes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Add comment to PRs displaying changes to the database

on:
pull_request:

jobs:
add-database-changes-comment-to-pr:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
BODY_FILE: "database-changes-comment.md"
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Create comment
env:
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
run: |
which pip
pip install python-packages/input4MIPs-CVs
python scripts/create-database-diff-comment.py --current-db DatasetsDatabase/input4MIPs_datasets.json --out-file $BODY_FILE --commit-id $COMMIT_ID
# # Turn on for debugging
# cat $BODY_FILE

- name: Add comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh pr comment "$PR_NUMBER" --body-file "$BODY_FILE"
3 changes: 3 additions & 0 deletions CVs/input4MIPs_publication_status.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"registered":{
"description":"Dataset is known, but no data has been received for publication yet"
},
"in_publishing_queue":{
"description":"Dataset is known and in the publication queue"
},
Expand Down
34 changes: 34 additions & 0 deletions CVs/input4MIPs_source_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
"mip_era":"CMIP6Plus",
"source_version":"1.0"
},
"MRI-JRA55-do-1-6-0":{
"MRI-JRA55-do-1-6-0":{
"contact":"Hiroyuki Tsujino (htsujino@mri-jma.go.jp)",
"further_info_url":"https://climate.mri-jma.go.jp/pub/ocean/JRA55-do/index.html",
"institution_id":"MRI",
"license_id":null,
"mip_era":"CMIP6Plus",
"source_version":"1.6.0"
}
},
"PCMDI-AMIP-1-1-9":{
"contact":"PCMDI (pcmdi-cmip@llnl.gov)",
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
Expand All @@ -23,6 +33,30 @@
"mip_era":"CMIP6Plus",
"source_version":"1.1.9"
},
"PCMDI-AMIP-ERSST5-1-0":{
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"institution_id":"PCMDI",
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"source_version":"1.0"
},
"PCMDI-AMIP-Had1p1-1-0":{
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"institution_id":"PCMDI",
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"source_version":"1.0"
},
"PCMDI-AMIP-OI2p1-1-0":{
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"institution_id":"PCMDI",
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"source_version":"1.0"
},
"SOLARIS-HEPPA-CMIP-4-1":{
"contact":"bernd@iaa.es",
"further_info_url":"http://solarisheppa.geomar.de/cmip7",
Expand Down
258 changes: 258 additions & 0 deletions DatasetsDatabase/input4MIPs_datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -43858,5 +43858,263 @@
"variable_id":"multiple",
"version":"20240718",
"xlink":null
},
{
"Conventions":null,
"activity_id":null,
"comment":"Prototype dataset for the evaluation of SST forcing uncertainty over the satellite era - not for production use in any simulations, including CMIP7",
"comment_post_publication":null,
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"PCMDI",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":"PCMDI-AMIP ERSST5 1.0: SST based on NOAA ERSST 5.0",
"source_id":"PCMDI-AMIP-ERSST5-1-0",
"source_version":"1.0",
"target_mip":"Prototype",
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
},
{
"Conventions":null,
"activity_id":null,
"comment":"Prototype dataset for the evaluation of SST forcing uncertainty over the satellite era - not for production use in any simulations, including CMIP7",
"comment_post_publication":null,
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"PCMDI",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":"PCMDI-AMIP Had-1.1 1.0: SST based on UK MetOffice HadISST 1.1",
"source_id":"PCMDI-AMIP-Had1p1-1-0",
"source_version":"1.0",
"target_mip":"Prototype",
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
},
{
"Conventions":null,
"activity_id":null,
"comment":"Prototype dataset for the evaluation of SST forcing uncertainty over the satellite era - not for production use in any simulations, including CMIP7",
"comment_post_publication":null,
"contact":"zelinka1@llnl.gov; durack1@llnl.gov",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"https://pcmdi.llnl.gov/mips/amip",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"PCMDI",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":"PCMDI-AMIP OI-2.1 1.0: SST based on NOAA NCEP OI2.1",
"source_id":"PCMDI-AMIP-OI2p1-1-0",
"source_version":"1.0",
"target_mip":"Prototype",
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
},
{
"Conventions":null,
"activity_id":"input4MIPs",
"comment":null,
"comment_post_publication":null,
"contact":"bernd@iaa.es",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"http://solarisheppa.geomar.de/cmip7",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"SOLARIS-HEPPA",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":null,
"source_id":"SOLARIS-HEPPA-CMIP-4-1",
"source_version":"4.1",
"target_mip":"CMIP",
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
},
{
"Conventions":null,
"activity_id":"input4MIPs",
"comment":null,
"comment_post_publication":null,
"contact":"Margreet.vanMarle@Deltares.nl;Guido.vanderWerf@wur.nl",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"http://www.globalfiredata.org",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"DRES",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":null,
"source_id":"DRES-CMIP-BB4CMIP7-1-0",
"source_version":"1.0",
"target_mip":null,
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
},
{
"Conventions":null,
"activity_id":"input4MIPs",
"comment":null,
"comment_post_publication":null,
"contact":"zebedee.nicholls@climate-resource.com;malte.meinshausen@climate-resource.com",
"creation_date":null,
"data_node":null,
"dataset_category":null,
"datetime_end":null,
"datetime_start":null,
"esgf_dataset_master_id":null,
"filepath":null,
"frequency":null,
"further_info_url":"http://www.tbd.invalid",
"grid":null,
"grid_label":null,
"institution":null,
"institution_id":"CR",
"latest":null,
"license":null,
"license_id":"CC BY 4.0",
"mip_era":"CMIP6Plus",
"nominal_resolution":null,
"product":null,
"publication_status":"registered",
"realm":null,
"references":null,
"region":null,
"replica":null,
"sha256":null,
"source":null,
"source_id":"CR-CMIP-0-2-0",
"source_version":"0.2.0",
"target_mip":null,
"time_range":null,
"timestamp":null,
"tracking_id":null,
"validated_input4mips":null,
"variable_id":null,
"version":null,
"xlink":null
}
]
Loading