{ "cells": [ { "cell_type": "markdown", "id": "3c884e15-ff3b-44cc-9681-c5c77f7f7936", "metadata": {}, "source": [ "# RGI7 submission info file attributes metadata" ] }, { "cell_type": "code", "execution_count": 1, "id": "2e620671-ce52-4390-aad6-32d55ab0f39b", "metadata": {}, "outputs": [], "source": [ "attrs = {\n", " 'subm_id': {\n", " 'long_name': 'submission_id',\n", " 'description': 'Unique identifier assigned by GLIMS to a specific data submission. Allows to obtain information about the analysts and data submitters.',\n", " 'datatype': 'int',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'n_outlines': {\n", " 'long_name': 'number_of_outlines',\n", " 'description': 'Number of outlines from this submission used in RGI 7.0.',\n", " 'datatype': 'int',\n", " 'units': '',\n", " 'source': 'RGI',\n", " 'rgi6_name': '',\n", " },\n", " 'area_km2': {\n", " 'long_name': 'total_area_of_outlines',\n", " 'description': 'Total area of the outlines from this submission used in RGI 7.0.',\n", " 'datatype': 'float',\n", " 'units': 'km2',\n", " 'source': 'RGI',\n", " 'rgi6_name': '',\n", " },\n", " 'anlys_time': {\n", " 'long_name': 'analysis_time',\n", " 'description': 'Representative time the outline analysis was carried out.',\n", " 'datatype': 'str',\n", " 'units': 'date',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'release_dt': {\n", " 'long_name': 'release_date',\n", " 'description': 'Date at which the submission was realeased on GLIMS.',\n", " 'datatype': 'str',\n", " 'units': 'date',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'proc_desc': {\n", " 'long_name': 'processing_description',\n", " 'description': 'Description of the processing done to create the glacier outlines.',\n", " 'datatype': 'str',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'chief_affl': {\n", " 'long_name': 'chief_affiliation',\n", " 'description': 'Affiliation of the chief of the regional center or the person(s) who submitted the data.',\n", " 'datatype': 'str',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'submitters': {\n", " 'long_name': 'submitters',\n", " 'description': 'Person(s) who submitted the data.',\n", " 'datatype': 'str',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'analysts': {\n", " 'long_name': 'analysts',\n", " 'description': 'Person(s) who created the data.',\n", " 'datatype': 'str',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", " 'rc_id': {\n", " 'long_name': 'regional_center_id',\n", " 'description': 'GLIMS ID for the regional center.',\n", " 'datatype': 'int',\n", " 'units': '',\n", " 'source': 'GLIMS',\n", " 'rgi6_name': '',\n", " },\n", "}" ] }, { "cell_type": "code", "execution_count": 2, "id": "c0d4f684-6a9c-46f4-af49-02cbfb0afe36", "metadata": {}, "outputs": [], "source": [ "import json" ] }, { "cell_type": "code", "execution_count": 3, "id": "14297dda-944f-4e2e-844f-027e1b75366b", "metadata": {}, "outputs": [], "source": [ "with open('rgi7_submission_info_metadata.json', 'w') as outfile:\n", " json.dump(attrs, outfile, indent=2)" ] }, { "cell_type": "markdown", "id": "89096422-84ea-4040-90a6-eadb6aa4e5e3", "metadata": {}, "source": [ "## To Markdown " ] }, { "cell_type": "code", "execution_count": 4, "id": "95616f9b-e6b3-4e48-b7c6-af0ae45f460c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "`subm_id`\n", ": `long_name`: submission_id
`description`: Unique identifier assigned by GLIMS to a specific data submission. Allows to obtain information about the analysts and data submitters.
`datatype`: int
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n", "`n_outlines`\n", ": `long_name`: number_of_outlines
`description`: Number of outlines from this submission used in RGI 7.0.
`datatype`: int
`units`:
`source`: RGI
`rgi6_name`: \n", "\n", "`area_km2`\n", ": `long_name`: total_area_of_outlines
`description`: Total area of the outlines from this submission used in RGI 7.0.
`datatype`: float
`units`: km2
`source`: RGI
`rgi6_name`: \n", "\n", "`anlys_time`\n", ": `long_name`: analysis_time
`description`: Representative time the outline analysis was carried out.
`datatype`: str
`units`: date
`source`: GLIMS
`rgi6_name`: \n", "\n", "`release_dt`\n", ": `long_name`: release_date
`description`: Date at which the submission was realeased on GLIMS.
`datatype`: str
`units`: date
`source`: GLIMS
`rgi6_name`: \n", "\n", "`proc_desc`\n", ": `long_name`: processing_description
`description`: Description of the processing done to create the glacier outlines.
`datatype`: str
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n", "`chief_affl`\n", ": `long_name`: chief_affiliation
`description`: Affiliation of the chief of the regional center or the person(s) who submitted the data.
`datatype`: str
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n", "`submitters`\n", ": `long_name`: submitters
`description`: Person(s) who submitted the data.
`datatype`: str
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n", "`analysts`\n", ": `long_name`: analysts
`description`: Person(s) who created the data.
`datatype`: str
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n", "`rc_id`\n", ": `long_name`: regional_center_id
`description`: GLIMS ID for the regional center.
`datatype`: int
`units`:
`source`: GLIMS
`rgi6_name`: \n", "\n" ] } ], "source": [ "for k, v in attrs.items():\n", " print(f'`{k}`')\n", " first = True\n", " for ik, iv in v.items():\n", " if first:\n", " print(f': `{ik}`: {iv}', end='')\n", " first = False\n", " else:\n", " print(f'
`{ik}`: {iv}', end='')\n", " print(f'')\n", " print(f'')" ] }, { "cell_type": "code", "execution_count": null, "id": "f63a750a-92a2-4bbb-80c7-9d7a5f7cfbf4", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.8" } }, "nbformat": 4, "nbformat_minor": 5 }