Skip to content

Commit

Permalink
Merge pull request #25 from PCMDI/issue10_durack1_RegisterSource_idDR…
Browse files Browse the repository at this point in the history
…ES-CMIP-BB4CMIP7-1-0

register DRES-CMIP-BB4CMIP7-1-0 (#10)
  • Loading branch information
durack1 authored Jul 2, 2024
2 parents 13bb08e + 5b9863d commit 8cf7c28
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 53 deletions.
37 changes: 37 additions & 0 deletions input4MIPs_source_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,43 @@
"xlink":"http://cera-www.dkrz.de/WDCC/meta/CMIP6/input4MIPs.CMIP6.DCPP.CNRM-Cerfacs.DCPP-C-ipv-1-1.ocean.fx.mask4resto-ipv.gn.20170123.json|Citation|citation"
}
},
"DRES-CMIP-BB4CMIP7-1-0":{
"_status":"Registered",
"contact":"Margreet.vanMarle@deltares.nl; guido.vanderwerf@wur.nl",
"dataset_category":"emissions",
"datetime_start":"1990-01-16",
"datetime_stop":"2022-12-16",
"frequency":"mon",
"further_info_url":"http://www.globalfiredata.org",
"grid_label":"gn",
"institution_id":"DRES",
"mip_era":"CMIP6Plus",
"nominal_resolution":"25 km",
"realm":"atmos",
"source":"Global fire emissions 1750 through 2022 based on GFED4s, FireMIP, visibility-observations, and GCD data. Data sources differ per region and year",
"source_id":"DRES-CMIP-BB4CMIP7-1-0",
"source_version":"1.0",
"target_mip":"CMIP",
"|dataProviderExtra":{
"comment":"Datasource for global fire emissions from 1750 through 2022 based on GFED4s, FireMIP, visibility-observations and GCD data",
"data_usage_tips":"Please check with the first year 1900 and last year 2022 annual global total emissions. Be careful to not double count deforestation carbon emissions. They are included in the estimates but several models also have deforestation carbon emissions based for example on historical deforestation rates",
"grid":"0.25x0.25 degree latitude x longitude",
"source_variables":""
},
"|dataProviderFile":{
"Conventions":"CF-1.7",
"creation_date":"",
"tracking_id":""
},
"|esgfIndex":{
"_timestamp":"",
"data_node":"",
"latest":"",
"replica":"",
"version":"",
"xlink":""
}
},
"HadGEM2-ES-rcp85-1-0":{
"_status":"Published",
"contact":"ISMIP6 Steering Team (ismip6@gmail.com)",
Expand Down
98 changes: 45 additions & 53 deletions src/registerSource_id.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"id": "636e50ac-04ee-4867-94fc-9e28be62ada2",
"metadata": {},
"source": [
"PJD 1 Jul 2024 - Started using new source_id template"
"PJD 1 Jul 2024 - Started using new source_id template\n",
"PJD 2 Jul 2024 - Updating with new entries"
]
},
{
Expand Down Expand Up @@ -83,16 +84,16 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 65,
"id": "e8e04310-dd0f-4900-9903-b4dcc6f8f9f8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 32.4 ms, sys: 16 ms, total: 48.5 ms\n",
"Wall time: 69.9 ms\n"
"CPU times: user 13 μs, sys: 1 μs, total: 14 μs\n",
"Wall time: 18.8 μs\n"
]
}
],
Expand All @@ -114,7 +115,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 69,
"id": "776826bd-f567-44e5-ac7c-aee5d38933ee",
"metadata": {},
"outputs": [],
Expand All @@ -135,7 +136,7 @@
" for cnt, key in enumerate(stdKeys):\n",
" srcId[keyId][key] = stdDict[key]\n",
" # data provider extra keys\n",
" dataProviderExtraKeys = [\"source_variables\"]\n",
" dataProviderExtraKeys = dataProviderDict.keys()\n",
" srcId[keyId][\"|dataProviderExtra\"] = {}\n",
" # fill data provider extra entries\n",
" for key in dataProviderExtraKeys:\n",
Expand Down Expand Up @@ -168,22 +169,22 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 70,
"id": "e8c81dc8-252f-46bc-9011-d55aa456daf2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CR-CMIP-0-2-0\n"
"DRES-CMIP-BB4CMIP7-1-0\n"
]
}
],
"source": [
"# required keys\n",
"stdDict = {}\n",
"'''\n",
"\n",
"# required keys\n",
"# BB4CMIP7-1-0\n",
"stdDict[\"_status\"] = \"Registered\"\n",
"stdDict[\"contact\"] = \"Margreet.vanMarle@deltares.nl; guido.vanderwerf@wur.nl\"\n",
Expand All @@ -207,39 +208,27 @@
"stdDict[\"source_version\"] = \"1.0\"\n",
"stdDict[\"target_mip\"] = \"CMIP\"\n",
"stdDict[\"title\"] = \"WUR/Deltares BB4CMIP7 1.0 Global Biomass Burning Emissions prepared for input4MIPs\"\n",
"'''\n",
"# CR-CMIP-0-2-0\n",
"stdDict[\"_status\"] = \"Registered\"\n",
"stdDict[\"contact\"] = \"zebedee.nicholls@climate-resource.com; malte.meinshausen@climate-resource.com\"\n",
"stdDict[\"dataset_category\"] = \"GHGConcentrations\"\n",
"stdDict[\"datetime_start\"] = \"0001-01-15\"\n",
"stdDict[\"datetime_stop\"] = \"2022-12-15\"\n",
"stdDict[\"frequency\"] = \"mon\"\n",
"stdDict[\"further_info_url\"] = \"https://www.climate-resource.com/\"\n",
"stdDict[\"grid_label\"] = \"gm\"\n",
"stdDict[\"institution_id\"] = \"CR\"\n",
"stdDict[\"license\"] = \"CC BY 4.0\"\n",
"stdDict[\"mip_era\"] = \"CMIP6Plus\"\n",
"stdDict[\"nominal_resolution\"] = \"10000 km\"\n",
"stdDict[\"realm\"] = \"atmos\"\n",
"stdDict[\"region\"] = [\"global\"]\n",
"stdDict[\"source\"] = \"Global greenhouse gas concentrations 0001 through 2022 based on NOAA/AGAGE/GAGE data\"\n",
"stdDict[\"source_id\"] = \"CR-CMIP-0-2-0\"\n",
"print(stdDict[\"source_id\"])\n",
"stdDict[\"source_version\"] = \"0.2.0\"\n",
"stdDict[\"target_mip\"] = \"CMIP\"\n",
"stdDict[\"title\"] = \"Climate Resource CMIP 0.2.0 Global Greenhouse Gas (GHG) Concentrations prepared for input4MIPs\"\n",
"\n",
"# optional entries\n",
"# dataProviderExtra\n",
"dataProviderDict = {}\n",
"dataProviderDict[\"source_variables\"] = \"\"\n",
"dataProviderDict[\"comment\"] = \" \".join([\"[TBC which grant] Data produced by Climate Resource\",\n",
" \"supported by funding from the CMIP IPO (Coupled Model\",\n",
" \"Intercomparison Project International Project Office).\",\n",
" \"This is an interim dataset, not for production use\"])\n",
"dataProviderDict[\"comment\"] = \" \".join([\"Datasource for global fire emissions from 1750\",\n",
" \"through 2022 based on GFED4s, FireMIP,\",\n",
" \"visibility-observations and GCD data\"])\n",
"dataProviderDict[\"data_usage_tips\"] = \" \".join([\"Please check with the first year\",\n",
" \"1900 and last year 2022 annual global\",\n",
" \"total emissions. Be careful to not double\",\n",
" \"count deforestation carbon emissions.\",\n",
" \"They are included in the estimates but\",\n",
" \"several models also have deforestation\",\n",
" \"carbon emissions based for example on\",\n",
" \"historical deforestation rates\"])\n",
"dataProviderDict[\"grid\"] = \"0.25x0.25 degree latitude x longitude\"\n",
"\n",
"# dataProviderFile\n",
"dataProviderFileDict = {}\n",
"dataProviderFileDict[\"Conventions\"] = \"\" # \"CF-1.7\"\n",
"dataProviderFileDict[\"Conventions\"] = \"CF-1.7\"\n",
"dataProviderFileDict[\"creation_date\"] = \"\"\n",
"dataProviderFileDict[\"tracking_id\"] = \"\"\n",
"\n",
Expand All @@ -249,31 +238,34 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 71,
"id": "7f3f584f-3d6f-439f-8cc5-9fb6603395e5",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'CR-CMIP-0-2-0': {'_status': 'Registered',\n",
" 'contact': 'zebedee.nicholls@climate-resource.com; malte.meinshausen@climate-resource.com',\n",
" 'dataset_category': 'GHGConcentrations',\n",
" 'datetime_start': '0001-01-15',\n",
" 'datetime_stop': '2022-12-15',\n",
"{'DRES-CMIP-BB4CMIP7-1-0': {'_status': 'Registered',\n",
" 'contact': 'Margreet.vanMarle@deltares.nl; guido.vanderwerf@wur.nl',\n",
" 'dataset_category': 'emissions',\n",
" 'datetime_start': '1990-01-16',\n",
" 'datetime_stop': '2022-12-16',\n",
" 'frequency': 'mon',\n",
" 'further_info_url': 'https://www.climate-resource.com/',\n",
" 'grid_label': 'gm',\n",
" 'institution_id': 'CR',\n",
" 'further_info_url': 'http://www.globalfiredata.org',\n",
" 'grid_label': 'gn',\n",
" 'institution_id': 'DRES',\n",
" 'mip_era': 'CMIP6Plus',\n",
" 'nominal_resolution': '10000 km',\n",
" 'nominal_resolution': '25 km',\n",
" 'realm': 'atmos',\n",
" 'source': 'Global greenhouse gas concentrations 0001 through 2022 based on NOAA/AGAGE/GAGE data',\n",
" 'source_id': 'CR-CMIP-0-2-0',\n",
" 'source_version': '0.2.0',\n",
" 'source': 'Global fire emissions 1750 through 2022 based on GFED4s, FireMIP, visibility-observations, and GCD data. Data sources differ per region and year',\n",
" 'source_id': 'DRES-CMIP-BB4CMIP7-1-0',\n",
" 'source_version': '1.0',\n",
" 'target_mip': 'CMIP',\n",
" '|dataProviderExtra': {'source_variables': ''},\n",
" '|dataProviderFile': {'Conventions': '',\n",
" '|dataProviderExtra': {'source_variables': '',\n",
" 'comment': 'Datasource for global fire emissions from 1750 through 2022 based on GFED4s, FireMIP, visibility-observations and GCD data',\n",
" 'data_usage_tips': 'Please check with the first year 1900 and last year 2022 annual global total emissions. Be careful to not double count deforestation carbon emissions. They are included in the estimates but several models also have deforestation carbon emissions based for example on historical deforestation rates',\n",
" 'grid': '0.25x0.25 degree latitude x longitude'},\n",
" '|dataProviderFile': {'Conventions': 'CF-1.7',\n",
" 'creation_date': '',\n",
" 'tracking_id': ''},\n",
" '|esgfIndex': {'_timestamp': '',\n",
Expand All @@ -284,7 +276,7 @@
" 'xlink': ''}}}"
]
},
"execution_count": 45,
"execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit 8cf7c28

Please sign in to comment.